NM6–NM8 - The trapezium rule and area estimates

NM6–NM8 - The trapezium rule and area estimates

A curve can enclose an area even when you have only a table of its heights. NM6 builds estimates from rectangles, NM7 replaces their flat tops with trapezia, and NM8 uses the curve's shape to judge the error and improve the estimate. The width of a strip and the quality of the data matter throughout.

Estimating with rectangles

How much area lies under y=1+x2y=1+x^2 from x=0x=0 to x=3x=3, if you use only the heights at whole numbers? Four readings do not describe every point, but they are enough to build two useful estimates.

You already know

For a curve above the axis, ∫aby dx\int_a^b y\,\mathrm{d}x represents the area between the curve, the axis and the two ordinates. A rectangle's area is width times height. Here we estimate the area by adding strips rather than integrating a formula.

Divide the interval into strips. In each strip choose the height at its left endpoint or at its right endpoint. For an increasing curve above the axis, a left-endpoint rectangle sits below the curve and a right-endpoint rectangle sits above it. For a decreasing curve, those conclusions reverse.

[DIAGRAM: asset_name: Left and right rectangles; asset_slug: nm6-rectangles; caption: Left and right heights give an underestimate and an overestimate for this increasing curve; description: Two panels show y equals 1 plus x squared from 0 to 3, with three rectangles of width 1. Left-endpoint heights 1, 2 and 5 give area 8 below the curve. Right-endpoint heights 2, 5 and 10 give area 17 above the curve]
Left and right heights give an underestimate and an overestimate for this increasing curve

Name the endpoint choice: “rectangular strips” alone does not determine which heights you used.

Equal-width rectangle estimates

L=h(y0+y1+⋯+yn−1),R=h(y1+y2+⋯+yn),h=b−anL=h(y_0+y_1+\cdots+y_{n-1}),\qquad R=h(y_1+y_2+\cdots+y_n),\qquad h=\frac{b-a}{n}

These use nn equal strips between aa and bb, with n+1n+1 ordinates y0,…,yny_0,\ldots,y_n. For area above the axis, take non-negative heights. LL uses left endpoints and RR right endpoints.
Not on the formulae sheet: learn it.

There is one more reading than there are strips: adjacent strips share a boundary.

Worked example 1: left-endpoint rectangles

Question. Use three left-endpoint rectangular strips to estimate the area under y=1+x2y=1+x^2 from 00 to 33. State whether the estimate is too small or too large.

Plan. Use width 11 and the heights at 00, 11 and 22.

h=3−03=1three equal stripsy0=1,y1=2,y2=5left-endpoint heightsL=1(1+2+5)=8sum rectangle areas\begin{aligned} h&=\frac{3-0}{3}=1 &&\text{three equal strips}\\ y_0&=1,\quad y_1=2,\quad y_2=5 &&\text{left-endpoint heights}\\ L&=1(1+2+5)=8 &&\text{sum rectangle areas} \end{aligned}

Why omit the height at 33? It is the right boundary of the final strip, whereas each left rectangle takes its height from the start of its strip.

Answer. The area estimate is 88 square units. It is an underestimate because the curve is increasing and each left rectangle lies below it.

Check. There are three terms in the sum, matching three strips.

The next example changes only the endpoint choice. The curve and strip widths remain exactly the same.

Worked example 2: right-endpoint rectangles

Question. Use three right-endpoint rectangular strips for the same curve and interval, and state whether the result is too small or too large.

Plan. Use the heights at 11, 22 and 33, keeping width 11.

y1=2,y2=5,y3=10right-endpoint heightsR=1(2+5+10)add three rectangles=17evaluate\begin{aligned} y_1&=2,\quad y_2=5,\quad y_3=10 &&\text{right-endpoint heights}\\ R&=1(2+5+10) &&\text{add three rectangles}\\ &=17 &&\text{evaluate} \end{aligned}

Why is the result larger? On this increasing curve, moving each rectangle's chosen height to its right endpoint makes it taller throughout the strip.

Answer. The estimate is 1717 square units, an overestimate. The actual area lies between 88 and 1717.

Check. R−L=17−8=9=1(10−1)R-L=17-8=9=1(10-1): all the shared internal heights cancel when the sums are subtracted.

A sum using every height once would not be either of these rectangle methods.

Watch out

Wrong: L=1(1+2+5+10)L=1(1+2+5+10) for three strips. That counts four rectangles. Right: use three left heights 1+2+51+2+5, or three right heights 2+5+102+5+10, and name which choice you made.

Now reverse the direction of the curve and decide which bound goes where.

Joining the heights with trapezia

A trapezium follows the slope between neighbouring readings, so it usually fits a smooth curve better than a rectangle of the same width.

For one strip the parallel sides have lengths yiy_i and yi+1y_{i+1}; their perpendicular separation is hh. Its area is 12h(yi+yi+1)\tfrac12h(y_i+y_{i+1}), using the trapezium-area formula on the extra formulae sheet. Adding adjacent strips counts each internal height twice, but the two outside heights once.

Trapezium rule

A≈h2[(y0+yn)+2(y1+y2+⋯+yn−1)],h=b−anA\approx\frac h2\left[(y_0+y_n)+2(y_1+y_2+\cdots+y_{n-1})\right], \qquad h=\frac{b-a}{n}

Use nn equal-width strips, so there are n+1n+1 ordinates, and non-negative heights when calculating geometric area above the axis. This rule is printed on the question paper's formulae page.
On the formulae sheet.

A useful surprise follows straight from the sums: for equal-width strips, the trapezium estimate is exactly the mean of the left- and right-rectangle estimates, T=(L+R)/2T=(L+R)/2. Each trapezium averages the two endpoint heights. This relationship is derived here; it is not on the formulae sheet: learn it as a check, rather than another rule to substitute blindly.

Worked example 3: three trapezia

Question. Use three strips and the trapezium rule to estimate the area under y=1+x2y=1+x^2 from 00 to 33.

Plan. Find the strip width, leave the endpoint heights single and double the internal heights.

h=3−03=1width, not total intervalT=12(1)[(1+10)+2(2+5)]outside once, inside twice=12(11+14)=12.5evaluate\begin{aligned} h&=\frac{3-0}{3}=1 &&\text{width, not total interval}\\ T&=\frac12(1)\left[(1+10)+2(2+5)\right] &&\text{outside once, inside twice}\\ &=\frac12(11+14)=12.5 &&\text{evaluate} \end{aligned}

Why double 22 and 55? Each is a boundary height shared by two neighbouring trapezia.

Answer. The area estimate is 12.512.5 square units.

Check. The rectangle estimates were 88 and 1717, and (8+17)/2=12.5(8+17)/2=12.5.

The second example changes only the spacing. Six strips require seven readings, including the new half-step heights.

Continue this lesson.

You’re previewing NovaLearn without an account. Create a free account to read the rest.

Create free account