P2 8.3 - The trapezium rule
Approximate an integral using equally spaced values from a function or a table. Understand the trapezium weights, use curve shape to identify overestimates and underestimates, and judge how refinement affects accuracy and what an error estimate can establish.
Equal intervals and endpoint weights
How can you estimate an integral when you have only a table of heights, or cannot integrate the function with the methods you know? Join consecutive plotted points with straight lines, and calculate the resulting trapezia instead of the curved strips.
For one strip of width , the two parallel sides are the endpoint heights and . Its signed trapezium contribution is . Adding adjacent strips counts an interior height twice, once in each neighbouring strip; the two outer heights appear once each.
Trapezium rule
For equal strips from to , with ordinates ,
An ordinate here is a sampled -value. The formula assumes equally spaced -values, not equally spaced heights.
In the formula booklet.
For positive heights, this gives the geometric area of the trapezia. With negative heights, it estimates the signed integral; it does not automatically give total area between curve and axis. That requires splitting at crossings and using positive piece areas.
Worked example 1: why an interior height is doubled
Question. Use the table to estimate by the trapezium rule.
Plan. There are two strips of width ; add their individual trapezia.
Answer. The integral is approximately .
Check. The separate trapezia have areas and , whose sum is . The height belongs to both strips.
Change only the spacing of the -values. Keeping the same heights does not keep the same area.
Worked example 2: halve the strip width
Question. Estimate from this table using the trapezium rule.
Plan. Use two strips of width , with the same endpoint weights as before.
Answer. The integral is approximately .
Check. The interval is half as wide as in Worked example 1 and all heights match, so each trapezium and their total area must halve: .
If the -gaps are unequal, a single common cannot be used in this formula. You can instead add individual trapezia with their actual widths. A table alone does not tell you how the true curve bends between the points.
Watch out
Five ordinates make four strips. Use the number of gaps in , and put the entire weighted height sum inside the bracket multiplied by .
Use the widths in a fresh table.
Approximating an integral from a function or table
When a function is given, first calculate its values at the equally spaced inputs; when a table is supplied, use its values and spacing directly.
For strips, the input list is . Keep working precision in calculated heights and round the final estimate as requested. A supplied rounded table limits the accuracy available; carry its entries as given rather than silently replacing them with other values.
Worked example 3: calculate the ordinates
Question. Use four strips to estimate .
Plan. Use , calculate five heights, then apply the weights.
Answer. , to three decimal places. The exact fraction is the trapezium estimate, not the exact integral.
Check. The four individual trapezia have areas , , and . Their sum is , confirming the endpoint-weight calculation.
Change only the vertical scale: multiply the same function by . Every strip height, and hence every trapezium contribution, triples.
Worked example 4: reuse an estimate after scaling
Question. Using the table and result in Worked example 3, estimate with the same four strips.
Plan. Multiply the unrounded trapezium estimate by ; there is no need to recalculate the table.
Answer. Approximately , to three decimal places.
Check. Direct substitution of the scaled heights gives
Adding a constant to every height adds a rectangle of area . More generally, on the same interval and strip division, an estimate for is . You may also combine an approximate integral with a separate term that you can integrate exactly. Follow an instruction to use an earlier result by showing that connection.
Watch out
is estimated by , not : the constant contributes its height times the interval's width.
Use all the supplied table entries before transforming the estimate.
Interpreting error from curve shape
The trapezium rule replaces curved edges by chords, so the position of those chords tells you the direction of the error.
If the graph bends upwards throughout an interval, each chord lies above the curve and the trapezium rule overestimates the signed integral. If it bends downwards, the chords lie below and the estimate is too small. The sign of the second derivative can establish this: positive means upward bending, negative means downward bending. This uses the derivative of the gradient that you already know.
Whether the function is increasing or decreasing is a different question. An increasing curve can bend either way. If the bending changes within the interval, different strip errors can have opposite signs, so a single global conclusion needs further justification. Do not infer the bending between samples from an unexplained table alone.
Signed and absolute error
For estimate and exact integral , the signed error is . A positive signed error is an overestimate. The absolute error is , the nonnegative size of the difference.
Use a curve whose exact integral is available to measure the error as well as predict its sign.
Continue this lesson.
You’re previewing NovaLearn without an account. Create a free account to read the rest.
Create free account