Polynomial Interpolation
Learn how to construct polynomials that pass through given data points. Master Lagrange and Newton interpolation methods, understand error bounds, and explore Hermite interpolation for matching derivatives.
- Understand the polynomial interpolation problem and uniqueness theorem
- Construct Lagrange interpolating polynomials using basis functions
- Apply Newton's divided difference method for efficient computation
- Analyze interpolation error using the error formula
- Implement Hermite interpolation for derivative matching
- Compare different interpolation methods and their applications
1. The Interpolation Problem
Given a set of data points, we want to find a polynomial that passes through all of them. This is fundamental to many numerical methods including integration and differentiation.
Definition 2.1: Polynomial Interpolation Problem
Given distinct points (called interpolation nodes) and corresponding function values for , find a polynomial of degree at most such that:
Theorem 2.1: Existence and Uniqueness
The interpolation polynomial satisfying for exists and is unique.
Remark:
The uniqueness means that while there are different ways to construct the interpolating polynomial (Lagrange form, Newton form, etc.), they all give the same polynomial.
2. Lagrange Interpolation
Definition 2.2: Lagrange Basis Polynomials
The Lagrange basis polynomials for are defined as:
Each is a polynomial of degree satisfying (Kronecker delta).
Definition 2.3: Lagrange Interpolating Polynomial
The Lagrange interpolating polynomial is:
Example: Lagrange Interpolation with 3 Points
Problem: Find the interpolating polynomial for .
Solution:
First, compute the basis polynomials:
Then:
Theorem 2.2: Interpolation Error
Let be distinct points in , and let . If is the interpolating polynomial, then for each , there exists such that:
where .
Note:
The error depends on both the -th derivative of and the product. Choosing good interpolation nodes can minimize .
3. Newton's Divided Differences
Newton's method provides an alternative form that makes it easy to add new data points without recomputing the entire polynomial.
Definition 2.4: Divided Differences
The divided differences are defined recursively:
Zeroth order:
First order:
k-th order:
Remark:
Divided differences are symmetric: the value of does not depend on the order of the nodes.
Definition 2.5: Newton's Interpolating Polynomial
The Newton form of the interpolating polynomial is:
Example: Divided Difference Table
For data points :
| 1st diff | 2nd diff | 3rd diff | ||
|---|---|---|---|---|
| 0 | 1 | |||
| 1 | 3 | 2 | ||
| 2 | 7 | 4 | 1 | |
| 3 | 13 | 6 | 1 | 0 |
Newton polynomial:
Theorem 2.3: Divided Difference and Derivatives
If , then there exists such that:
4. Hermite Interpolation
Hermite interpolation extends polynomial interpolation by also matching derivative values at the interpolation nodes, resulting in higher accuracy.
Definition 2.6: Hermite Interpolation Problem
Given nodes with function values and derivative values , find a polynomial of degree at most such that:
Definition 2.7: Two-Point Cubic Hermite Interpolation
For two points , the cubic Hermite polynomial uses basis functions:
The Hermite polynomial is:
Theorem 2.4: Hermite Interpolation Error
If , then for the Hermite interpolating polynomial, there exists such that:
where .
Note:
The error for Hermite interpolation involves rather than, giving faster convergence as the nodes become denser.
5. Comparison and Applications
Lagrange Form
- Conceptually simple and elegant
- All basis polynomials must be recomputed when adding points
- Good for theoretical analysis
Newton Form
- Efficient for adding new data points
- Can be evaluated efficiently using Horner's method
- Divided difference table provides insight into data behavior
Hermite Interpolation
- Higher accuracy when derivative information is available
- Smoother interpolant (matching slopes)
- Foundation for spline interpolation
Remark:
Warning: Runge's Phenomenon
High-degree polynomial interpolation with equally-spaced nodes can lead to large oscillations near the boundaries. This is called Runge's phenomenon. Solutions include using Chebyshev nodes or piecewise interpolation (splines).
Practice Quiz
Frequently Asked Questions
What's the difference between Lagrange and Newton interpolation?
Both produce the same polynomial, but in different forms. Lagrange formexpresses the polynomial as a weighted sum of basis polynomials. Newton formuses divided differences and nested products.
Newton's form is more efficient when adding new data points, as only one new term needs to be computed.
How do I choose interpolation nodes to minimize error?
The error depends on . To minimize its maximum value on , use Chebyshev nodes:
When should I use Hermite interpolation instead of Lagrange?
Use Hermite interpolation when you have reliable derivative information at the data points. This often occurs in physics simulations where both position and velocity are known. Hermite interpolation provides smoother curves and higher accuracy with fewer points.
What is Runge's phenomenon and how can I avoid it?
Runge's phenomenon refers to oscillations that appear near the boundaries when using high-degree polynomial interpolation with equally-spaced nodes.
To avoid it:
- Use Chebyshev nodes instead of equally-spaced nodes
- Use piecewise polynomial interpolation (splines)
- Keep the polynomial degree low
How do divided differences relate to derivatives?
For a function , the n-th divided difference equals for some in the interval. This connection is useful for error analysis and shows that divided differences approximate scaled derivatives.