Fiveable

🧮Computational Mathematics Unit 3 Review

QR code for Computational Mathematics practice questions

3.2 Lagrange interpolation

3.2 Lagrange interpolation

Written by the Fiveable Content Team • Last updated August 2025
Written by the Fiveable Content Team • Last updated August 2025
🧮Computational Mathematics
Unit & Topic Study Guides

Lagrange interpolation is a powerful technique for constructing polynomials that pass through given data points. It's a key method in approximating functions and fitting data, making it essential for various scientific and engineering applications.

The formula uses Lagrange basis polynomials to create a unique polynomial of degree ≤ n-1 for n data points. This method's versatility and mathematical foundations make it a cornerstone in computational mathematics and numerical analysis.

Lagrange Interpolation Formula

Polynomial Construction and Properties

  • Lagrange interpolation constructs a unique polynomial of degree ≤ n-1 passing through n given data points
  • Formula expressed as P(x)=i=1nyiLi(x)P(x) = \sum_{i=1}^n y_i \cdot L_i(x), where yi are function values and Li(x) are Lagrange basis polynomials
  • Resulting polynomial P(x) passes through all given data points (xi, yi)
  • Uniqueness based on fundamental theorem of algebra and n-1 degree polynomial determined by n points
  • Applications include function approximation, numerical integration, and data fitting in scientific and engineering fields (computational fluid dynamics, signal processing)

Mathematical Foundations

  • Lagrange basis polynomials Li(x) defined as Li(x)=ji(xxj)(xixj)L_i(x) = \prod_{j \neq i} \frac{(x - x_j)}{(x_i - x_j)}, where xi are given data points
  • Each Li(x) has property Li(xj) = 1 if i = j, and Li(xj) = 0 if i ≠ j, ensuring interpolation
  • Computation involves calculating product of linear terms (x - xj) / (xi - xj) for all j ≠ i
  • Efficient algorithms often use nested multiplication and Horner's method for polynomial evaluation
  • Numerical stability crucial, especially for large data sets or closely spaced points
Polynomial Construction and Properties, Lagrange multiplier - Wikipedia

Lagrange Basis Polynomials

Computation and Construction

  • Fundamental building blocks of Lagrange interpolation formula, each corresponding to specific data point
  • Computation involves product of linear terms for all j ≠ i
  • Construction of interpolating polynomial requires computing all basis polynomials
  • Weighted sum of basis polynomials formed using given function values
  • Example: For data points (1, 2), (2, 3), (3, 5), basis polynomials are: L1(x)=(x2)(x3)(12)(13)L_1(x) = \frac{(x-2)(x-3)}{(1-2)(1-3)} L2(x)=(x1)(x3)(21)(23)L_2(x) = \frac{(x-1)(x-3)}{(2-1)(2-3)} L3(x)=(x1)(x2)(31)(32)L_3(x) = \frac{(x-1)(x-2)}{(3-1)(3-2)}
Polynomial Construction and Properties, numerical methods - lagrange interpolation question here - Mathematics Stack Exchange

Properties and Applications

  • Each Li(x) equals 1 at its corresponding point and 0 at others
  • Sum of all basis polynomials equals 1 for any x value
  • Used in numerical integration techniques (Gaussian quadrature)
  • Basis for constructing other interpolation methods (Hermite interpolation)
  • Can be generalized to multidimensional interpolation (tensor product Lagrange polynomials)

Error Bounds and Convergence of Lagrange Interpolation

Error Analysis

  • Error formula: f(x)P(x)=f(n)(ξ)n!i=1n(xxi)f(x) - P(x) = \frac{f^{(n)}(\xi)}{n!} \cdot \prod_{i=1}^n (x - x_i), where ξ is in interval containing x and all xi
  • Error bound depends on function smoothness and interpolation point distribution
  • Runge's phenomenon shows oscillations and divergence near endpoints for equally spaced points (example: Runge function f(x)=11+25x2f(x) = \frac{1}{1 + 25x^2} on [-1, 1])
  • Lebesgue constant measures stability and affects convergence properties

Convergence Properties and Improvements

  • Guaranteed convergence for continuous functions on closed interval using Chebyshev nodes
  • Chebyshev nodes defined as xk=cos(2k12nπ)x_k = \cos\left(\frac{2k-1}{2n}\pi\right), k = 1, ..., n
  • Adaptive node selection strategies improve convergence and stability (Chebyshev points, Leja points)
  • Barycentric form of Lagrange interpolation enhances numerical stability
  • Error can be reduced by increasing polynomial degree or using piecewise interpolation (splines)
Pep mascot
Upgrade your Fiveable account to print any study guide

Download study guides as beautiful PDFs See example

Print or share PDFs with your students

Always prints our latest, updated content

Mark up and annotate as you study

Click below to go to billing portal → update your plan → choose Yearly → and select "Fiveable Share Plan". Only pay the difference

Plan is open to all students, teachers, parents, etc
Pep mascot
Upgrade your Fiveable account to export vocabulary

Download study guides as beautiful PDFs See example

Print or share PDFs with your students

Always prints our latest, updated content

Mark up and annotate as you study

Plan is open to all students, teachers, parents, etc
report an error
description

screenshots help us find and fix the issue faster (optional)

add screenshot

2,589 studying →