Lagrange Interpolating Polynomial — Definition, Formula & Examples
The Lagrange Interpolating Polynomial is the unique polynomial of lowest degree that passes exactly through a given set of data points. It expresses the interpolating polynomial as a weighted sum of basis polynomials, each constructed so that it equals 1 at one data point and 0 at all others.
Given distinct points , the Lagrange interpolating polynomial is the polynomial of degree at most defined by , where each Lagrange basis polynomial is . By the uniqueness theorem for polynomial interpolation, is the only polynomial of degree satisfying for all .
Key Formula
Where:
- = Total number of data points
- = The known data points, where all $x_i$ are distinct
- = The interpolating polynomial of degree at most $n$
- = The $i$-th Lagrange basis polynomial, equal to the product term
How It Works
You start with a set of known data points and want a polynomial that hits every one of them. For each data point , you build a basis polynomial that equals 1 at and 0 at every other . Then you multiply each by the corresponding and add them all together. The result is a smooth polynomial curve that interpolates the data exactly. Once you have , you can estimate values at points between the known data — this is the core idea of polynomial interpolation.
Worked Example
Problem: Find the Lagrange interpolating polynomial through the points (1, 2), (2, 3), and (4, 5), then estimate the value at x = 3.
Step 1: Build L₀(x): For the point (1, 2), construct the basis polynomial using x₁ = 2 and x₂ = 4.
Step 2: Build L₁(x): For the point (2, 3), use x₀ = 1 and x₂ = 4.
Step 3: Build L₂(x): For the point (4, 5), use x₀ = 1 and x₁ = 2.
Step 4: Combine: Multiply each basis polynomial by its y-value and sum.
Step 5: Evaluate at x = 3: Substitute x = 3 into each term.
Answer: The interpolating polynomial evaluates to . Expanding fully, , which simplifies to confirm the result.
Visualization
Why It Matters
Lagrange interpolation appears in numerical analysis courses and is foundational for understanding more advanced techniques like spline interpolation and numerical integration (e.g., deriving Newton-Cotes quadrature rules). Engineers and scientists use it to estimate values from experimental measurements where only discrete data is available. It also underpins theoretical results in approximation theory and is used in cryptographic protocols such as Shamir's Secret Sharing.
Common Mistakes
Mistake: Mixing up the numerator and denominator indices in the basis polynomial, such as writing in the numerator instead of .
Correction: The numerator always contains the variable : each factor is . The denominator uses the fixed data point: each factor is . Double-check that in both products.
Mistake: Forgetting to exclude the term from the product, which would place a zero in both the numerator and denominator.
Correction: The product runs over all from 0 to except . Including would give a factor of , which is undefined. Always skip the index that matches the current basis polynomial.
