∫IntegralPasoEspañol
Advanced techniques

Trapezoidal and Simpson rules

Material by the IntegralPaso project. Conditions and limits are stated in each guide; external teaching review is pending.

Sn=h3[f0+4f1+2f2+⋯+4fn−1+fn]S_n=\frac h3[f_0+4f_1+2f_2+\cdots+4f_{n-1}+f_n]

For an approximation use numerical quadrature. Trapezoids use segments; Simpson uses parabolas and requires even n. Check smoothness, singularities and error: an approximation is not an exact primitive.

Common mistake

Do not present a numerical result as exact without justification.

Step-by-step example

  1. Apply Simpson with two subintervals.

    ∫01x2 dx,h=1/2\int_0^1x^2\,dx,\quad h=1/2
  2. Evaluate at 0, 1/2 and 1.

    S2=16[0+4(1/4)+1]S_2=\frac16[0+4(1/4)+1]
  3. Here it gives the exact value because the function is quadratic.

    S2=1/3S_2=1/3
Solve