5.8 Trapezoidal rule

5.8 Trapezoidal rule

IB Maths: Applications and Interpretation HL: Revision notes

Studying this course? Keep your progress in one place.

Key facts

  • Split the area into strips of equal width hh and treat each as a trapezoid.
  • A≈h2[y0+yn+2(y1+⋯+yn−1)]A\approx\dfrac h2\left[y_0+y_n+2(y_1+\dots+y_{n-1})\right], with nn intervals and n+1n+1 values.
  • For a function on a≤x≤ba\le x\le b, h=b−anh=\dfrac{b-a}{n}.
  • The estimate is an over-estimate if the curve is concave up and an under-estimate if concave down.
  • The area under a rate graph is the total amount, in the units of rate ×\times time.

Trapezoids under a curve

Split the area into strips of equal width, treat each as a trapezoid and add their areas.

A strip between ordinates y0y_0 and y1y_1 has area h2(y0+y1)\dfrac h2(y_0+y_1). Adding all the strips, the interior values are used twice (once for each neighbouring strip) and the first and last once.

There are nn intervals and n+1n+1 values, so seven readings give six intervals.

  • Trapezoidal ruleA≈h2[y0+yn+2(y1+⋯+yn−1)]A\approx\dfrac h2\left[y_0+y_n+2(y_1+\dots+y_{n-1})\right]
  • Strip widthh=b−anh=\dfrac{b-a}{n}
Q0Q1Q2Q3Q4
Four trapezoids under y = t² + 1 (heights 1, 2, 5, 10, 17)

A table has 7 equally spaced readings. How many intervals nn does the rule use?

Using a table of data

Write down hh, nn and the values, then double only the interior values.

When data is given in a table, the readings must be equally spaced. Widths of 12,30,44,50,36,812,30,44,50,36,8 m measured every 2020 m give five intervals with h=20h=20.

A≈202[12+8+2(30+44+50+36)]=10×340=3400A\approx\dfrac{20}{2}[12+8+2(30+44+50+36)]=10\times340=3400 m2^2. With an average depth of 2.52.5 m, the volume is 85008500 m3^3.

01020304050020406080100Distance (m)Width (m)
River width every 20 m along the bank

Worked example

Estimate the area for the readings 2,3,5,42,3,5,4 taken at equal spacing h=1h=1.

For widths 12,30,44,50,36,812,30,44,50,36,8, which values are doubled?

Using a function

Choose nn, find h=b−anh=\dfrac{b-a}{n}, then work out each ordinate with a table on your GDC.

For R(t)=t2+1R(t)=t^2+1 on 0≤t≤40\le t\le4 with n=4n=4, h=1h=1 and the values are 1,2,5,10,171,2,5,10,17. Then A≈12[1+17+2(2+5+10)]=26A\approx\tfrac12[1+17+2(2+5+10)]=26.

You can use the GDC to generate the table, but show the substitution into the rule.

−0.50.511.522.533.544.524681012141618xyR(t) = t² + 1
R(t) = t² + 1 on 0 ≤ t ≤ 4

Worked example

Estimate ∫131x dx\displaystyle\int_1^3\frac1x\,dx using n=4n=4 strips.

What is hh for ∫15f(x) dx\int_1^5 f(x)\,dx with n=8n=8?

Accuracy of the estimate

If the curve bends upwards the chords lie above it, giving an over-estimate; if it bends downwards, an under-estimate.

The exact area ∫04(t2+1) dt=25.3\int_0^4(t^2+1)\,dt=25.3 (GDC). The estimate 2626 is an over-estimate because the curve is concave up. For y=xy=\sqrt x, which bends downwards, the estimate is an under-estimate.

Percentage error =∣approximate−exact∣∣exact∣×100=\dfrac{|\text{approximate}-\text{exact}|}{|\text{exact}|}\times100, here 26−25.3325.33×100≈2.6%\dfrac{26-25.33}{25.33}\times100\approx2.6\%. More, narrower strips usually reduce the error.

Concave up (e.g. t2+1t^2+1)

Shape of chords:
Chords lie above the curve
Result:
Over-estimate

Concave down (e.g. x\sqrt x)

Shape of chords:
Chords lie below the curve
Result:
Under-estimate
0.511.522.533.544.50.511.522.5xyy = √x
y = √x bends downwards, so the trapezoidal rule under-estimates

The rule is applied to y=ln⁡xy=\ln x (concave down). Is the estimate an over- or under-estimate?

Bounds and meaning

Use the bounds of each reading for upper and lower bounds, and read the area as rate times time.

A reading of 4.24.2 to 1 d.p. lies between 4.154.15 and 4.254.25. For the lower bound of the estimate use the lower bound of every reading; for the upper bound use the upper bounds. Rainfall readings 0.4,4.2,9.6,12.4,8.8,3.6,0.80.4,4.2,9.6,12.4,8.8,3.6,0.8 mm per hour every 0.50.5 h give 19.619.6 mm, with bounds 19.4519.45 and 19.7519.75.

The area under a rate graph is a total: (mm per hour) ×\times hours gives mm.

4.14.124.144.164.184.24.224.244.264.284.34.154.24.25

Worked example

A flow rate (litres per minute) is 0,4,6,20,4,6,2 at 0,1,2,30,1,2,3 minutes. How much water flowed?

A reading is 4.24.2 to 1 d.p. What are its lower and upper bounds?

Try an exam question

The speed of a car, in m s−1^{-1}, is measured every 2 seconds.

tt (s): 0, 2, 4, 6, 8 Speed: 0, 6, 10, 12, 12

Use the trapezoidal rule with four intervals to estimate the distance travelled in the 8 seconds.

[4 marks]

That's the notes covered.

Carry on to the next subtopic.

Try a question

How many trapezoids are used when the trapezoidal rule is applied to all the measurements?

1 mark, marked against the mark scheme

Revision notes