LaGrange's Interpolation Formula

The general problem here is: given n points in the plane

find the polynomial


of degree less than or equal to n - 1 such that


Since a polynomial is a function of x the n numbers x1, x2, .. xn have to be distinct.

The Case when n = 4 and x1 = 1, x2 = 2, x3 = 3, x4 = 4.

We shall first discuss how this is done when n = 4 and x1 = 1, x2 = 2, x3 = 3, x4 = 4. Once this is understood then the general case is easy to understand

So suppose we want to construct a polynomial passing through the four points where


is given. The basic idea is that the third degree polynomial


is equal to 0 for x = 2, x = 3, and x = 4. Furthermore if we define v1(x) by


then a simple computation shows that


We continue with simple variations of this technique by setting

Then


Similarly, for

we have


To finish, we set


Then, by the properties of v1(x), v2(x),v3(x), v4(x), we have


as required. The polynomial p(x) assumes the values y1, y2, y3, y4 at x1, x2, x3, x4 , respectively. It is of degree at most 3 for each of the vi(x) are cubic.

The polynomial p(x) may be of degree less than 3. To see this compute it when the four points are (1,1), (2,2), (3,3), (4,4), points which lie on the line y = x; p(x) will be linear. Similarly, if the points are (-1, 1), (0,0), (1,1) and (2,4), which lie on the parabola y = x2 , p(x) will be a quadratic.

The General Case

In this case we define vi(x) by


for i = 1, 2, .., n.. Then, by construction


Consequently if we define p(x) by


then


A tabulation of the vi(x) for the n = 4 case is given below.