Question Details

For the integral  0 π / 2 ( 8 + 4 cos x ) d x , the absolute percentage error in numerical evaluation with the Trapezoidal rule, using only the endpoints, is ______ (round off to one decimal place).

Show Answer

Correct Answer :

Correct answer is : 5.2

Given, Number of interval = 1

a = 0,  b = π 2

N u m b e r o f i n t e r v a l = b a h 1 = π 2 0 h h = π 2

True value

0 π / 2 ( 8 + 4 cos x ) d x = [ 8 x + 4 s i n x ] 0 π 2

T r u e v a l u e = [ ( 8 × π 2 ) + ( 4 × sin ( π 2 ) ) ]

True value = 4π + 4 = 16.56

Approximate value

By trapezoidal rule

xn

xo = 0

X n = π 2

yn

yo= 8 + 4 cos 0 = 12

yn = 8 + 4 cos 90 = 8

h = ( π 2 0 ) 1 = π 2

According to the trapezoidal rule

a b f ( x ) d x = h 2 [ y o + y n + 2 ( y 1 + y 2 + y 3 ) ] 0 π 2 ( 8 + 4 c o s x ) d x = π 4 ( 12 + 8 )

⇒  Approximate value = 5π = 15.70

Now,

A b s o l u t e p e r c e n t a g e e r r o r = | t r u e v a l u e a p p r o x i m a t e v a l u e | t r u e v a l u e A b s o l u t e p e r c e n t a g e e r r o r = | 16.56 15.70 | 16.56 × 100

∴ Absolute percentage error = 5.19 % ≈ 5.2 %

Solution :

The correct answer is 5.2.

To find the absolute percentage error in the numerical evaluation of the integral using the Trapezoidal rule, we need to calculate the true value of the integral and compare it with the approximate value obtained using only the endpoints.

Step 1: Calculate the True Value of the Integral
The given integral is:
I = 0 π / 2 ( 8 + 4 cos x ) d x
Integrating the function step-by-step:
I = [ 8 x + 4 sin x ] 0 π / 2
Substituting the upper limit x=π2 and lower limit x=0:
I true = [ 8 ( π 2 ) + 4 sin ( π 2 ) ] [ 8 ( 0 ) + 4 sin ( 0 ) ]
Since sin(π2)=1 and sin(0)=0:
I true = 4 π + 4
Substituting π3.14159:
I true = 4 ( 3.14159 ) + 4 = 12.56637 + 4 16.57

Step 2: Calculate the Approximate Value Using the Trapezoidal Rule
Using only the endpoints implies that the number of intervals is n=1 over the interval [a,b]=[0,π2].
The step size h is:
h = b a = π 2 0 = π 2
Evaluating the function f(x)=8+4cosx at the endpoints:
At the lower limit (x0=0):
y 0 = f ( 0 ) = 8 + 4 cos ( 0 ) = 8 + 4 ( 1 ) = 12
At the upper limit (x1=π2):
y 1 = f ( π 2 ) = 8 + 4 cos ( π 2 ) = 8 + 4 ( 0 ) = 8
Applying the Trapezoidal rule formula:
I approx = h 2 [ y 0 + y 1 ]
I approx = π 4 [ 12 + 8 ] = 5 π
Substituting π3.14159:
I approx = 5 ( 3.14159 ) 15.71

Step 3: Calculate the Absolute Percentage Error
The absolute percentage error is given by:
Absolute percentage error = | I true I approx | I true × 100
Substituting the calculated values:
Absolute percentage error = | 16.57 15.71 | 16.57 × 100
Absolute percentage error = 0.86 16.57 × 100 5.19 %
Rounding off to one decimal place, we get 5.2.

Unlock Our Free Library

Access expert-curated educational resources and study materials—completely free.

Discover more resources

You may also like

Mock Tests

View All
  • CTET
  • intermediate
  • No time limit
  • child development and pedagogy, mathematics, social science

  • SSC
  • intermediate
  • 2 hours and 30 mins
  • child development and pedagogy, mathematics, social science

Ask AI Tutor
5 left
Q1 View Question & Options
AI Tutor is solving this question...
Reading question context & options...