Single-Variable-Calculus · Unit 20 · Video 4 · Interactive Practice

Simpson's Rule: Parabolas and the Weights 1, 4, 1

IKey Formulas

FormulaNameWhat you need
∫x0x2p(x) dx=(2Δx) y0+4y1+y26\displaystyle \int_{x_0}^{x_2} p(x)\,dx = (2\Delta x)\,\frac{y_0 + 4y_1 + y_2}{6}One chunk: area under the parabola through three heightsA pair of steps; exact for every parabola pp
∫abf(x) dx≈Δx3(y0+4y1+2y2+4y3+⋯+2yn−2+4yn−1+yn)\displaystyle \int_a^b f(x)\,dx \approx \frac{\Delta x}{3}\left(y_0 + 4y_1 + 2y_2 + 4y_3 + \cdots + 2y_{n-2} + 4y_{n-1} + y_n\right)Simpson's rulenn even, Δx=b−an\Delta x = \frac{b-a}{n}, yi=f(xi)y_i = f(x_i)
∫abf(x) dx≈Δx(y02+y1+⋯+yn−1+yn2)\displaystyle \int_a^b f(x)\,dx \approx \Delta x\left(\tfrac{y_0}{2} + y_1 + \cdots + y_{n-1} + \tfrac{y_n}{2}\right)Trapezoidal rule (for comparison)Any nn, the same heights

Key Insight: Odd-numbered heights are chunk middles (weight 44), interior even-numbered heights are where two chunks meet (1+1=21 + 1 = 2), and only y0y_0 and yny_n keep weight 11. The weights total 3n3n, so Δx3⋅3n=b−a\frac{\Delta x}{3}\cdot 3n = b - a: Simpson's rule is the base b−ab - a times a weighted average height.

IIVisualization 1 — One Chunk: Why 1, 4, 1?

For any parabola through three heights, the area equals the base 2Δx2\Delta x times the weighted average y0+4y1+y26\frac{y_0 + 4y_1 + y_2}{6}.

IIIVisualization 2 — Stacking the Chunks

Neighbouring chunks share an end height, so their weights 1+11 + 1 add to 22, and only pairs of steps fit.

IVVisualization 3 — Parabolas vs Chords on the Same Heights

Using the same heights of f(x)=6x+1f(x) = \frac{6}{x+1} on [0,6][0, 6], parabolas over pairs of steps beat straight chords.

VQuiz Questions

Problem 1 · Apply the Weights

Given: n=4n = 4 steps of width Δx=1\Delta x = 1 with heights y0=2y_0 = 2, y1=5y_1 = 5, y2=6y_2 = 6, y3=4y_3 = 4, y4=1y_4 = 1. Find Simpson's estimate of the area.

✅ Correct! 13(2+20+12+16+1)=513=17\frac{1}{3}(2 + 20 + 12 + 16 + 1) = \frac{51}{3} = 17.
❌ Not quite. You gave y2y_2 weight 11. It is the end of chunk 1 and the start of chunk 2, so it gets 1+1=21 + 1 = 2.
❌ Not quite. 16.516.5 is the trapezoidal rule, 1⋅(1+5+6+4+12)1\cdot\left(1 + 5 + 6 + 4 + \tfrac12\right). Simpson uses the weights 1,4,2,4,11, 4, 2, 4, 1 and the factor Δx3\frac{\Delta x}{3}.
❌ Not quite. 5151 is the weighted sum. It still has to be multiplied by Δx3=13\frac{\Delta x}{3} = \frac13.
Show solution

With n=4n = 4 the weights are 1,4,2,4,11, 4, 2, 4, 1:

Δx3(y0+4y1+2y2+4y3+y4)=13(2+4(5)+2(6)+4(4)+1)=13(51)=17.\frac{\Delta x}{3}\left(y_0 + 4y_1 + 2y_2 + 4y_3 + y_4\right) = \frac{1}{3}\left(2 + 4(5) + 2(6) + 4(4) + 1\right) = \frac{1}{3}(51) = 17.

Check the weights: they total 12=3n12 = 3n, and Δx3⋅12=4=b−a\frac{\Delta x}{3}\cdot 12 = 4 = b - a.

Problem 2 · Which Δx?

Given: f(x)=x2+1f(x) = x^2 + 1 on [0,2][0, 2] with n=2n = 2, so the heights are y0=1y_0 = 1, y1=2y_1 = 2, y2=5y_2 = 5. Find Simpson's estimate of ∫02f(x) dx\int_0^2 f(x)\,dx.

✅ Correct! 13(1+8+5)=143\frac{1}{3}(1 + 8 + 5) = \frac{14}{3}, which is exactly ∫02(x2+1) dx\int_0^2 (x^2 + 1)\,dx: the curve is itself a parabola.
❌ Check Δx\Delta x. Δx\Delta x is one step, 2−02=1\frac{2 - 0}{2} = 1, not the whole base 22. The base of the chunk is 2Δx2\Delta x, and that is already built into Δx3=2Δx6\frac{\Delta x}{3} = \frac{2\Delta x}{6}.
❌ Not quite. That is base ×\times the plain mean 1+2+53\frac{1 + 2 + 5}{3}. A parabola's average height weights the middle four times: 1+4(2)+56\frac{1 + 4(2) + 5}{6}.
❌ Not quite. 55 is the trapezoidal rule, 1⋅(12+2+52)1\cdot\left(\tfrac12 + 2 + \tfrac52\right). Its chords lie above this upward-bending curve, so it overestimates.
Show solution

Δx=2−02=1\Delta x = \frac{2 - 0}{2} = 1. One chunk, weights 1,4,11, 4, 1:

Δx3(y0+4y1+y2)=13(1+8+5)=143.\frac{\Delta x}{3}\left(y_0 + 4y_1 + y_2\right) = \frac{1}{3}(1 + 8 + 5) = \frac{14}{3}.

Exact value: ∫02(x2+1) dx=[x33+x]02=83+2=143\int_0^2 (x^2 + 1)\,dx = \left[\tfrac{x^3}{3} + x\right]_0^2 = \tfrac{8}{3} + 2 = \tfrac{14}{3}. They agree because the 1-4-1 formula is exact for every parabola.

Problem 3 · Estimate ln 2

Given: ln⁡2=∫12dxx\ln 2 = \int_1^2 \frac{dx}{x}. Find Simpson's estimate with n=4n = 4, to four decimal places.

✅ Correct! 112⋅1747210=17472520≈0.69325\frac{1}{12}\cdot\frac{1747}{210} = \frac{1747}{2520} \approx 0.69325, against ln⁡2≈0.69315\ln 2 \approx 0.69315.
❌ Not quite. 0.69700.6970 is the trapezoidal rule, 14(12+45+23+47+14)\frac14\left(\tfrac12 + \tfrac45 + \tfrac23 + \tfrac47 + \tfrac14\right): same heights, weights 12,1,1,1,12\tfrac12, 1, 1, 1, \tfrac12.
❌ Check the factor. You used Δx6\frac{\Delta x}{6}. Per chunk it is 2Δx6\frac{2\Delta x}{6}, which simplifies to Δx3\frac{\Delta x}{3}.
❌ Not quite. The middle height y2=23y_2 = \frac23 is shared by both chunks and needs weight 22, not 11.
Show solution

Δx=2−14=14\Delta x = \frac{2 - 1}{4} = \frac14, at x=1,54,32,74,2x = 1, \tfrac54, \tfrac32, \tfrac74, 2 the heights are 1,45,23,47,121, \tfrac45, \tfrac23, \tfrac47, \tfrac12.

Δx3(y0+4y1+2y2+4y3+y4)=112(1+165+43+167+12)=112⋅1747210=17472520≈0.69325.\frac{\Delta x}{3}\left(y_0 + 4y_1 + 2y_2 + 4y_3 + y_4\right) = \frac{1}{12}\left(1 + \frac{16}{5} + \frac{4}{3} + \frac{16}{7} + \frac{1}{2}\right) = \frac{1}{12}\cdot\frac{1747}{210} = \frac{1747}{2520} \approx 0.69325.

The error is about 0.00010.0001; the trapezoidal rule with the same five heights gives 0.697020.69702, an error of about 0.00390.0039.

Problem 4 · Where the Weight Sits

Given: Simpson's rule with n=10n = 10 steps. Find the fraction of the total weight carried by the odd-numbered heights y1,y3,…,y9y_1, y_3, \ldots, y_9.

✅ Correct! 5×4=205 \times 4 = 20 out of a total of 3n=303n = 30. Each chunk gives 44 of its 66 to its middle, so the fraction is 46\frac46 for every even nn.
❌ Not quite. 511\frac{5}{11} counts heights (55 of 1111), not weights. Each odd-numbered height carries weight 44.
❌ Not quite. A total of 2626 treats the four interior junctions as weight 11. Where two chunks meet the weight is 1+1=21 + 1 = 2, so the total is 3030.
❌ Not quite. The weights are not split evenly: the middles get 44, the junctions only 22, the ends 11.
Show solution

The weights for n=10n = 10 are 1,4,2,4,2,4,2,4,2,4,11, 4, 2, 4, 2, 4, 2, 4, 2, 4, 1.

Odd-numbered heights: 55 of them, weight 44 each, total 2020. All weights: 1+1+5(4)+4(2)=30=3n1 + 1 + 5(4) + 4(2) = 30 = 3n.

2030=23.\frac{20}{30} = \frac{2}{3}.

Chunk by chunk it is the same: in each 1,4,11, 4, 1 the middle carries 46=23\frac46 = \frac23 of the weight.

Solved: 0 / 4