∫₀¹ x⁴ dx, n = 2
S = 0.208333
h = 0.5.
Simpson's rule with step on has error : of order , and exact for polynomials up to degree 3.
This page is easier if you are comfortable with:
For with two strips (): , error , below the bound . For with : , error exactly, since . For with : : zero error, as the fourth derivative of a cubic is 0.
Compared with the trapezium rule's (trapezium rule error), halving reduces Simpson's error by a factor of 16. The rule integrates the parabola through three points exactly (Lagrange interpolation, interpolation error) and, by symmetry, also cubics (Simpson's rule).
Gaussian quadrature reaches the same accuracy with fewer function evaluations (Gaussian quadrature). The fourth derivative of is (exponential derivatives) and of is 24 (the derivative of a power).
Simpson's rule is far more accurate than the trapezium rule for smooth functions, with error of order h to the fourth.
Halving h reduces the bound sixteen-fold.
These examples are worked by hand, step by step, so you can compare your own working.
Find the error of Simpson's rule for with .
Find the error of Simpson's rule for with .
Find the error of Simpson's rule for with .
A few situations come up again and again. Knowing them saves time and helps you spot answers that cannot be right.
S = 0.208333
h = 0.5.
0.2
1/5.
0.008333 = (b − a)h⁴f⁗/180
1 × 0.0625 × 24 ÷ 180.
S = exact for ∫₀¹ x³ = 0.25
f⁗ = 0.
Simpson’s rule is exact for cubics. Its composite error is −(b − a)h⁴ f⁗(ξ)/180, so halving h divides the error by about 16.
Estimate ∫₀¹ x⁴ dx with n = 2.
Find S − exact.
Use (b − a)h⁴f⁗/180.
Show S is exact for ∫₀¹ x³ dx.
1, 2, 1 ✗
1, 4, 1 ✓
Simpson uses 1, 4, 2, 4, …, 4, 1.
n = 3 ✗
n must be even ✓
Parabolas need pairs of strips.
error ∝ h² ✗
error ∝ h⁴ ✓
Fourth-order accurate.
h/6 ✗
h/3 ✓
The 1/3 factor.
Try each one on paper, then open the answer. Use the solver above to see the full working.
2.6667
0.3333
0.200521
16
0.000521
0.2
Unlimited fresh questions with instant marking. Choose a level, work it out on paper, then type your answer.
Solve: …
h/3 [f₀ + 4f₁ + 2f₂ + … + fₙ].
−(b − a)h⁴f⁗(ξ)/180.
For polynomials up to degree 3.
An even number.
trapezium rule error.
Gaussian quadrature.
More in Numerical methods and optimisation and the formula sheets.