Barycentric interpolation and Lebesgue constants
Evaluate the interpolant without solving for monomial coefficients and quantify the sensitivity that no formula can remove.
On this page
The question for today
What you’ll understand
- Derive and evaluate the second barycentric formula.
- Interpret the Lebesgue constant as a data-to-function operator norm.
- Prove the interpolation near-best error bound and separate conditioning from stability.
A polynomial does not need to be stored as monomial coefficients. The barycentric formula evaluates it directly from nodal values and reusable weights, often avoiding a numerically awkward coefficient conversion. This can improve the algorithm substantially, but it cannot remove sensitivity inherent in the interpolation nodes. The Lebesgue constant tells us exactly which part of the difficulty belongs to the data problem.
Reuse node geometry through weights
For distinct real nodes , define weights as reciprocals of the products of all node separations from each node. Let the nodal polynomial be the product of x minus every node. Each Lagrange basis polynomial equals that nodal polynomial times its corresponding weight divided by x minus the node. Since the Lagrange basis sums to one, cancel the common nodal product to obtain the second barycentric formula. Away from nodes, its quotient represents exactly the unique interpolating polynomial in exact arithmetic.
Multiplying all weights by the same nonzero constant leaves the quotient unchanged, allowing convenient scaling. If the evaluation point is exactly a node, return its stored value instead of dividing by zero. Near a node, large numerator and denominator terms are not by themselves evidence of a singular interpolant: their quotient has a removable representation issue, not a polynomial pole. Finite-precision behavior still depends on the nodes, accurate weights, arithmetic, and evaluation region; stable implementations need specific error analysis rather than an unconditional slogan.
Measure the amplification of uncertain data
Write the interpolant in its Lagrange basis and perturb each supplied value by at most delta. The absolute output perturbation at x is bounded by delta times the sum of the absolute basis values there. That sum is the Lebesgue function, and its maximum over the interval is the Lebesgue constant. At a chosen point the bound is attained by assigning perturbation signs to agree with the basis signs, so it measures actual worst-case sensitivity rather than just a loose computational convenience.
For a fixed distinct node set on a compact interval, this constant is finite. Its growth with degree is the concern: good Chebyshev grids have logarithmic growth, while equally spaced polynomial grids can become highly sensitive. No exact evaluation identity can eliminate that amplification. A numerically stable algorithm aims to avoid adding much error beyond what the problem's sensitivity already permits. Relative accuracy near an interpolant's zero is a separate issue because dividing by a tiny true value changes the error metric.
A near-best bound follows from reproduction
Interpolation reproduces every polynomial in its degree space. For any q in that space, write f−I_nf as f−q minus the interpolation of f−q. The triangle inequality gives a factor one plus the interpolation operator norm, hence uniform interpolation error at most . This links two different ingredients: how well the target can be approximated at all, and how the chosen sampling operator compares with that best possibility.
A small Lebesgue constant cannot help if the best degree-n error itself is large, and a tiny best error can be spoiled by enormous sensitivity. Real measurements add another term for noisy data, while floating-point evaluation adds an algorithmic term. Keeping those contributions separate helps decide whether to collect better nodes, increase degree, smooth noisy measurements, or change the implementation. Barycentric evaluation addresses representation and arithmetic; it does not turn noisy interpolation into a statistical denoising method.
Work it through
One evaluation, two sensitivity calculations
Use nodes and values . Evaluate the interpolant at with weights , then find the pointwise amplification of bounded nodal noise there.
At one half, the barycentric numerator is (1/2)/(3/2)+(1/2)/(−1/2)=1/3−1=−2/3. The denominator is 1/3−2−1=−8/3.
Their quotient is one quarter, matching the polynomial x² determined by the data. The large individual divisions have canceled correctly in this exact arithmetic calculation.
The Lagrange basis values at one half are −1/8,3/4,3/8. Their absolute values sum to 5/4, so nodal errors bounded by delta can create a pointwise error as large as 5delta/4 by taking signs minus, plus, plus.
The exact interpolant value is 0.25, and its pointwise nodal-data amplification at that location is 1.25.
The living notebook
Explore the model
Interactive lab · function
Check a barycentric value against its polynomial
Pause and Reset, then set a = 1 and x = 0.5. Predict the polynomial value is 0.25 and compare with the readout, independently reproducing the barycentric calculation above. Reset and set both a = 1 and x = −0.5 to predict the same value but the reflected signs of the outer Lagrange basis values. This instrument evaluates ax² exactly from its model; it does not inject interpolation noise or measure floating-point stability.
- y at chosen x
- 0.608
- Tangent slope · 2ax
- 1.35
- Signed area · ax³/3
- 0.182
This lab uses only y = ax². Playback traces the curve within the fixed integration interval from 0 to x; it does not estimate numerical error or change the chosen point. Parameter changes pause playback and recompute the model at the current elapsed time. Reset restores both parameters and returns time to zero. Playback starts paused. Adjust either parameter, then choose Play or Step.
Look forDifferent representations can encode the same polynomial; the Lebesgue amplification comes from the interpolation problem rather than the plotting formula.
Pause & reason
Check your understanding
Your turn
Try it yourself
For interpolation on [−1,1] using only nodes −1 and 1, derive both Lagrange basis functions and the Lebesgue constant. If each data value is uncertain by at most 0.02, give a uniform absolute perturbation bound and explain why it is attained.
Take a moment to make a prediction or work it out on paper. Open a hint when you need one.
Give me a hint
The two linear basis functions are nonnegative on the interval and sum to one. Try perturbing both data values in the same direction.
Compare with the solution
The basis functions are and . On the interval both are nonnegative, so their absolute sum is identically one and the Lebesgue constant is one. The interpolant perturbation is therefore at most 0.02 everywhere. Increasing both endpoint values by 0.02 shifts the entire interpolating line by exactly 0.02, attaining the bound. This conditioning statement concerns absolute data perturbations and does not assert relative accuracy near a zero of the original line.
Keep the idea
Take it with you
- Barycentric interpolation uses reusable weights and a node-value special case.
- The Lebesgue constant quantifies unavoidable amplification of nodal errors.
- Near-best approximation, noisy data, and arithmetic errors contribute distinct bounds.
Read further
Original sources and deeper explanations to follow at your own pace.
Optional progress, saved in this browser when available. Revisit any lesson at any time.
Lesson not marked complete.