Professional Documents
Culture Documents
Exercise 13
Exercise 13
Exercise 13
1
Use Simpson 1/3 rule to estimate the integral ∫ e − x dx by taking five ordinates.
2
1.
0
Ans. 0.746855
π /2
2. Find the approximate value of the integral ∫
0
1+ cosθ dθ by dividing the interval into six equal
Approximate these integrals by Trapezoidal and Simpson 1/3 rules. Divide the intervals into ten
equal parts.
Ans. a) 3.820197, 3.820188
b) 0.659218, 0.659330
c) 0.881839, 0.882075
5. The arc length of the curve y = f(x) in the interval [a, b] is given by following formula
b 2
dy
Arc length = ∫ 1+ dx
a
dx
Approximate the arc lengths for the following functions. Use composite Trapezoidal and
composite Simpson 1/3 rules with nine nodes.
a) y = cos( x ) 0≤ x ≤π /2 (Ans. 1.910099, 1.910099)
b) y = e x
0 ≤ x ≤1 (Ans. 2.005898, 2.003499)
c) y = x 2 0≤ x ≤2 (Ans. 4.656889, 4.646834)
6. The surface area of the solid of revolution obtained by rotating the curve y = f ( x ), a ≤ x ≤ b
about the x-axis is given by
b 2
dy
S = ∫ 2π y 1+ dx
a
dx
Approximate the surface area of solid of revolution using composite Simpson 1/3 rule with 11
nodes for the following curves
a) y = cos( x ) 0≤ x ≤π /2 (Ans. 7.211876)
b) y = e x
0 ≤ x ≤1 (Ans. 22.943201)
c) y = x 2
0≤ x ≤2 (Ans. 53.226620)
572 Numerical Methods
7. The volume of the solid of revolution obtained by rotating the curve y = f ( x ), a ≤ x ≤ b about the
x-axis is given by
b
V = ∫ π y 2 dx
a
Approximate the volume of solid of revolution obtained by rotating the following curves about
the x-axis. Use Simpson 1/3 rule with 11 nodes.
a) y = cos( x ) 0≤ x ≤π /2 (Ans. 2.467401)
b) y = e x
0 ≤ x ≤1 (Ans. 10.035995)
c) y = x 2 0≤ x ≤2 (Ans. 20.107536)
8. We recorded the car velocity at regular intervals of 10 seconds during its travel of 2 minutes. The
velocities (converted in metre/second) are given in following table
Time 0 10 20 30 40 50 60 70 80 90 100 110 120
Velocities 0 2 4 5 7 5 6 4 3 4 3 2 0
Compute the total distance traveled by the car. Use Simpson 1/3 rule.
Ans. 446.67 metre
9. A solid of revolution is formed by rotating about the x-axis, the lines x = 0 and x= 1 and curve
through the points with the following coordinates
x: 0 0.25 0.5 0.75 1
y: 0 0.247404 0.479426 0.681639 0.841471
Estimate the volume of the solid formed using composite Simpson rule.
Ans. 0.856380
π
10. Estimate the average value of the function f ( x ) = sin( x ) on the interval 0 , by using
2
π
Trapezoidal and Simpson 1/3 rules with step size h = .
12
Ans. 0.632980, 0.636636
π
2
11. Find an upper bound of the error in estimation of the integral ∫ sin( x )dx with Trapezoidal and
0
Simpson 1/3 rules for number of subintervals n = 6.
Ans. 0.00897172, 0.0000409941
2
12. Compute the errors in approximate values of the integral ∫ e − x dx by Trapezoidal, Simpson 1/3
1
and Simpson 3/8 formulas with 11 nodes.
1 1 1
Ans. , ,
1200 e 1800000 e 800000 e
1
dx
13. Estimate the integral, I = ∫ , using Trapezoidal and Simpson 1/3 formulas with eight equal
0
1+x
subintervals and compare the result with exact value. Compute the upper bounds of the errors
in both the formulas.
Ans. ICT = 0.694122, ICS1/3 = 0.693155, EICT = 0.00260417, EICS1/3 = 0.0000325521
Numerical Integration 573
π
2
14. Compute the value of integral, ∫ sin2 ( x )dx with the aid of Trapezoidal formula by dividing the
0
interval into ten equal parts and find the error bound in the value of the integral.
Ans. 0.785577, 0.00645964
1
15. Find the minimum number of intervals required to evaluate the integral, ∫ sin( x ) dx correct to 4
0
decimal places by i) Trapezoidal rule and ii) Simpson 1/3 rule.
Ans. 41, 4
1
Find the minimum number of intervals required to evaluate the integral, ∫ e − x dx correct to 4
4
16.
0
decimal places by i) Trapezoidal rule ii) Simpson 1/3 rule.
Ans. 77, 11; use max f ′′(ξ ) < 3.5 and max f iv (ξ ) < 95
0≤ x ≤1 0≤ x ≤1
17. Evaluate the following integrals by using Gauss–Legendre 2-points and 3-points formulas.
π
2 2
∫(x − ln x ) dx ∫ 1+ sin2 x dx
2
a) c)
1 0
1 1
ex
∫x e ∫ 1+ sin( x ) dx
2 − x2
b) dx d)
0 0
Ans. –2.919626
574 Numerical Methods
22. Apply Gauss–Hermite 2 and 3-points formula to obtain the approximate values of the following
integral
∞
∫ (x )
2
a) 2
+ sin( x ) e − x dx Ans. 0.886228, 0.886220
−∞
∞
∫ (3 x )
2
b) 2
+ e x e − x dx Ans. 4.893024, 4.932461
−∞
∞
cos( x )
c) ∫ 4x
−∞
2
−3
dx Ans. –1.347500, –0.327079
∞
1
23. Compute the value of the integral ∫ 1+ x
−∞
2
dx with the help of Gauss–Hermite 3-points formula.
Ans. 2.240777
1
dx
24. Calculate the value of loge 2 from the integral ∫ by using Euler–Maclaurin formula.
0
1+ x
Ans. 0.693147
3
dx
25. Find the value of the integral ∫ by using Euler–Maclaurin formula.
2
1+ 2 x 2
Ans. 0.0766218
26. Use Euler–Maclaurin formula to prove that
π 2π
sin(0 ) + sin + sin + ⋅⋅⋅ + sin(2π ) = 0.
100 100
27. Prove the following results with the help of Euler–Maclaurin formula
n
n(n + 1) n
n(n + 1)(2n + 1)
a) ∑x =
x =1 2
b) ∑x
x =1
2
=
6
100
1
28. Use Euler–Maclaurin formula to compute the value of the series ∑ x . Use derivative terms up
x=1
to order 5.
Ans. 5.189130
1.75
∫e
− x2
29. Compute the value of integration I = dx with the help of Romberg integration. Use only
1
1 1
31. Find the approximate value of the double integral ∫ ∫ sin( x + y )dx dy with the help of Trapezoidal
0 0