Simpson's Rule — Formula, Examples & Definition
Simpson's Rule
A method for approximating a definite
integral
using
parabolic approximations of f.
The parabolas are drawn as shown below.
To use Simpson's rule follow these two steps:
![Two-step Simpson's Rule: partition [a,b] into n equal subintervals (n even), then integrate using...](s_assets/s87.gif)

See also
Key Formula
∫abf(x)dx≈3Δx[f(x0)+4f(x1)+2f(x2)+4f(x3)+2f(x4)+⋯+4f(xn−1)+f(xn)]
Where:
- a,b = The lower and upper limits of integration
- n = The number of subintervals (must be even)
- Δx = The width of each subinterval: $\Delta x = \frac{b - a}{n}$
- xi = The partition points: $x_i = a + i\,\Delta x$ for $i = 0, 1, 2, \ldots, n$
- f(xi) = The value of the function at each partition point
Worked Example
Problem: Use Simpson's Rule with n = 4 subintervals to approximate the integral ∫02x2dx.
Step 1: Compute the subinterval width Δx.
Δx=nb−a=42−0=0.5
Step 2: Identify the partition points x0,x1,x2,x3,x4.
x0=0,x1=0.5,x2=1,x3=1.5,x4=2
Step 3: Evaluate f(x)=x2 at each partition point.
f(0)=0,f(0.5)=0.25,f(1)=1,f(1.5)=2.25,f(2)=4
Step 4: Apply Simpson's Rule with the pattern of coefficients: 1, 4, 2, 4, 1.
3Δx[f(x0)+4f(x1)+2f(x2)+4f(x3)+f(x4)]=30.5[0+4(0.25)+2(1)+4(2.25)+4]
Step 5: Simplify the arithmetic inside the brackets, then multiply.
=30.5[0+1+2+9+4]=30.5(16)=38≈2.6667
Answer: The approximation is 38≈2.6667. The exact value of ∫02x2dx=38, so Simpson's Rule gives the exact answer here because x2 is a polynomial of degree 2 (a quadratic), and Simpson's Rule is exact for polynomials of degree 3 or less.
Another Example
This example uses a non-polynomial function where Simpson's Rule does not give the exact answer, illustrating its role as an approximation technique and showing how small the error can be even with few subintervals.
Problem: Use Simpson's Rule with n = 4 subintervals to approximate ∫13x1dx.
Step 1: Compute the subinterval width.
Δx=43−1=0.5
Step 2: List the partition points.
x0=1,x1=1.5,x2=2,x3=2.5,x4=3
Step 3: Evaluate f(x)=x1 at each point.
f(1)=1,f(1.5)=32,f(2)=0.5,f(2.5)=0.4,f(3)=31
Step 4: Substitute into Simpson's Rule.
30.5[1+4(32)+2(0.5)+4(0.4)+31]=61[1+38+1+1.6+31]
Step 5: Compute the bracket sum and final result.
=61[1+2.6667+1+1.6+0.3333]=61(6.6)=1.1
Answer: The approximation is 1.1. The exact value is ln3≈1.0986, so the error is only about 0.0014.
Frequently Asked Questions
Why does n have to be even in Simpson's Rule?
Simpson's Rule works by fitting a parabola through every group of three consecutive points, which spans two subintervals at a time. If n were odd, the last subinterval would be left without a partner, and you could not form a complete parabolic segment. This is why n must always be an even number.
What is the difference between Simpson's Rule and the Trapezoid Rule?
The Trapezoid Rule connects consecutive points with straight lines (degree 1), while Simpson's Rule connects groups of three points with parabolas (degree 2). Because parabolas can better match the curvature of most functions, Simpson's Rule generally produces a more accurate approximation for the same number of subintervals. The error in the Trapezoid Rule decreases as O(Δx2), whereas Simpson's Rule error decreases much faster at O(Δx4).
When is Simpson's Rule exact?
Simpson's Rule gives the exact value of the integral when the integrand is a polynomial of degree 3 or less. This is because the parabolic interpolation used in each pair of subintervals perfectly captures cubic (and lower-degree) behavior, causing all error terms to cancel out.
Simpson's Rule vs. Trapezoid Rule
| Simpson's Rule | Trapezoid Rule | |
|---|---|---|
| Approximating shape | Parabolas (quadratic curves) through every 3 points | Straight line segments (trapezoids) through every 2 points |
| Coefficient pattern | 1, 4, 2, 4, 2, …, 4, 1 (divided by 3) | 1, 2, 2, 2, …, 2, 1 (divided by 2) |
| Requirement on n | n must be even | n can be any positive integer |
| Error order | O(Δx4) — fourth-order accuracy | O(Δx2) — second-order accuracy |
| Exact for polynomials up to degree | 3 (cubic) | 1 (linear) |
Why It Matters
Simpson's Rule appears in AP Calculus and university calculus courses as a core numerical integration technique. Engineers and scientists rely on it when an antiderivative is impossible or impractical to find analytically — for instance, when working with experimental data given only as a table of values. Its high accuracy relative to its simplicity makes it one of the most widely used numerical methods in practice.
Common Mistakes
Mistake: Using an odd number of subintervals.
Correction: Simpson's Rule requires an even number of subintervals (n must be even). Each parabolic segment spans two subintervals, so an odd n leaves an unmatched interval. Always check that n is even before applying the formula.
Mistake: Mixing up the alternating coefficients 4 and 2.
Correction: The coefficients follow the strict pattern 1, 4, 2, 4, 2, …, 4, 1. The first and last values get coefficient 1, all odd-indexed values get 4, and all even-indexed interior values get 2. A helpful check: the sum of the coefficients should equal 3n(1+4+2+⋯)=33n⋅(average coefficient), or more practically, just verify the pattern alternates correctly starting with 4 after the first term.
Related Terms
- Definite Integral — The quantity Simpson's Rule approximates
- Trapezoid Rule — A simpler numerical integration method using trapezoids
- Parabola — The curve shape used in each Simpson approximation
- Partition of an Interval — How the interval is divided into subintervals
- Riemann Sums — The foundational rectangular approximation method
- Numerical Integration — The broader category of approximation techniques
