Lagrange interpolation (Examples and Proof) (2024)

table of contents
- Lagrange interpolation
- Example 1: Linear interporation
- Example 2: Quadratic interpolation
- Example 3: Cubic interpolation
- Uniqueness

Lagrange interpolation

Let $f(x)$ be an arbitrary real function.

The nth degree polynomial passing through $n + 1$ points

Lagrange interpolation (Examples and Proof) (1)

is

Lagrange interpolation (Examples and Proof) (2)

, where $L_{j}(x)$ is the nth degree polynomial defined as

Lagrange interpolation (Examples and Proof) (3)

. $p(x)$ is called Langrange interporation.

Proof
Let

Lagrange interpolation (Examples and Proof) (4)

$$\tag{1}$$be $n+1$ points on a real function $f(x)$, where

Lagrange interpolation (Examples and Proof) (5)

Let $p(x)$ be the nth degree polynomial passing through $(1)$. $p(x)$ satisfies

Lagrange interpolation (Examples and Proof) (6)

$$\tag{2}$$(See fig. below).

Lagrange interpolation (Examples and Proof) (7)

We put $p(x)$ as

Lagrange interpolation (Examples and Proof) (8)

$$\tag{3}$$, where $L_{i}(x)$ $(i=0,1, \cdots,n)$ are nth degree polynomials.(The specific form of $L_{i}(x)$ has not been determined at this point.)
If $L_{i}(x)$ satisfy

Lagrange interpolation (Examples and Proof) (9)

, $p(x_{0}) = f(x_{0}) $.

If $L_{i}(x)$ satisfy

Lagrange interpolation (Examples and Proof) (10)

$p(x_{1}) = f(x_{1}) $.In the same way, we see thatif $L_{i}(x)$ satisfy,

Lagrange interpolation (Examples and Proof) (11)

$$\tag{4}$$, $p(x_{j}) = f(x_{j})$ $(j=0,1,\cdots,n)$.
In $(4)$, $L_{0}(x_{i}) = 0$ for $i =1, 2, \cdots, n$.By the factor theorem, $L_{0} (x)$ can be expressed as

Lagrange interpolation (Examples and Proof) (12)

, where $\alpha_{0} $ is a constant.By $L_{0}(x_{0}) = 1$, it is derived as

Lagrange interpolation (Examples and Proof) (13)

Therefore we obtain

Lagrange interpolation (Examples and Proof) (14)

In a similar way, since $L_{1}(x_{i}) = 0$ for $i =0,2,3\cdots,n$, by the factor theorem, we obtain$L_{1}(x)$ can be written as

Lagrange interpolation (Examples and Proof) (15)

, where $\alpha_{1} $ is a constant.By $L_{1}(x_{1}) = 1$, it is derived as

Lagrange interpolation (Examples and Proof) (16)

. Therefore we obtain

Lagrange interpolation (Examples and Proof) (17)

By repeating the same discussion,we can derive $L_{j}(x)$ for $j = 0,1,\cdots, n$ as

Lagrange interpolation (Examples and Proof) (18)

. This expression can be written by the symbol $\prod$ as

Lagrange interpolation (Examples and Proof) (19)

$$\tag{5}$$
Substituing $(5)$ into $(3)$, we have

Lagrange interpolation (Examples and Proof) (20)

It is clear that this function passes through points $(1)$ (that is, it satisfies $(2)$), since $L_{j}(x)$ satisfies $(4)$.
Approximating the original function $f (x)$ with the polynomial function $p (x)$ defined in this way, that is,

Lagrange interpolation (Examples and Proof) (21)

is called Lagrange interpolation.

Lagrange's interpolation is a formula for finding a polynomial that approximates the function $f(x)$, but it simply derives a nth degree function passing through $n + 1$ given points.

Example 1: Linear interpolation

Let $f (x)$ be a function that passes through two points

Lagrange interpolation (Examples and Proof) (22)

.Find the linear function $p (x)$ that passes through these two points using Lagrange's interpolation formula.

Answer
Lagrange's interpolation formula that gives the linear function passing through two points

Lagrange interpolation (Examples and Proof) (23)

is

Lagrange interpolation (Examples and Proof) (24)

In this example,

Lagrange interpolation (Examples and Proof) (25)

We obtain

Lagrange interpolation (Examples and Proof) (26)

Lagrange interpolation (Examples and Proof) (27)

Example 2: Quadratic interpolation

Let $f (x)$ be a function that passes through three points

Lagrange interpolation (Examples and Proof) (28)

.Find the quadratic function $p (x)$ that passes through these three points using Lagrange's interpolation formula.

Answer
Lagrange's interpolation formula that gives the quadratic function passing through three points

Lagrange interpolation (Examples and Proof) (29)

is

Lagrange interpolation (Examples and Proof) (30)

In this example,

Lagrange interpolation (Examples and Proof) (31)

We obtain

Lagrange interpolation (Examples and Proof) (32)

Lagrange interpolation (Examples and Proof) (33)

Example 3: Cubic interpolation

Let $f (x)$ be a function that passes through four points

Lagrange interpolation (Examples and Proof) (34)

.Find the qubic function $p (x)$ that passes through these four points using Lagrange's interpolation formula.

Answer
Lagrange's interpolation formula that gives the qubic function passing through four points

Lagrange interpolation (Examples and Proof) (35)

is

Lagrange interpolation (Examples and Proof) (36)

In this example,

Lagrange interpolation (Examples and Proof) (37)

We obtain

Lagrange interpolation (Examples and Proof) (38)

Lagrange interpolation (Examples and Proof) (39)

Uniqueness

A polynomial of degree $n$

Lagrange interpolation (Examples and Proof) (40)

that passes through $n+1$ different points

Lagrange interpolation (Examples and Proof) (41)

$$\tag{1}$$is unique.There is no polynomial that passes though the different $n+1$ points and that is different from the Lagrange's interporation formula.

Proof

Problems solving a system of linear equations
Let $f(x)$ be a polynomial of degree $n$ defined as

Lagrange interpolation (Examples and Proof) (42)

, and that passes through $n+1$ different points,

Lagrange interpolation (Examples and Proof) (43)

. We have

Lagrange interpolation (Examples and Proof) (44)

$$ \tag{2}$$
Let $X$ be an $(n+1) \times (n+1)$ matrix, and $\mathbf{a}$ and $\mathbf{y}$ be $n$ dimensional vectors defined as

Lagrange interpolation (Examples and Proof) (45)

. Equations $(2)$ can be written as

Lagrange interpolation (Examples and Proof) (46)

$$\tag{3}$$
Equation $(3)$ ( or $(2)$) isa system of $n+1$ linear equations with $n+1$ unknowns.

$X$ is non-singular

In order for the function $f (x)$ to be unique, each coefficient $a_{0}, a_{1}, \cdots, a_{n}$ must be unique.To be so, the solution of system of linear equations $(2)$, that is $\mathbf{a}$, must be unique.

A necessary and sufficient condition for the system of linear equations whose coefficient matrix is a square matrix to have a single solution is that the coefficient matrix is a non-singular matrix (a matrix having and inverse matrix).Therefore, if it is shown that the coefficient matrix of $(3)$ is a non-singular matrix, it means that the solution of $(3)$ is unique.
Let us focus on the coefficient matrix $X$.The transpose matrix of $X$ is a Vandermonde matrix

Lagrange interpolation (Examples and Proof) (47)

It is known that the determinant of the Vandermonde matrix is given as

Lagrange interpolation (Examples and Proof) (48)

, where $\prod_{1 \leq i < j \leq n}$ means thatall $( x_{j}- x_{i} )$ are multiplied if $1 \leq i < j \leq n$.Specifically,

Lagrange interpolation (Examples and Proof) (49)

In our discussion,every $x_{i}$ is different.If $i \neq j$, $x_{i} \neq x_{j}$.We have

Lagrange interpolation (Examples and Proof) (50)

Generally, the determinant of the transposed matrix is equal to the determinant of the original matrix.We have

Lagrange interpolation (Examples and Proof) (51)

Since a matrix whose determinant is not $0$ is a non-singular matrix, $X$ is shown to be a non-singular matrix.

Conclusion

As described above, the coefficient matrix $ X $ of the system of linear equations $(3)$ is a non-singular matrix and therefore has the unique solution.Solving $(2)$ gives the unique coeffient $a_{0}, a_{1} \cdots, a_{n}$.The function of $f(x)$ is uniquely determined.Therefore,a function that passes through different $n+1$ points is unique.

Lagrange interpolation (Examples and Proof) (2024)

References

Top Articles
Latest Posts
Article information

Author: Nicola Considine CPA

Last Updated:

Views: 6160

Rating: 4.9 / 5 (49 voted)

Reviews: 88% of readers found this page helpful

Author information

Name: Nicola Considine CPA

Birthday: 1993-02-26

Address: 3809 Clinton Inlet, East Aleisha, UT 46318-2392

Phone: +2681424145499

Job: Government Technician

Hobby: Calligraphy, Lego building, Worldbuilding, Shooting, Bird watching, Shopping, Cooking

Introduction: My name is Nicola Considine CPA, I am a determined, witty, powerful, brainy, open, smiling, proud person who loves writing and wants to share my knowledge and understanding with you.