advanced29 min studyLesson 314 in Mathematics

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

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 x0,…,xnx_0,\ldots,x_n, 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.

wj=(∏k≠j(xj−xk))−1,Inf(x)=∑j=0nwjf(xj)/(x−xj)∑j=0nwj/(x−xj)(x≠xj)w_j=\left(\prod_{k\ne j}(x_j-x_k)\right)^{-1},\qquad I_nf(x)=\frac{\sum_{j=0}^{n}w_j f(x_j)/(x-x_j)}{\sum_{j=0}^{n}w_j/(x-x_j)}\quad(x\ne x_j)
At a node return the nodal value. A common scaling of all weights cancels; arbitrary independent changes to weights do not preserve the same polynomial.↔ Scroll wide equations horizontally.

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.

Λn=max⁡x∈[a,b]∑j=0n∣ℓj(x)∣,∥δInf∥∞≤Λnmax⁡j∣δfj∣\Lambda_n=\max_{x\in[a,b]}\sum_{j=0}^{n}|\ell_j(x)|,\qquad \|\delta I_n f\|_\infty\le\Lambda_n\max_j|\delta f_j|
The Lebesgue constant is the operator norm from maximum nodal-data error to maximum interpolant error for the given nodes and interval.↔ Scroll wide equations horizontally.

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 (1+Λn)En(f)(1+\Lambda_n)E_n(f). 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.

One evaluation, two sensitivity calculations

Use nodes −1,0,1-1,0,1 and values 1,0,11,0,1. Evaluate the interpolant at x=1/2x=1/2 with weights 1/2,−1,1/21/2,-1,1/2, then find the pointwise amplification of bounded nodal noise there.

  1. 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.

  2. 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.

  3. 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 result

The exact interpolant value is 0.25, and its pointwise nodal-data amplification at that location is 1.25.

Explore the model

Interactive lab

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.

Check a barycentric value against its polynomialThis 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. Current readings: y at chosen x: 0.608; Tangent slope · 2ax: 1.35; Signed area · ax³/3: 0.182. All parameters are adjustable with the labeled controls below.−2.4−1.201.22.4−9−4.504.59xy(x, ax²)
y = ax²TangentSigned integral
y at chosen x
0.608
Tangent slope · 2ax
1.35
Signed area · ax³/3
0.182
t = 0 s

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.

Check your understanding

A node set has a very large Lebesgue constant. What can switching to a well-implemented barycentric formula accomplish?

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 ℓ−1(x)=(1−x)/2\ell_{-1}(x)=(1-x)/2 and ℓ1(x)=(1+x)/2\ell_1(x)=(1+x)/2. 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.

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.