4.8.10 · D1Numerical Methods

Foundations — Polynomial interpolation — Lagrange form, Newton's divided differences

2,734 words12 min readBack to topic

This page assumes you know nothing beyond " times is " and "a graph has a horizontal axis and a vertical axis". Every letter, subscript, product sign and squiggle used by the parent note is built here, from the floor up, in the order you need them.


0. The picture we are always in

Before any symbol: we have a piece of graph paper. A few dots are marked. We want a rule — a function — whose graph is a single connected curve touching every dot.

Figure — Polynomial interpolation — Lagrange form, Newton's divided differences

Look at the amber dots. There are infinitely many wiggly curves through them, but only one polynomial of a chosen low degree. That uniqueness is the whole reason the topic works — hold that thought.


1. A point and its coordinates:

The picture: pick a dot. Walk right along the horizontal axis until you're under it — that distance is . Then walk up — that distance is .

Why the topic needs it: our data is a list of dots, so every dot needs a name.

The subscript

The picture: imagine numbered tags hanging off each dot: dot 0, dot 1, dot 2. We start counting at 0 (a computing habit) so that " dots" are numbered .


2. The function behind the dots

The picture: think of as the true hidden curve; our dots are just a few places where we peeked at its height. Interpolation tries to guess the rest of from those peeks.

Why the topic needs it: the error formula and the divided differences all speak about this hidden — so must exist as a named object before those symbols appear.


3. What "polynomial" and "degree" mean

The picture below shows how degree controls how many bends a curve can make.

Figure — Polynomial interpolation — Lagrange form, Newton's divided differences

Why the topic needs it: the whole subject is choosing these dials so the curve hits the dots.


4. The Greek letters and the "distinct" condition

The picture: two dots stacked in the same vertical line would demand the curve be at two heights above one — impossible for a function. That's why nodes must be spread out horizontally.

Figure — Polynomial interpolation — Lagrange form, Newton's divided differences

Why the topic needs it: distinctness is exactly what makes the solution unique (next section) — the denominators in Lagrange are never zero, and the Vandermonde determinant is nonzero.


5. Sum and product — the two big loops

The parent note leans hard on two symbols. They are just shorthand for "do this repeatedly".

The condition just means "multiply over all except ". The picture: a row of factors with one gap punched out where .

Why the topic needs it: Lagrange's basis is a product; Newton's polynomial is a sum of products. These two loops are the entire notation of the parent formulas.


6. The Lagrange basis "switch"

Now that we have the product sign, we can meet the symbol that the parent page (and the map below) uses.

Why this formula does the job, in two moves:

  • The numerator is zero whenever lands on one of the other nodes — that gives the "0 elsewhere".
  • Dividing by (the numerator's value at ) scales it to exactly 1 at .

Why the topic needs it: stacking these switches, each scaled by its height, forces a curve through every dot — that is exactly the Lagrange interpolant on the parent page.


7. The Vandermonde matrix and its determinant (why "unique")

For the Vandermonde grid this number works out to a product over all ordered pairs of nodes:

Why the topic needs it: this non-zero product is the exact statement of "distinct nodes ⇒ one and only one interpolating polynomial".


8. Slope, secant slope, and divided differences

Newton's divided differences are built on the idea of slope, applied to the hidden function from §2.

Figure — Polynomial interpolation — Lagrange form, Newton's divided differences

Why the topic needs it: these numbers are precisely Newton's coefficients on the parent page.


9. The error toolkit: factorial and derivatives

The error formula uses two more symbols. You only need to recognise them here; Taylor series develops them fully.

Why the topic needs it: together scales the product into the actual gap between the true function and — the Runge phenomenon is this product growing near interval ends.


10. How it all connects

Points and coordinates (x_i, y_i)

Subscript i = which dot

Hidden function f with y_i = f(x_i)

Polynomial and degree

n+1 coefficients = n+1 dials

Distinct nodes x_i not equal

Vandermonde determinant nonzero

Unique interpolating polynomial

Sum sign and product sign

Lagrange switches L_i

Newton sum of products

Secant slope

Divided differences f brackets

Factorial and derivatives f^(k)

Interpolation error with xi

Read top-to-bottom: naming dots, the hidden function , and powers gives dials; distinct nodes make the dial-setting unique via a non-zero determinant; the two loop-symbols dress that unique curve as Lagrange switches or Newton brackets ; slopes feed Newton; factorial and derivatives measure the leftover error at the mystery point .


Equipment checklist

Cover the right side and test yourself.

What does the subscript in tell you?
It labels which dot (dot number 3); it is not a power.
How are and related?
They are the same number — is the height of dot , and is the hidden function that produced it, so .
What is the degree of ?
2 — the highest power that appears.
How many coefficients (free dials) does a degree- polynomial have?
, namely .
What does "distinct nodes" mean and why is it required?
No two are equal; otherwise a function would need two heights at one position, and the Vandermonde determinant would vanish.
Give the formula and the "switch" property of .
; it is 1 at and 0 at every other node.
Expand .
.
Expand for that range.
— skip the factor.
What does the condition under ensure?
Each pair of nodes is used exactly once and no node is paired with itself.
What is a secant slope in words?
Rise over run: change in height divided by change in horizontal position between two dots.
Write the second divided difference as a formula.
.
What does the Kronecker delta equal?
1 if , otherwise 0.
Compute .
.
What does mean, and how is it different from ?
is the second derivative (differentiate twice); would mean multiplied by itself.
What is in the error formula?
An unknown point somewhere between the nodes at which the -th derivative is evaluated; we only need that it exists.
Why does a unique interpolating polynomial exist for distinct nodes?
dials matched to demands via a Vandermonde system whose determinant is non-zero gives exactly one solution.

Connections

  • Parent topic
  • Vandermonde matrix — the grid that guarantees uniqueness.
  • Runge phenomenon — what the error product does near the ends.
  • Chebyshev nodes — smarter node placement.
  • Cubic splines — piecewise low-degree alternative.
  • Numerical differentiation — where derivatives come from.
  • Newton-Cotes quadrature — integrating the interpolant.
  • Taylor series — factorials and derivatives, developed fully.