3. Interpolation formula of Lagrange

Output data:

  • the value of the unknown function f (x) at two or more points: f ( xо) = y o ; f (x 1 ) = y 1 ; ...; f (x n ) = y n ;
  • the order of the interpolating polynomial (n-1).

The essence of the method. As an interpolating polynomial, we will take the form of a polynomial:

 ,

and the values ​​of P n (x) in the interpolation nodes must coincide with the values ​​of the given function f (x), that is: P n (x) = f (x i ) = y i (i = 0,1,2, ..., n).

This condition allows you to go to the system with (n + 1) linear equations. Since the interpolation nodes are different, then this system of linear equations has only one solution. And hence, the interpolation polynomial P n (x) exists and will be unique. We will derive this polynomial in the following way. First, let's consider the auxiliary polynomial F (x), which takes the value of F 0 (x 0 ) = 1 at the interpolation node x 0 , and in all other nodes x i (i = 1,2, ..., n), the value of this polynomial is equal zero: F 0 (x 1 ) = F 0 (x 2 ) = ... = F 0 (x n ) = 0. Such a polynomial will look like:

                                             .

The interpolation nodes x 1 , x 2 , ..., x n are the roots of the polynomial F 0 (x 0 ), and at the point x = x 0 the numerator is equal to the denominator, and hence, F 0 (x 0 ) = 1. A similar polynomial will be constructed for a node x = x 1 , whose form:

                                             .

The same polynomials can be constructed for all other nodal points of interpolation. In the general form, the polynomials F i (x), (i = 0,1,2, ..., n) can be written as:

                                 .

Then the desired interpolation polynomial will look like:

                            .

The product F i (x) y i (i = 0,1,2, ..., n) is zero in all interpolation nodes, except node xi, where they are equal to yi. Moreover, the order of the polynomial P n (x) is equal to n, since each term of the sum of F i (x) y i also has the order n.

The well-defined form P n (x) is called the Lagrange interpolation polynomial. In turn, the Lagrange interpolation formula for determining the values ​​of functions in the intermediate points xÎ] x o ; x n [, x χ i (i = 0,1, ..., n) has the form:

                               .

In the partial case, when there are two interpolation nodes, this formula represents the formula of linear interpolation, for the three nodes the quadratic interpolation formula.

Since the polynomial P n (x) is a parabolic curve of the nth order, such an interpolation is called parabolic.

The error of the parabolic interpolation depends on: 1) the polynomial; 2) the errors of the interpolation nodes, and also 3) the error of the calculation.

Accessibility

Font Face Font Face

Font Size Font Size

1

Text Colour Text Colour

Background Colour Background Colour

Font Kerning Font Kerning

Image Visibility Image Visibility

Letter Spacing Letter Spacing

0

Line Height Line Height

1.2

Link Highlight Link Highlight