29.12.2014 Views

FDWK_3ed_Ch05_pp262-319

FDWK_3ed_Ch05_pp262-319

FDWK_3ed_Ch05_pp262-319

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Section 5.5 Trapezoidal Rule 307<br />

y<br />

P 4<br />

The Trapezoidal Rule<br />

To approximate b f x dx, use<br />

a<br />

T h 2 ( y 0 2y 1 2y 2 … 2y n1 y n) ,<br />

where a, b is partitioned into n subintervals of equal length h b an.<br />

Equivalently,<br />

T LRAM n<br />

2 RRAM n<br />

,<br />

P 3<br />

where LRAM n and RRAM n are the Riemann sums using the left and right<br />

endpoints, respectively, for f for the partition.<br />

y x 2 2<br />

P 2<br />

0 1<br />

P 1<br />

P 0<br />

25<br />

—<br />

1 16<br />

5<br />

–<br />

4<br />

36<br />

—<br />

16<br />

6<br />

–<br />

4<br />

49<br />

—<br />

16<br />

7<br />

–<br />

4<br />

Figure 5.32 The trapezoidal approximation<br />

of the area under the graph of<br />

y x 2 from x 1 to x 2 is a slight<br />

overestimate. (Example 1)<br />

Table 5.4<br />

4<br />

x y x 2<br />

1 1<br />

5 4 2 5<br />

<br />

16<br />

6 4 3 6<br />

<br />

16<br />

7 4 4 9<br />

<br />

16<br />

2 4<br />

x<br />

EXAMPLE 1<br />

Applying the Trapezoidal Rule<br />

Use the Trapezoidal Rule with n 4 to estimate 2<br />

1 x2 dx. Compare the estimate<br />

with the value of NINT x 2 , x, 1,2 and with the exact value.<br />

SOLUTION<br />

Partition 1, 2 into four subintervals of equal length (Figure 5.32). Then evaluate y x 2<br />

at each partition point (Table 5.4).<br />

Using these y values, n 4, and h 2 14 14 in the Trapezoidal Rule, we<br />

have<br />

T h 2 ( y 0 2y 1 2y 2 2y 3 y 4)<br />

1 8 ( ( 1 2 2 5<br />

16<br />

) ( 2 3 6<br />

16<br />

) ( 2 4 9<br />

16<br />

) ) 4<br />

7 5<br />

2.34375.<br />

32<br />

The value of NINT x 2 , x, 1,2 is 2.333333333.<br />

The exact value of the integral is<br />

2<br />

1<br />

x 2 dx x 3<br />

3<br />

]<br />

2<br />

1<br />

8 3 1 3 7 3 .<br />

The T approximation overestimates the integral by about half a percent of its true value of<br />

73. The percentage error is 2.34375 73730.446%. Now try Exercise 3.<br />

We could have predicted that the Trapezoidal Rule would overestimate the integral in<br />

Example 1 by considering the geometry of the graph in Figure 5.32. Since the parabola is<br />

concave up, the approximating segments lie above the curve, giving each trapezoid slightly<br />

more area than the corresponding strip under the curve. In Figure 5.31 we see that the<br />

straight segments lie under the curve on those intervals where the curve is concave down,

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!