Simpson's rule

Simpson's rule

Spec 6.2 · Edexcel A-Level Further Maths: Revision notes

Studying this course? Keep your progress in one place.

Key facts

  • Simpson's rule estimates ∫aby dx\int_a^b y\,dx by fitting parabolas to pairs of strips.
  • The weights are 1,4,2,4,2,…,4,11,4,2,4,2,\ldots,4,1, and the sum is multiplied by h3\frac{h}{3}.
  • It needs an even number of strips, so an odd number of ordinates; strips = ordinates −1-1.
  • The strip width is h=b−anh=\frac{b-a}{n}.
  • More strips usually give a better estimate; it is exact for polynomials up to degree 3.

The formula

Simpson's rule weights the ordinates 1,4,2,4,…,4,11,4,2,4,\ldots,4,1 and multiplies the total by h3\frac{h}{3}.

Simpson's rule fits a parabola through each pair of adjacent strips and finds the area under each parabola.

For nn strips of equal width hh, with ordinates yr=f(a+rh)y_r=f(a+rh), the first and last ordinates have weight 1, the odd-numbered ordinates have weight 4 and the even-numbered interior ordinates have weight 2.

Remember: it starts and finishes with 1, and a 4 comes straight after the first ordinate.

  • Simpson's ruleh3[y0+yn+4(odd)+2(even)]\dfrac{h}{3}[y_0+y_n+4(\text{odd})+2(\text{even})]
01234y₀y₁y₂y₃y₄y₅y₆OrdinateWeight
Weights for 6 strips (7 ordinates).

Which are the weights for 4 strips?

Strips and ordinates

Use an even number of strips; the number of ordinates is one more, and hh divides by the strips.

Simpson's rule needs an even number of strips nn, because the parabolas are fitted to pairs of strips. That gives an odd number of ordinates, n+1n+1.

With 4 strips there are 5 ordinates; with 6 strips, 7. If a question gives 5 ordinates, you have 4 strips, so hh is the interval length divided by 4, not 5.

The xx-values are a, a+h, a+2h,…,ba,\,a+h,\,a+2h,\ldots,b. Write down the table of xx and yy values before substituting.

  • Stripsordinates − 1
  • Strip widthh=b−anh=\dfrac{b-a}{n}

Worked example

A table gives 9 ordinates for xx from 00 to 44. Find hh.

Can Simpson's rule be used with 5 strips?

A worked estimate

Find hh, tabulate the ordinates, group them as ends, odd and even, then substitute once.

Estimate ∫0141+x2 dx\int_0^1\frac{4}{1+x^2}\,dx using 4 strips. The exact value is π\pi, so you can see how close the estimate is.

Collect the ordinates into three groups first: ends, odd positions, even positions. Then substitute once, so you do not lose a term. Keep full calculator values and round only the final answer.

0.10.20.30.40.50.60.70.80.911234xy43.76473.22.562y = 4/(1 + x²)
The curve y = 4/(1 + x²) with the five ordinates used for 4 strips.

Solution

Estimate ∫0141+x2 dx\int_0^1\frac{4}{1+x^2}\,dx using 4 strips.

What should you do with the ordinates in the calculation?

Accuracy and error

It is exact for polynomials of degree 3 or lower, and more strips usually give a smaller percentage error.

Simpson's rule is exact for any polynomial of degree 3 or lower, and generally very accurate for smooth curves.

Using more strips (smaller hh) usually makes the estimate more accurate. Judge accuracy against an exact value from integration, using the percentage error ∣estimate−exact∣exact×100\frac{|\text{estimate}-\text{exact}|}{\text{exact}}\times100. Divide by the exact value, not the estimate, unless told otherwise.

00.20.40.60.84 strips8 stripsNumber of stripsPercentage error (%)
Doubling the strips cuts the error about ninefold.

Worked example

Estimate ∫151x dx\int_1^5\frac1x\,dx with 4 strips and find the percentage error.

What does Simpson's rule give exactly?

Try an exam question

Use Simpson's rule with 4 strips to estimate ∫151x dx\int_1^5\frac1x\,dx, giving your answer to 3 decimal places.

[4 marks]

That's the notes covered.

Carry on to the next subtopic.

Try a question

What is the width hh of each strip?

1 mark, marked against the mark scheme

Revision notes