4.4Numerical integration: Riemann, trapezoid, Simpson
The idea
When no neat antiderivative exists, we estimate the area with rectangles, trapezoids or Simpson's parabolas.
Think of it like this: Covering a lake with floor tiles: smaller tiles fit better.
Why it exists
GATE asks for trapezoid or Simpson estimates from a table of values.
How it works
- Split [a, b] into n strips of width h = (b − a)/n.
- Trapezoid: h[(f₀ + fₙ)/2 + f₁ + … + fₙ₋₁].
- Simpson (n even): (h/3)[f₀ + 4f₁ + 2f₂ + … + fₙ].
- More strips means smaller error.
Worked example: GATE 2013
Values of x² from 0 to 3 at spacing h = 0.3: (0 + 9)/2 = 4.5 plus the nine middle values 0.09 + 0.36 + … + 7.29 = 25.65, times 0.3 gives 9.045 (the exact value is 9).
Now play with it
- →Choose x² on [0, 3] and compare the trapezoid error with the Simpson error.
- →Increase n and watch the estimate converge.
Exact value 9. Trapezoids over-estimate a convex curve and Simpson is exact for x².
Check yourself
The trapezoidal rule on a convex function such as x² gives
Exam notes (the dense version)
Split [a, b] into n strips of width h = (b − a)/n. Trapezoidal rule: h[(f₀ + fₙ)/2 + f₁ + … + fₙ₋₁]; it over-estimates a convex function. Simpson's 1/3 rule (n even): (h/3)[f₀ + 4f₁ + 2f₂ + 4f₃ + … + fₙ]; exact for polynomials up to degree 3. GATE 2013: points of f(x) = x² at spacing 0.3 on [0, 3] give 0.3 × [(0 + 9)/2 + 25.65] = 9.045 (exact value 9).
Previous year questions: Integration (7)
PYQs are grouped by topic, so this is the full set for Integration; try the ones that match this subtopic. Open all 7 on the topic page.