







Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!








Jim Lamb ers
Math 2B
Fall Quarter 2004-
Le ture 23 Notes
These notes orresp ond to Se tion 8.7 in the text.
Approximate Integration
The Fundamental Theorem of Cal ulus provides a simple metho d for evaluating many de nite
integrals of the form
b
a
f (x) dx: (1)
However, the theorem an only b e used under the following onditions:
The integrand f (x) must b e a known ontinuous fun tion. This is not always the ase, sin e
knowledge of f (x) may b e limited to a small set of values at sp e i sampling points in the
interval [a; b℄, where su h values are typi ally obtained from measurements.
Even if a formula for f (x) is known, we must still b e able to anti-di erentiate f (x). If no
antiderivative is known, then we annot apply the Fundamental Theorem of Cal ulus.
In real appli ations, integrals for whi h the Fundamental Theorem of Cal ulus is of no use arise
quite frequently. Su h integrals annot b e evaluated exa tly, and therefore we must approximate
their values instead. This leads to the study of numeri al integration, whi h is also known as
numeri al quadrature.
Riemann Sums
Sin e the de nite integral is de ned to b e the limit of a sequen e of Riemann sums, ertainly any
valid Riemann sum an b e used to approximate the value of the integral. we have already used a
few parti ular typ es of Riemann sums to obtain su h an approximation:
We an divide the interval [a; b℄ into n subintervals of equal width x = (b a)=n, and
approximate the area under the graph of f by adding the areas of n re tangles of width x
and height determined by the value of f (x) at the left endpoint of ea h subinterval. The
resulting Riemann sum is
b
a
f (x) dx
n X
i=
f (x i 1 )x; x i = a + ix: (2)
Similarly, we an determine the height of ea h re tangle using the right endpoint of ea h
subinterval, resulting in the approximation
b
a
f (x) dx
n X
i=
f (x i
)x: (3)
We have seen that a more a urate approximation an b e obtained by setting the height of
ea h re tangle equal to the value of f (x) at the midpoint of the orresp onding subinterval.
The resulting approximation is known as the Midpoint Rule:
b
a
f (x) dx
n X
i=
f (x i 1 = 2
)x; x i 1 = 2
x i 1
In addition, we an approximate the integral by averaging the approximations obtained by using
left endp oints and right endp oints. The resulting rule, alled the Trapezoidal Rule, e e tively
approximates the area under the graph of f by n trap ezoids of width x and heights f (x i 1
) and
f (x i ), for i = 1 ; : : : ; n.
Intuitively, it makes sense that an approximation using trap ezoids is more a urate than using
re tangles. This is true in that the Trap ezoidal Rule is far more a urate than using left or
right endp oints. In fa t, not only is it more a urate, but the approximation obtained using
the Trap ezoidal Rule onverges to the exa t value of the integral at a mu h faster rate than the
approximation obtained using left or right endp oints. Sp e i ally, the error in the approximation
by left or right endp oints de reases by a fa tor of 2 when the numb er of re tangles is doubled.
In other words, the error is prop ortional to x, and therefore we say that these approximations
onverge linearly to the exa t value as n, the numb er of re tangles, tends to 1.
The error in the Trap ezoidal Rule, however, de reases by a fa tor of 4 when the numb er of
re tangles is doubled. It follows that the error is prop ortional to x
, and therefore we say that
the approximation obtained using the Trap ezoidal Rule onverges quadrati al ly to the exa t value
as n, the numb er of trap ezoids, tends to 1.
Surprisingly, it turns out that the Midp oint Rule, even though it approximates the area using
re tangles, is even more a urate than the Trap ezoidal Rule. Its approximations onverge quadrat-
i ally to the exa t value, and the error with n re tangles is approximately half of the error of the
Trap ezoidal Rule using n trap ezoids. The reason for this greater a ura y an b e seen by examining
a parti ular subinterval [x i 1
; x i
℄ of [a; b℄. Let x M
b e the midp oint of this subinterval. Then the
area of the re tangle of height f (x M
) and width x is equal to the area of the trap ezoid whose
upp er side is tangent to the graph of f at x M
, sin e su h a trap ezoid, by the equation of the tangent
line, would have heights f (x M ) f
(x M )x= 2 and f (x M ) + f
(x M )x=2. The fa t that the upp er
side of this trap ezoid is tangent to the graph of f allows this side to more losely approximate the
graph of f on this subinterval than the line passing through f (x i 1 ) and f (x i ), whi h is the upp er
side of the trap ezoid used by the Trap ezoidal Rule.
Example 1 The following table des rib es a fun tion r (t) that indi ates the rate of snowfall at time
t, where t is measured in hours sin e some initial time.
t 0 1/2 1 3/2 2 5/2 3
r (t) 0.7 1.2 2.3 1.7 1.1 0.5 0.
Estimate the total snowfall over the three-hour p erio d for whi h data has b een gathered.
Solution We will estimate the total snowfall, whi h is given by the de nite integral
r (t) dt; (7)
using ve di erent metho ds: left endp oints, right endp oints, the Midp oint Rule, the Trap ezoidal
Rule, and Simpson's Rule.
under the urve y = r (t) from t = 0 to t = 3. This area an b e estimated by approximating
the region under the urve by six re tangles that are determined as follows: the interval [0; 3℄
is divided into six subintervals of equal with t = (3 0)= 6 = 1 =2. Ea h subinterval has
endp oints [t i 1
; t i
℄ where t i
= it for i = 0 ; : : : ; 6. Then, we have
r (t) dt =
i=
t i
t i 1
r (t) dt; (8)
and ea h integral in the ab ove sum an b e approximated as follows:
t i
t i 1
r (t) dt r (t i 1
)(t i 1