numerical analysis
Interpolation Methods
You should know: numerical methods, polynomial functions
Overview
Interpolation is the problem of constructing a function — almost always a polynomial — that passes exactly through a given set of data points, so that values between the known points can be estimated. Given n+1 distinct points (x₀,y₀), …, (xₙ,yₙ), there is exactly one polynomial of degree ≤ n that passes through all of them; the Lagrange form and Newton's divided-difference form are two different, algebraically equivalent recipes for writing down that same unique polynomial. Interpolation underlies reading between tabulated values (steam tables, standard normal tables), computer graphics (smooth curves through control points), and is the conceptual seed of numerical integration and differentiation, both of which approximate a function by an interpolating polynomial and then integrate or differentiate that polynomial exactly.
Intuition
Two points determine a unique line; three points (not all collinear) determine a unique parabola; n+1 points determine a unique degree-≤n polynomial through all of them. The Lagrange formula builds this polynomial directly: basis piece Lᵢ(x) is engineered to vanish at every node except xᵢ, where it equals exactly 1, so scaling it by yᵢ and summing all the pieces guarantees the sum hits every data point exactly. Newton's form instead builds the polynomial up one point at a time — start with the constant that matches the first point, add a linear correction term that fixes the second point without disturbing the first, add a quadratic correction that fixes the third without disturbing the first two, and so on — which makes it cheap to extend when a new data point arrives.
Formal Definition
For distinct nodes x₀, …, xₙ with values y₀, …, yₙ, the Lagrange form writes the unique interpolating polynomial as a weighted sum of basis polynomials Lᵢ, each built to equal 1 at xᵢ and 0 at every other node:
Worked Examples
Build the three Lagrange basis polynomials evaluated at x = 3.
Second basis polynomial at x = 3.
Third basis polynomial at x = 3.
Combine: P(3) = y₀L₀(3) + y₁L₁(3) + y₂L₂(3) = 1(−1/3) + 3(1) + 3(1/3).
Answer: P(3) = 11/3 ≈ 3.667.
Practice Problems
Using the points (1,1), (2,3), (4,3), evaluate the interpolating polynomial at x = 1.5.
For the nodes x₀=1, x₁=2, x₂=4 with values y₀=1, y₁=3, y₂=3, compute the second divided difference f[x₀,x₁,x₂].
A steam table lists specific volume 1.696 m³/kg at 200°C and 1.937 m³/kg at 250°C for a fixed pressure. Using linear interpolation (the degree-1 Lagrange polynomial), estimate the specific volume at 220°C.
Quiz
Summary
- Interpolation constructs the unique polynomial of degree ≤ n passing through n+1 given data points.
- The Lagrange form P(x) = Σ yᵢLᵢ(x) builds this polynomial directly from basis polynomials that are 1 at their own node and 0 elsewhere.
- Newton's divided-difference form builds the same polynomial incrementally, e.g. P(x) = 1 + 2(x−1) − (2/3)(x−1)(x−2) for the points (1,1),(2,3),(4,3), giving P(3) = 11/3 by both methods.
- Interpolation underlies reading between tabulated values and is the conceptual basis for numerical integration and differentiation.
References
- BookBurden, R. L. & Faires, J. D. Numerical Analysis, 10th ed. Cengage, 2015.
Mathematics