What the relationship means
n+1 pairwise distinct real nodes determine exactly one polynomial of degree at most n. Repeated nodes without additional derivative data are not an ordinary interpolation problem. The calculator is limited to three dimensionless nodes and returns either a value of the degree-at-most-two polynomial or its second divided difference.
A linear system in the monomial basis formally gives the same solution but may be poorly conditioned. Taylor series are a different approximation approach, using derivatives at one point rather than values at distinct points. Gauss–Legendre quadrature connects interpolation ideas with specially chosen integration nodes. A regression instead fits data according to a criterion and need not match every point.
Derive it step by step
From n+1 distinct nodes one can construct basis functions equal to 1 at one node and 0 at all others. Their weighted sum matches all data. Newton constructs the same solution incrementally using divided differences. Uniqueness follows because the difference of two candidate polynomials would have too many distinct roots.
- Check that x0,…,xn are pairwise distinct. The values yi are the data to match exactly.
- Lagrange uses Li(x)=∏j≠i(x−xj)/(xi−xj), giving Li(xj)=1 for i=j and 0 otherwise.
- Newton starts with f[xi]=yi and recursively forms f[xi,…,xi+k]=(f[xi+1,…]−f[xi,…,xi+k−1])/(xi+k−xi).
- With three nodes, p2=y0+f[x0,x1](x−x0)+f[x0,x1,x2](x−x0)(x−x1). Substituting each node directly checks the result.
Visualize the model
The second difference adds curvature
Free with a Quanta account. Your download stays ready after registration.
Two worked examples
Quadratic data in Newton form
- Given
- Author calculation: (−1,2),(0,1),(2,5); find p2(1).
- Find
- Construct divided differences and polynomial.
First differences: (1−2)/(0+1)=−1 and (5−1)/(2−0)=2.
Second difference: (2−(−1))/(2−(−1))=1.
p2(x)=2−(x+1)+(x+1)x=x2+1. At x=1 this gives 2.
Result: p2(1)=2; the second divided difference is 1.
Check: p2(−1)=2, p2(0)=1, p2(2)=5 match all three data exactly.
Three nodes need not produce degree two
- Given
- Author calculation: (0,1),(1,3),(3,7).
- Find
- Identify the actual degree.
First differences are 2 and (7−3)/(3−1)=2.
The second difference is (2−2)/(3−0)=0.
Newton gives p2(x)=1+2x. At x=2 the value is 5.
Result: The unique polynomial has degree 1, still degree at most 2.
Check: All data lie on the same line; an artificial quadratic term would be wrong.
Recall the method later with the formula’s flashcards.
10 flashcards · English materials
Already have an account? Sign in for flashcardsAvailable from Essential. A ready-made formula set, no AI credits required. Article exercises are not all included.
Limits and result checks
Exact data matching does not mean the unknown function is exact between or beyond the nodes. For sufficiently smooth f, error has form f^(n+1)(ξ)·∏(x−xi)/(n+1)!. High degree on equally spaced nodes can cause strong endpoint oscillations; more nodes are not automatically better. Regression or piecewise models may suit noisy data better. The data here are deliberately constructed author examples, not measurements.
- Degree n is forced instead of degree at most n. Zero highest differences permit lower degree.
- Repeated nodes are accepted using replacement denominators. Check the data contract; ordinary interpolation requires distinct nodes.
- Exact matches prove reliable extrapolation. Beyond the nodes, prediction requires additional model control.
Five exercises with solutions
Calculate · Foundation
Interpolate (−1,2),(0,1),(2,5). What is p2(1)?
Show hint
First differences −1 and 2.
Learning goal: Evaluate quadratic interpolation
Show solution and calculation
The second difference is 1. p2=2−(x+1)+x(x+1)=x2+1, hence p2(1)=2.
Rearrange · Application
x0=0,x1=1,x2=2, y0=1,y1=2 and f[x0,x1,x2]=3. Find y2.
Show hint
The left first difference is 1.
Learning goal: Recover a value from a divided difference
Show solution and calculation
(y2−2−1)/2=3, so y2−3=6 and y2=9.
The polynomial is 1+x+3x(x−1).
Interpret · Application
Lagrange and Newton calculations give different expressions. Must they differ between nodes?
Show hint
Use uniqueness for degree at most n.
Learning goal: Distinguish polynomial from representation
Show solution and calculation
No.
Both polynomials have degree at most n and match the same n+1 distinct nodes.
Their difference has n+1 roots, so it is identically zero.
Numerical rounding may still cause small computational differences.
Error analysis · Application
The data (1,2),(1,3),(2,5) should be ordinarily interpolated. Why does this fail?
Show hint
A function has only one value at the same point.
Learning goal: Recognize repeated nodes
Show solution and calculation
At x=1 the data demand both 2 and 3, which is inconsistent; standard formulas also have a zero denominator.
Hermite interpolation is a different problem with explicitly supplied derivatives.
Transfer · Challenge
Three nodes lie in [−1,2]. Do exact data matches alone make p2(100) a reliable prediction?
Show hint
Consider the error factor ∏(x−xi).
Learning goal: Separate interpolation and extrapolation
Show solution and calculation
No.
Outside the node interval the product factor can grow strongly, and the unknown third derivative is uncontrolled.
The polynomial can be evaluated, but a reliable prediction needs additional assumptions or data.
Check your understanding with the formula’s reference test.
7 test questions · English materials
Already have an account? Sign in for the testAvailable from Essential. A ready-made formula set, no AI credits required. Article exercises are not all included.
Sources for this explanation
Quanta · Updated November 8, 2026
- Universität Stuttgart: Lagrangesches Interpolationspolynom
- UC Berkeley: Chapter 3, Interpolation and Polynomial Approximation
Editorial responsibility: Quanta Study editorial team
Review scope
This explanation, 2 worked examples and 5 exercises are available in German and English. Structure, source references and mathematical notation undergo automated checks. Calculations, model assumptions and both language versions receive a separate AI review.
An independent, named human subject review has not yet been documented. Our exercise numbers are worked examples, rather than measurements published by the cited sources.
Editorial responsibility, sources and methodsChange history
- Added a full article with model limits, independently calculated examples, five exercise paths and source references.
Cite this reference page
Quanta. Lagrange and Newton Polynomial Interpolation. Updated November 8, 2026. https://quanta-study.de/en/formula-sheet/polynominterpolation-lagrange-newton
When citing a specific scientific statement, also cite the specialist source linked to that statement.