⌇Trapezoidal Rule Calculator
The Trapezoidal Rule approximates a definite integral by dividing the area under the curve into trapezoids rather than rectangles. Each trapezoid connects adjacent function values with a straight line. The rule has second-order accuracy — halving the step size reduces the error by a factor of four.
- 1T = (h/2)[f(x₀) + 2f(x₁) + 2f(x₂) + ... + 2f(xₙ₋₁) + f(xₙ)]
- 2h = (b−a)/n is the step size
- 3Error ≈ −(b−a)³/(12n²) × f''(ξ) for some ξ in [a,b]
- 4Error is zero when f is linear (trapezoids fit exactly)
- 5Simpson's Rule corrects the trapezoid error using parabolic interpolation
∫[0,1] x² dx, n=10=≈ 0.3350 (exact: 0.3333)Error = 0.0017; halving n quadruples accuracy
∫[0,π] sin(x) dx, n=100=≈ 1.9998 (exact: 2.0000)
| n | Trapezoid (∫x²) | Simpson (∫x²) | Exact |
|---|---|---|---|
| 10 | 0.3350 | 0.3333 | 0.3333 |
| 100 | 0.33335 | 0.333333 | 0.333333 |
| 1000 | 0.3333335 | 0.33333333 | 0.33333333 |
🔒
100% Gratis
Sin registro
✓
Preciso
Fórmulas verificadas
⚡
Instantáneo
Resultados al instante
📱
Compatible móvil
Todos los dispositivos