Simpson's Rule: Fitting Parabolas to Estimate an Integral | OCR B (MEI) A Level Further Maths notes

Free preview: Simpson's Rule: Fitting Parabolas to Estimate an Integral

Simpson's Rule: Joining the Dots with Parabolas

Year 1 or Year 2: check your own specification for when your board teaches this. It is in AQA's compulsory core (section J), Edexcel's Further Pure 1 option and OCR B (MEI)'s Numerical Methods option.

Let's start with the idea. The trapezium rule joins ordinates with straight lines. A curve is not straight, so why not join them with curves? The simplest curve through three points is a parabola (a quadratic).

  • Take strips in pairs: x-values x0,x1,x2 with heights y0,y1,y2, each strip of width h.
  • Fit the parabola through the three points and integrate it exactly. That area is the estimate.

The curve y = square root of 1 plus x cubed from 0 to 2, with a dashed parabola through the points (0, 1), (1, root 2) and (2, 3) almost on top of it, and the area under the parabola shaded

Following the diagram

  • The blue curve is y=1+x3 from 0 to 2; here h = 1, with points (0, 1), (1, 2) and (2, 3).
  • The pink dashed parabola passes through all three points. Between them it is almost indistinguishable from the curve.
  • The shaded area under the parabola is 13(1+42+3)=3.219, against the exact 3.241. The trapezium rule with the same three ordinates gives 3.414.

Where the 1, 4, 1 comes from

👀 Watch me do it: derive the area under the parabola through three equally spaced points

What I writeWhy I do it
Move the middle point to x = 0, so the points are at −h, 0, h. Let y=Ax2+Bx+C.Shifting sideways doesn't change an area, and it makes the algebra symmetric.
At x = 0: y1=C.Substitute.
y0+y2=(Ah2−Bh+C)+(Ah2+Bh+C)=2Ah2+2CAdd the equations at ±h: B cancels.
Ah2=y0+y2−2y12Rearrange, using C = y1.
∫−hh(Ax2+Bx+C)dx=2Ah33+2ChIntegrate. The Bx term is odd, so it gives 0.
2h3·y0+y2−2y12+2hy1=h3(y0+y2−2y1+6y1)Substitute and take out h3.

∫x0x2f(x)dx≈h3(y0+4y1+y2)

💡 In plain words

The middle height counts 4 times as much as each end, then multiply by a third of the strip width. The middle matters most because it is furthest from both ends.

✏️ YOUR TURN 1

Try this first:

Use Simpson's rule with 2 strips to estimate (a) ∫02x2dx; (b) ∫0πsinxdx. Compare with the exact values.

Answer:

  • (a) h = 1: 13(0+4(1)+4)=83. Exact! A parabola fits a parabola perfectly.
  • (b) h=π2: π6(0+4(1)+0)=2π3=2.0944. Exact value 2, error 0.094.

✏️ YOUR TURN 2

Try this first:

Use Simpson's rule with 2 strips to estimate ∫13lnxdx, working to 6 d.p. Compare with the exact value 3ln3−2=1.295837.

Answer:

  • h = 1, so the three points are at x = 1, 2, 3, with heights ln1=0, ln2=0.693147, ln3=1.098612.
  • 13(0+4(0.693147)+1.098612)=3.8712013=1.290400.
  • Error −0.0054. The trapezium rule with the same three ordinates gives 1.242453, ten times further out.

The Full Rule

  • With n strips (n must be even), apply the 1, 4, 1 pattern to each pair and add.
  • Where two pairs meet, their end ordinates overlap, giving a 2.

Sn=h3[y0+4(y1+y3+⋯+yn−1)+2(y2+y4+⋯+yn−2)+yn]

💡 In plain words

  • Ends once, odd-numbered ordinates times 4, even-numbered inside ordinates times 2, all times h3.
  • The pattern of weights is 1, 4, 2, 4, 2, ..., 4, 1.

Unlock the full note: start 7 days free.

Log in or subscribe to read the rest of this note. Members also get the AI tutor, practice quizzes, mock exams and flashcards for this topic.

Log in · Subscribe · Start free trial

All notes in Numerical Integration

  1. The Mid-Ordinate and Trapezium Rules, and Which Way They Err
  2. Simpson's Rule: Fitting Parabolas to Estimate an Integral
  3. Accuracy of Integration Rules: Error Ratios and Extrapolation

What's inside for this topic

3 teacher notes, 80 practice questions, 48 flashcards, 2 quizzes.

Get the full notes, every practice question, flashcards, quizzes and mock papers.

Start your free 7-day trial

Questions? Chat with us on WhatsApp · Try one live lesson

Previous note: The Mid-Ordinate and Trapezium Rules, and Which Way They Err Next note: Accuracy of Integration Rules: Error Ratios and Extrapolation

Simpson's Rule: Fitting Parabolas to Estimate an Integral on other exam boards

All OCR B (MEI) A Level Further Maths topics · A Level Further Maths