Exercises — Error in polynomial interpolation
Prerequisites you may want open: Rolle's Theorem, Taylor's Theorem with Remainder, Lagrange Interpolation, Chebyshev Nodes, Runge Phenomenon.
Level 1 — Recognition
Exercise 1.1
For interpolation through nodes, what is the degree , and which derivative of appears in the error formula?
Recall Solution
WHAT we count: nodes means , so . The polynomial has degree . WHICH derivative: the formula uses , divided by . Answer: , and appears.
Exercise 1.2
State the smoothness condition required and explain in one sentence why we need it.
Recall Solution
Condition: — has continuous derivatives on the interval. Why: the derivation differentiates the helper function exactly times (Step 5 of the parent proof), so must exist and be continuous for Rolle to keep producing zeros.
Exercise 1.3
The node polynomial for nodes is . Evaluate .
Recall Solution
At : Answer: , and .
Level 2 — Application
Exercise 2.1
is interpolated linearly on (radians). Give a numeric upper bound on the error at .
Recall Solution
WHAT: linear means , so we use and . Bound the derivative: , so on (largest at , ). Thus . Evaluate at the point: , so . Combine: Answer: .
Exercise 2.2
For the same setup, use the midpoint worst-case bound (Example 1 of the parent). Here is the node spacing defined above — the width of the interval , so . Compare to 2.1.
Recall Solution
WHAT is here: the two nodes are and , so the node spacing is , and . WHY they match: the midpoint of is , and the midpoint is exactly where is largest. So Exercise 2.1's pointwise bound at the midpoint equals the global worst-case bound. Answer: — identical, because is the worst point.
Exercise 2.3
Interpolate quadratically on with equally spaced nodes . The node spacing is (each gap is wide). Bound using the parent's cubic result (sketched below) and .

Recall Solution
WHERE the comes from (see figure): the node polynomial for three equally spaced nodes is a cubic . It crosses zero at the three nodes and has two interior humps — one positive, one negative — of equal size (the red curve). To find the hump height we do calculus: set , solve for the two turning points, and plug back. Doing this (parent, Example 3) gives the peak magnitude . The figure shows the two symmetric red humps whose height is exactly this value. WHAT: , so we need . For , , and . Node-polynomial max: , so Combine: Answer: .
Level 3 — Analysis
Exercise 3.1
For linear interpolation, prove that is maximised at the midpoint, and find that maximum in terms of . Refer to the figure.

Recall Solution
WHAT the object is (red curve in the figure): on , is a downward-opening parabola (negative between its two roots , which are the two black dots on the axis). It is largest in magnitude where the red parabola dips deepest. WHY calculus here: to find where a smooth curve turns, set its derivative to zero. That is precisely the question "where is the extremum?" WHAT IT LOOKS LIKE: in the figure the dashed vertical line marks , and it meets the red curve exactly at its lowest point — the labelled arrow "" points there. Evaluate: let . Then and , so With these nodes , so the deepest dip is , exactly the depth of the red vertex in the picture. Answer: maximum at the midpoint, value . Combined with this gives the famous factor.
Exercise 3.2
Explain, using the error formula, why equally spaced nodes give a larger near the ends of the interval than near the middle. Refer to the figure.

Recall Solution
WHAT the figure shows: the red curve is for the seven equally spaced black nodes marked on the axis of . Between consecutive nodes it rises into a "hump" and drops back to zero at each node. WHAT measures: is the product of distances from to every node. WHY ends are worse: a point near the middle of the node cluster has nodes on both sides, so several are small — the product stays small, which is why the central humps of the red curve are tiny. A point near an endpoint has all the far nodes on one side; almost every factor is large, so the product blows up — this is why the two outermost red humps tower far above the central ones (the arrow "end humps blow up" points at the tallest one). Consequence: with equally spaced nodes and high , these end-humps grow explosively — this is the mechanism behind the Runge Phenomenon. Chebyshev Nodes fix it by placing nodes denser near the ends, shrinking those end-humps.
Exercise 3.3
The error formula says at every node. Show this directly from the formula, and explain why it is consistent even though is unknown.
Recall Solution
WHAT: at a node , the factor inside becomes , so . THEREFORE regardless of what is. WHY consistent: the whole point of is , so by construction. The formula reproduces this because was built to vanish at the nodes — the unknown never matters at a node since it is multiplied by zero.
Level 4 — Synthesis
Exercise 4.1
Derive from scratch the error for linear interpolation () using Rolle's Theorem, mirroring the parent proof but written for two nodes. Then confirm it matches .
Recall Solution
The plan first (WHY the helper function). We want to prove the error at some chosen point has the exact form . Rolle's Theorem is our only tool: it says between two zeros of a function lies a zero of its derivative. To use it we need a single function that is already zero at many points. Neither (zero only at the nodes) nor (zero only at the nodes) alone is enough. The trick: manufacture one extra zero at by subtracting a multiple of tuned so the combination vanishes there too. That is the entire reason for the shape of below — it is (which already dies at the nodes) minus (which also dies at the nodes but whose free constant we bend to kill at as well).
Step 1 — assume the shape / define . Fix a non-node . Choose the constant so that This is just naming the ratio; it commits us to nothing yet. If we can show , we are done. Step 2 — helper function. (Built exactly as motivated above.) Step 3 — count zeros. (nodes) and (the way we picked ): three distinct zeros. Step 4 — Rolle. Three zeros of two zeros of one zero of ; call it . Step 5 — differentiate twice. is degree ; and . Hence Step 6 — evaluate at . Step 7 — substitute. Matches the parent's Example 1 with .
Exercise 4.2
Combine the linear-error result with to bound the error of interpolating on piecewise linearly with two equal subintervals (nodes , so the node spacing is per piece). Compare with the single-piece bound from the parent (which was ).
Recall Solution
WHAT changes: each piece has node spacing , and on each piece we use the linear bound . Derivative: , on (worst at ). Using this common bound : Compare: single piece with gave . Halving divided the bound by — the hallmark behaviour. Piecewise linear (small ) beats one big high-degree fit. Answer: , four times smaller than the whole-interval bound.
Level 5 — Mastery
Exercise 5.1
On the interval with equally spaced nodes , find the exact location and value of for . Then state the resulting quadratic error bound in terms of .
Recall Solution
WHAT: . To locate the interior extrema, set : Evaluate: at , By the odd symmetry , the other extremum gives . Endpoints give . So Consistency check with the parent's general formula : here the node spacing is , giving — matches. ✓ Error bound: , so Answer: max at , value ; bound .
Exercise 5.2
Synthesis with Runge. For on , it is known that grows roughly like for equally spaced interpolation. Using the crude estimate , argue why the bound does not shrink as , and name the cure.
Recall Solution
WHAT the two factors do: Derivative knob: with , the factorial cancels: Node knob: for equally spaced nodes on , decays only like a small power/exponential that cannot beat . So the product grows — the error blows up near the endpoints. This is exactly the Runge Phenomenon. WHY the factorial doesn't save us: the parent's mistake callout warned that in the denominator looks like it always wins, but here the numerator carries its own times . Cure: switch the node knob — use Chebyshev Nodes (denser at the ends), which shrink to scale, or abandon high degree entirely and use piecewise / spline interpolation. Both keep the product bounded. Answer: the cancels against the function's own growth, leaving ; cure = Chebyshev nodes or piecewise interpolation.
Recall Final self-check
- Nodes ; error uses over times .
- You control only (node placement); you cannot fix a wiggly .
- Linear: worst at midpoint, , bound .
- Quadratic on width- spacing: .
- Raising can worsen error (Runge); cure = Chebyshev nodes or piecewise fits.