Interpolation: Difference Tables, Newton's Forward Formula and Lagrange | OCR B (MEI) A Level Further Maths notes

Free preview: Interpolation: Difference Tables, Newton's Forward Formula and Lagrange

Reading Between the Lines: Linear Interpolation and Difference Tables

Year 1 or Year 2: check your own specification for when your board teaches this. This is part of OCR B (MEI)'s Numerical Methods option (paper Y434).

Often we only know a function at a few points: a table of measurements, or values from a slow calculation. Before calculators, people looked up logs and sines in printed tables and had to estimate values in between. Interpolation means estimating values between those points by fitting a polynomial through them.

Linear interpolation

  • Join the two neighbouring points with a straight line and read off the value.
  • Between (x0,f0) and (x1,f1): f(x)≈f0+x−x0x1−x0(f1−f0).

💡 In plain words

Go the same fraction of the way up as you went across. Halfway across means halfway up.

👀 Watch me do it: estimate ln 2.5 from ln 2 and ln 3

What I writeWhy I do it
ln2=0.6931, ln3=1.0986The two neighbouring values.
2.5−23−2=0.52.5 is halfway across.
0.6931+0.5(0.4055)=0.8959Go halfway up the rise 0.4055.
True value 0.9163.The curve bends, so a straight line isn't enough. We need a curve.

✏️ YOUR TURN 1

Try this first:

Given sin30°=0.5 and sin45°=0.7071, use linear interpolation to estimate sin40°. Is it an over- or underestimate?

Answer:

  • Fraction across: 40−3045−30=23.
  • 0.5+23(0.2071)=0.6381.
  • True sin40°=0.6428: an underestimate, because sin bends downwards here so the chord lies below the curve.

The difference table

  • For equally spaced x values (step h), write the values in a column, then the differences between neighbours, then the differences of those, and so on.
  • Δfr=fr+1−fr (first differences), Δ2fr=Δfr+1−Δfr (second differences), and so on.
xf=lnx (4 d.p.)ΔfΔ2fΔ3f
100.6931−0.28760.1698
20.69310.4055−0.1178
31.09860.2877
41.3863

ℹ️ Why differences are useful

  • For a polynomial of degree n, the n-th differences are constant and higher ones are zero (just like the n-th derivative).
  • So if the k-th differences are (nearly) constant, a degree k polynomial fits the data well.
  • A single odd value in a difference table usually signals a copying or rounding mistake.

✏️ YOUR TURN 2

Try this first:

Make a difference table for f(x)=x3 at x = 0, 1, 2, 3, 4. Which differences are constant?

Answer:

  • f: 0, 1, 8, 27, 64.
  • Δf: 1, 7, 19, 37.
  • Δ2f: 6, 12, 18.
  • Δ3f: 6, 6. Constant third differences, as expected for a cubic (and 6=3!×1).

Newton's Forward Difference Formula

Write x=x0+sh, so s counts steps from x0 (s need not be a whole number). The polynomial through the equally spaced points is

f(x0+sh)≈f0+sΔf0+s(s−1)2!Δ2f0+s(s−1)(s−2)3!Δ3f0+⋯

  • Use the top diagonal of the difference table: f0,Δf0,Δ2f0,….
  • Stopping after the Δf0 term is linear interpolation; adding the Δ2f0 term gives the quadratic, and so on.
  • Check: at s = 1 the formula gives f0+Δf0=f1, as it must. (The bracket s − 1 kills every later term.)

💡 In plain words

It looks like the binomial expansion (1+Δ)s, and that is no accident: each step forward adds one difference.

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

What's inside for this topic

1 teacher note, 75 practice questions, 45 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

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