210 CHAPTER 4 Numerical Differentiation and Integration
a bound independent of h (and n). This means that, even though we may need to divide
an interval into more parts to ensure accuracy, the increased computation that is required
does not increase the round-off error. This result implies that the procedure is stable as h
approaches zero. Recall that this was not true of the numerical differentiation procedures
considered at the beginning of this chapter.
E X E R C I S E S E T 4.4
1. Use the Composite Trapezoidal rule with the indicated values of n to approximate the following
integrals.
2 2
a. x ln x dx, n = 4 b. x 3 ex dx, n = 4
−2
1
2 π
2
c. dx, n = 6 d. x 2 cos x dx, n = 6
0 x +4
2 0
2 3
x
e. e2x sin 3x dx, n = 8 f. 2 +4
dx, n = 8
x
0 5 1 3π/8
1
g. √ dx, n = 8 h. tan x dx, n = 8
3 x −4
2
0
2. Use the Composite Trapezoidal rule with the indicated values of n to approximate the following
integrals.
0.5 0.5
a. cos x dx, n = 4
2
b. x ln(x + 1) dx, n = 6
−0.5
1.75 −0.5
e+2
1
c. (sin2 x − 2x sin x + 1) dx, n = 8 d. dx, n = 8
.75 e x ln x
3. Use the Composite Simpson’s rule to approximate the integrals in Exercise 1.
4. Use the Composite Simpson’s rule to approximate the integrals in Exercise 2.
5. Use the Composite Midpoint rule with n + 2 subintervals to approximate the integrals in Exercise 1.
6. Use the Composite Midpoint rule with n + 2 subintervals to approximate the integrals in Exercise 2.
2
7. Approximate 0 x 2 ln(x 2 + 1) dx using h = 0.25. Use
a. Composite Trapezoidal rule.
b. Composite Simpson’s rule.
c. Composite Midpoint rule.
2
Approximate 0 x 2 e−x dx using h = 0.25. Use
2
8.
a. Composite Trapezoidal rule.
b. Composite Simpson’s rule.
c. Composite Midpoint rule.
9. Suppose that f (0) = 1, f (0.5) = 2.5, f (1) = 2, and f (0.25) 1 = f (0.75) = α. Find α if the
Composite Trapezoidal rule with n = 4 gives the value 1.75 for 0 f (x) dx.
1
10. The Midpoint rule for approximating −1 f (x) dx gives the value 12, the Composite Midpoint rule
with n = 2 gives 5, and Composite Simpson’s rule gives 6. Use the fact that f (−1) = f (1) and
f (−0.5) = f (0.5) − 1 to determine f (−1), f (−0.5), f (0), f (0.5), and f (1).
11. Determine the values of n and h required to approximate
2
e2x sin 3x dx
0
−4
to within 10 . Use
a. Composite Trapezoidal rule.
b. Composite Simpson’s rule.
c. Composite Midpoint rule.
&RS\ULJKW&HQJDJH/HDUQLQJ$OO5LJKWV5HVHUYHG0D\QRWEHFRSLHGVFDQQHGRUGXSOLFDWHGLQZKROHRULQSDUW'XHWRHOHFWURQLFULJKWVVRPHWKLUGSDUW\FRQWHQWPD\EHVXSSUHVVHGIURPWKHH%RRNDQGRUH&KDSWHU V
(GLWRULDOUHYLHZKDVGHHPHGWKDWDQ\VXSSUHVVHGFRQWHQWGRHVQRWPDWHULDOO\DIIHFWWKHRYHUDOOOHDUQLQJH[SHULHQFH&HQJDJH/HDUQLQJUHVHUYHVWKHULJKWWRUHPRYHDGGLWLRQDOFRQWHQWDWDQ\WLPHLIVXEVHTXHQWULJKWVUHVWULFWLRQVUHTXLUHLW