# All Science Fair Projects

## Science Fair Project Encyclopedia for Schools!

 Search    Browse    Forum  Coach    Links    Editor    Help    Tell-a-Friend    Encyclopedia    Dictionary

# Science Fair Project Encyclopedia

For information on any area of science that interests you,
enter a keyword (eg. scientific method, molecule, cloud, carbohydrate etc.).
Or else, you can start by choosing any of the categories below.

# Lagrange polynomial

(Redirected from Lagrange form)

In numerical analysis, a Lagrange polynomial, named after Joseph Louis Lagrange, is the interpolation polynomial for a given set of data points in the Lagrange form. It was first discovered by Edward Waring in 1779 and later rediscovered by Leonhard Euler in 1783.

As there is only one interpolation polynomial for a given set of data points it is a bit misleading to call the polynomial Lagrange interpolation polynomial. The more precise name is interpolation polynomial in the Lagrange form.

 Contents

## Definition

Given a set of k+1 data points

$(x_0, y_0),\ldots,(x_k, y_k)$

where no two xj are the same, the interpolation polynomial in the Lagrange form is a linear combination of Lagrange basis polynomials

$L(x) := \sum_{j=0}^{k} y_j l_j(x)$

with the Lagrange basis polynomials defined as

$l_j(x) := \prod_{i=0, j\neq i}^{k} \frac{x-x_i}{x_j-x_i} = \frac{x-x_0}{x_j-x_0} \cdots \frac{x-x_{j-1}}{x_j-x_{j-1}} \frac{x-x_{j+1}}{x_j-x_{j+1}} \cdots \frac{x-x_{k}}{x_j-x_{k}}$

## Proof

The function we are looking for has to be polynomial function L(x) of degree k with

$L(x_j) = y_j \qquad j=0,\ldots,k$

According to the Stone-Weierstrass theorem such a function exists and is unique. The Langrange polynomial is the solution to the interpolation problem.

As can be easily seen

1. lj(x) is a polynomial and has degree k
2. $l_i(x_j) = \delta_{ij}, 0 \leq i,j \leq k$

Thus the function L(x) is a polynomial with degree k and

$L(x_i) = \sum_{j=0}^{k} y_j l_j(x_i) = y_i$.

Therefore L(x) is our unique interpolation polynomial.

## Main idea

Solving an interpolation problems leads to a problem in linear algebra where we have to solve a matrix. Using a standard monomial basis for our interpolation polynomial we get the very complicated Vandermonde matrix. By choosing another basis, the Langrange basis we get the much simpler identity matrix = δi,j which we can solve instantly.

## Usage

The Langrange form of the interpolation polynomial shows the linear character of polynomial interpolation and the uniqueness of the interpolation polynomial. Therefore, it is preferred in proofs and theoretical arguments. But, as can be seen from the construction, each time a node xk changes, all Langrange basis polynomials have to be recalculated. A better form of the interpolation polynomial for practical (or computational) purposes is the Newton polynomial. Using nested multiplication amounts to the same idea.

The Lagrange basis polynomials are used in numerical integration to derive the Newton-Cotes formulas.

Lagrange interpolation is often used in digital signal processing of audio for the implementation of fractional delay FIR filters (e.g., to precisely tune digital waveguides in physical modelling synthesis).