Nc3, Nc4 - Midpoint, trapezium and Simpson's rules
Nc3 approximates definite integrals using midpoint, trapezium and Simpson's rules, with the correct sample points and weights. Nc4 connects the rules, explains their usual orders and uses refinement output to assess accuracy. You will also use curvature to distinguish an estimate from a justified bound.
Choose midpoint heights or endpoint heights
For , one midpoint rectangle gives , while one trapezium gives . Their ordinary average, , is still wrong. Why does weighting the midpoint estimate twice as heavily give the exact answer ?
Start with the two simpler rules. Divide into equal strips, each of width . The midpoint rule samples once at the centre of each strip. The trapezium rule uses the two boundary heights of each strip.
You already know
A definite integral is a signed area. Keep stored precision through a calculation and round the reported output as requested. An approximation method's order describes how its error scales with step length; that is different from the order of convergence of a refinement sequence.
Write and . A midpoint height is , rather than an endpoint value.
Midpoint and trapezium rules
With equal strips and ,
uses midpoint values. uses endpoint values; interior endpoints receive weight because each belongs to two adjacent trapezia.
In the formula booklet.
For a curve concave upwards throughout the interval, midpoint rectangles underestimate its integral and trapezia overestimate it: . For a curve concave downwards, the inequalities reverse. These curvature bounds are not printed separately in the booklet: learn them. They do not follow merely from the function being increasing.
[DIAGRAM: asset_name: Midpoint rectangles and trapezia on a convex curve; asset_slug: h645_b132_midpoint_trapezium; caption: For the upward-curving graph, the midpoint estimate is below the integral and the trapezium estimate is above it; description: Two panels show y equals x squared on zero to two, with two equal strips of width one. Sage midpoint rectangles use heights one quarter and nine quarters, giving M2 equal to 2.5. Clay trapezia use endpoint heights zero, one and four, giving T2 equal to three. The exact integral eight thirds is labelled in a separate strip.]

Worked example 1: two equal strips
Question. Approximate using and . Use the curve's shape to bound .
Plan. Calculate the common strip width, then use midpoint or endpoint samples as appropriate.
Why this step? The midpoint samples are and , not , and . The two rules use different points even though the strip widths agree.
Answer. , , and .
Check. Direct integration gives , between the two approximations.
Change only the strip count from to . The interval and integrand stay fixed.
Worked example 2: halving the strip width
Question. Find and for the same integral, and update the bound.
Plan. Use width , with four midpoint samples and five endpoint samples.
Why this step? Halving the width doubles the number of strips, not the number of endpoint values: those change from to .
Answer. , , so .
Check. The bounding gap has fallen from to , a factor of .
A bounding interval can justify reported precision: if both endpoints round to the same value at the requested precision, every enclosed integral value does too. By contrast, similar-looking estimates without a known bound provide empirical evidence rather than a guarantee.
Watch out
Wrong: decide over- or under-estimation from whether the graph rises. Right: use its curvature. An increasing concave-down graph gives the opposite midpoint/trapezium ordering from an increasing concave-up graph.
Keep four strips and change only the integrand's power.
Simpson's rule uses an even number of subintervals
Simpson's rule combines values in successive triples, corresponding to a quadratic fitted across two equal subintervals. Adjacent triples share a boundary value.
Use for equal subintervals, with nodes. There are paired applications. We describe Simpson's rule by these nodes and applications, rather than by midpoint/trapezium “strips”.
Simpson's rule
For equal subintervals, let , with . Then
The weights are . For one application, there are just three weights .
In the formula booklet.
The notation matters: in a worksheet row containing , Simpson's node spacing is half the strip width used by the other two. Calculate the spacing from the formula you are actually applying.
[DIAGRAM: asset_name: Simpson nodes paired in triples; asset_slug: h645_b132_simpson_weights; caption: Four equal subintervals use five nodes with weights one four two four one; description: The graph of one plus x squared on zero to two has nodes at zero, one half, one, three halves and two. Two paired applications span zero to one and one to two, sharing the middle boundary node. A separate lower strip places weights one, four, two, four and one under the corresponding nodes, and marks the common node spacing one half.]

Worked example 3: five nodes, four subintervals
Question. Use Simpson's rule with node spacing to approximate .
Plan. There are four subintervals, so use and weights .
Why this step? The factor outside is , with . Using the whole paired width would double the result.
Answer. .
Check. This equals the exact integral. Simpson's rule is exact for quadratic functions.
Change only the power from to , keeping the same interval and nodes.
Worked example 4: exactness extends to a cubic
Question. Apply the same Simpson calculation to .
Plan. Retain the spacing and weights, and update the function values.
Why this step? The shared interior boundary at has weight ; the two intervening nodes have weight .
Answer. .
Check. The exact integral is . Simpson's rule is exact for cubics too, even though each local fitted curve is quadratic.
That cubic exactness is a useful surprise: local curve fitting can integrate a wider family exactly than the fitted degree alone suggests. For general functions, however, Simpson's rule is still an approximation. Its polynomial exactness through degree is not stated separately in the booklet; the calculations above demonstrate it for these examples.
Watch out
Wrong: use an odd number of equal subintervals with the standard composite Simpson formula, or assign weight to every interior node. Right: use an even count and alternate .
Increase only the power again. Exactness is no longer automatic.
Combine existing estimates without new function values
The midpoint heights of a coarse grid become the new interior nodes when that grid is halved. This makes the rules fit together.
For example, coarse nodes and their intervening midpoints together form a grid of spacing . Combining old endpoint and midpoint sums can therefore produce the refined trapezium and Simpson approximations.
Continue this lesson.
You’re previewing NovaLearn without an account. Create a free account to read the rest.
Create free account