← ∫ Integration
Subtopic 4 of 6

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

  1. Split [a, b] into n strips of width h = (b − a)/n.
  2. Trapezoid: h[(f₀ + fₙ)/2 + f₁ + … + fₙ₋₁].
  3. Simpson (n even): (h/3)[f₀ + 4f₁ + 2f₂ + … + fₙ].
  4. 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.
012302.557.5
Rectangle estimate8.9375
Accurate value (fine Simpson)9
Error0.0625

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

Remember: Trapezoid: h[(f₀+fₙ)/2 + middle]. Simpson needs even n.
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.