Processing math: 95%

Content

Estimates of area

Left-endpoint estimate

In the previous section, we estimated the area under the graph by splitting the interval [0,5] into equal subintervals, and considering rectangles built on these subintervals. These rectangles had their top-left corner touching the curve y=f(x). In other words, the height of the rectangle over a subinterval was the value of f at the left endpoint of that subinterval. For this reason, this method is known as the left-endpoint estimate.

To obtain a general formula for this estimate, suppose we have a real-valued function f(x) defined on an interval [a,b]. In order to estimate the area under the graph y=f(x) between x=a and x=b, we split [a,b] into n equal subintervals. Let these be

[x0,x1],[x1,x2],[x2,x3],,[xn1,xn].

So x0=a, xn=b and the real numbers x1,,xn1 are equally spaced between a and b. As the numbers are equally spaced, the width of each interval is 1n(ba). That is,

xjxj1=ban,for all j=1,2,,n.

We also write Δx for this width, the 'change in x' between successive endpoints.

Exercise 1

Show that xj is given by

xj=a+j(ban)=a+jΔx,for every j=0,1,,n.

Above the interval [x0,x1], we have a rectangle whose width is Δx and whose height is f(x0). In general, above the interval [xj1,xj], we have a rectangle of width Δx and height f(xj1). The area of this rectangle is then f(xj1)Δx. The total area estimate is therefore

[f(x0)+f(x1)++f(xn1)]Δx=nj=1f(xj1)Δx.

Right-endpoint estimate

Instead of setting the height of each rectangle to the value of f at the left endpoint of each subinterval, we can use the right endpoint and obtain the right-endpoint estimate.

We again have a rectangle above each interval [xj1,xj] of width 1n(ba)=Δx, but the height is now given at the right endpoint, i.e., the height is f(xj). So the total area estimate is

[f(x1)+f(x2)++f(xn)]Δx=nj=1f(xj)Δx.

Note that this formula only differs slightly from that for the left-endpoint estimate; the heights are obtained at x-values x1 to xn, rather than x0 to xn1.

Two diagrams. 1.	y = f (x) where f(x) = x squared + 1, parabola, 5 equal width rectangles between x = 0 and x = 5.
2.	y = f(x) where f(x) = x squared + 1, parabola, 5 equal width rectangles between x = 0 and x = 5.
Detailed description of diagram

Screencast of interactive 2 mp4 of interactive CDF 2,  Interactive 2 CDF of interactive 2

Example

Estimate the area under the graph of y=x3 between 0 and 2, using the right-endpoint estimate with four subintervals. Is this an overestimate or an underestimate?

Solution

We split the interval [0,2] into n=4 equal subintervals [0,12], [12,1], [1,32], [32,2] and consider rectangles of width Δx=12. The right endpoints are 12, 1, 32 and 2, so letting f(x)=x3, the estimate for the area is

4j=1f(xj)Δx=[f(x1)+f(x2)+f(x3)+f(x4)]Δx=[f(12)+f(1)+f(32)+f(2)]12=[18+1+278+8]12=25212=254.

In each interval [xj1,xj], the function f takes its maximum value at xj. So this is an overestimate.

Midpoint estimate

Screencast of interactive 3 mp4 of interactive CDF 3,  Interactive 3 CDF of interactive 3

A third way to estimate the area under a graph is to set the height of each rectangle equal to the value of f at the midpoint of each subinterval, obtaining the midpoint estimate.

Specifically, above the interval [x0,x1] there is again a rectangle of width Δx, but its height is the value of f at the midpoint of the interval. The midpoint is 12(x0+x1), so the height is f(12(x0+x1)) and the area of the rectangle is f(12(x0+x1))Δx. Similarly, above each interval [xj1,xj], which has midpoint 12(xj1+xj), there is a rectangle of width Δx and height f(12(xj1+xj)), and hence of area f(12(xj1+xj))Δx. Therefore the total area estimate is

[f(x0+x12)+f(x1+x22)++f(xn1+xn2)]Δx=nj=1f(xj1+xj2)Δx.
Exercise 2

Estimate the area under the graph of y=x2+x between x=0 and x=4, using the midpoint estimate with two subintervals.

Exercise 3

Assume as above that the graph of y=f(x) is above the x-axis, and assume also that f is an increasing function (that is, uv implies f(u)f(v)). Explain why, under these conditions, we have

left-endpoint estimate  midpoint estimate  right-endpoint estimate.

What happens if f is a decreasing function (that is, uv implies f(u)f(v))?

Trapezoidal estimate

We need not restrict ourselves to rectangles. Instead, we could plot the points on the graph y=f(x) for each xj, and join the dots. In this way, the function f(x) is approximated by a piecewise linear function, that is, a sequence of straight line segments. The area under y=f(x) is then approximated by trapezia. This estimate is known as the trapezoidal estimate.

y = f(x) where f(x) = x squared + 1, parabola, 5 equal width trapezia between x=0 and x = 5, with trapezia starting at x= 0, x = 1, x = 2, x = 3 and x = 4.
Detailed description of diagram

Above the interval [x0,x1] we have a trapezium of width 1n(ba)=Δx. Its left side has height f(x0), and its right side has height f(x1). So the area of the trapezium is

(f(x0)+f(x1)2)Δx.

Similarly, above the interval [xj1,xj], we have a trapezium of width Δx with two sides of height f(xj1) and f(xj), hence the area of the trapezium is 12(f(xj1)+f(xj))Δx. The total area estimate is

[f(x0)+f(x1)2+f(x1)+f(x2)2+f(x2)+f(x3)2++f(xn1)+f(xn)2]Δx,

which simplifies to

[12f(x0)+f(x1)+f(x2)++f(xn1)+12f(xn)]Δx.

Screencast of interactive 1 mp4 of interactive CDF 1,  Interactive 1 CDF of interactive 1

Exercise 4

Show that the trapezoidal estimate is the average of the left-endpoint estimate and the right-endpoint estimate.

Screencast of exercise 4 mp4 of screencast of exercise 4

Limits of estimates

In some simple cases, it is possible to calculate an area estimate with n rectangles (or trapezia) and explicitly take the limit as n to obtain the exact area. In the rest of this module, and in practice, we use other techniques to calculate areas, but it is worth seeing that sometimes a direct approach is possible.

For example, consider the function f(x)=x2 and the area under the graph y=f(x) between x=0 and x=1. We'll compute the right-endpoint estimate with n rectangles, and then take the limit as n.

y=f(x) of f(x)= x squared, parabola, between x=0 and x=1 shaded between parabola and x axis.

Dividing the interval [0,1] into n subintervals [x0,x1], , [xn1,xn], we have

Δx=1nandxj=jn.

So the right-endpoint estimate is

nj=1f(xj)Δx=nj=1f(jn)1n=nj=1(jn)21n=1n3nj=1j2.

As it turns out, there is a formula for the sum of the first n squares:

nj=1j2=12+22++n2=n(n+1)(2n+1)6.

The right-endpoint estimate with n rectangles then becomes

n(n+1)(2n+1)6n3=2n3+3n2+n6n3=16(2+3n+1n2).

Taking the limit as n, since 3n0 and 1n20, the area under the curve is

lim

Note that the method used above relies crucially on the formula for the sum of squares. For more complicated functions, no such formula may be available, and this approach becomes impractical or impossible.

Exercise 5

Using the formula

\sum_{j=1}^n j = 1 + 2 + \dots + n = \frac{n(n+1)}{2},

calculate the right-endpoint estimate for the area under the graph y=x between {x=0} and x=1. Take the limit as n \to \infty to find the exact area. Confirm your answer using elementary geometry.

Screencast of exercise 5 mp4 of screencast of exercise 5

Next page - Content - Definition of the integral