4.8.10 · D4Numerical Methods

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

1,900 words9 min readBack to topic

Level 1 — Recognition

Exercise 1.1

Given the three points , how many interpolating polynomials of degree pass through all of them, and why?

Recall Solution

WHAT: Count the fitting polynomials. WHY: With points we look for a polynomial of degree . Such a polynomial has free coefficients in . Demanding it hit points gives linear equations — a square system. The nodes are distinct, so the Vandermonde determinant . A square system with nonzero determinant has exactly one solution. Answer: exactly .

Exercise 1.2

Write the Lagrange switch for the nodes (do not plug in -values). What are , , ?

Recall Solution

WHAT: Build the switch that is on only at . WHY numerator: it must be zero at the other nodes and , so include factors and . WHY denominator: to force , divide by the numerator's value at . Values: , , . This is the Kronecker delta property . ✔


Level 2 — Application

Exercise 2.1

Find the Lagrange interpolant through and simplify to .

Recall Solution

WHAT: Assemble . Build all three switches (nodes ): WHY these denominators: each is the numerator evaluated at its own node, guaranteeing . Weight by : Expand each:

Sum the : . Sum the : . Constant: . Check: ✔, ✔, ✔.

Exercise 2.2

Solve the same points with Newton's divided differences. Confirm you get the identical polynomial.

Recall Solution

WHAT: Build the divided-difference table, read the top diagonal. First differences (secant slopes): Second difference (slope of those slopes): Top-diagonal coefficients: . WHY it matches 2.1: by the uniqueness theorem there is only one degree- interpolant — Lagrange and Newton are two recipes for the same curve. ✔


Level 3 — Analysis

Exercise 3.1

Add the new point to the data of 2.2. Using Newton's form, append one term rather than restarting. Give the new cubic.

Recall Solution

WHAT: Extend the table with the fourth node ; only the new bottom entries are computed. New first difference: . New second difference: . New third difference (top of the cubic column): WHY we keep the old terms: the new term carries the factor , which is zero at — so it cannot disturb the three values already fixed. Check the new point

Exercise 3.2

Divided differences are claimed to be symmetric in their arguments. Verify for the pair , and explain what symmetry buys you.

Recall Solution

WHAT: Compute the slope both orderings. Equal. WHY it must be so: the secant slope between two points is a geometric quantity — the line through them — independent of which point you name first. The sign flips in both numerator and denominator and cancels. What it buys: you may reorder nodes freely to make arithmetic clean, and the highest-order divided difference (the leading coefficient of ) is the same no matter the order.


Level 4 — Synthesis

Exercise 4.1

Interpolate at the three nodes . Then bound the error at using the interpolation error formula, and compare to the true error.

Recall Solution

WHAT (build ): values , , . By symmetry is even. Newton table with : Combine: constant ; : ; : . So At : . True . True error .

WHAT (error formula): with , At the node product is . WHY we need a bound on : we don't know , so we bound over . For , Its magnitude on peaks near at about (evaluate to confirm). Take the safe bound . Reading: the true error comfortably sits under the guaranteed bound — the bound is honest but loose (it uses the worst-case ). See the figure.

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

Exercise 4.2

Using the same three nodes, explain in one sentence why pushing to many equispaced nodes on would make things worse, and name the two standard fixes.

Recall Solution

The error factor grows huge near the interval ends while also explodes, so high-degree equispaced interpolation of oscillates wildly between the end nodes — the Runge phenomenon. Fixes: cluster nodes toward the ends with Chebyshev nodes, or abandon one high-degree polynomial for piecewise low-degree Cubic splines.


Level 5 — Mastery

Exercise 5.1

Prove the "coalescing nodes" fact stated in the parent's Connections: as two nodes merge, the first divided difference becomes a derivative, and interpret what this means for the interpolant.

Recall Solution

WHAT: Take the limit of the secant-slope definition. WHY this is exactly a derivative: the right side is the difference quotient — the very object whose limit defines . As , Interpretation: when nodes collide the interpolant is forced to match not just the value but the slope at (this is Hermite interpolation). Pushing further, , and Newton's form degenerates into the Taylor series — the two ideas are one theory seen at different node spacings.

Exercise 5.2

Show that for the data of Exercise 2.2, the leading coefficient of equals the top-order divided difference , and argue this holds in general.

Recall Solution

From 2.2, , and indeed the coefficient of is . They match. WHY in general: in Newton's form only the last term () contains , and its product has leading term with coefficient . So the coefficient of in is exactly . Combined with symmetry (Ex. 3.2), this makes the top divided difference an order-independent fingerprint of the data.

Exercise 5.3

Two students interpolate . One insists the answer is degree ; the other says degree . Who is right, and what does the divided-difference table reveal?

Recall Solution

WHAT: Build the table. All . Newton: . Answer: the constant student is right — , degree . The "" in the theorem again does its job: three points on a horizontal line give the constant polynomial. The vanishing top divided difference ( leading coefficient) is the diagnostic that the true degree is below . ✔


Recall Self-test checklist

Uniqueness comes from ::: a square Vandermonde system with nonzero determinant for distinct nodes. The top divided difference equals ::: the leading coefficient of (order-independent). Adding a data point is cheap in Newton's form because ::: the new term has factor vanishing at all old nodes, so you just append it. The error formula is only usable as ::: a bound, replacing by its max magnitude (since is unknown).


Connections

  • Vandermonde matrix — the uniqueness engine behind Ex. 1.1.
  • Runge phenomenon — the danger in Ex. 4.2.
  • Chebyshev nodes — fix for the error product.
  • Cubic splines — piecewise low-degree alternative.
  • Numerical differentiation — Ex. 5.1's coalescing limit made practical.
  • Newton-Cotes quadrature — integrate the interpolant.
  • Taylor series — limit of Newton's form as nodes coalesce.