Lagrange Interpolation Formula
Lagrange’s formula is applicable to problems where the independent variable occurs at equal and unequal intervals, but preferably this formula is applied in a situation where there are unequal intervals for the given independent series. The values of the independent variables are given as etc., and the corresponding values of the function (dependent variable) are etc. So the value of the function corresponding to a given value of is given by which is calculated by the formula presented by Lagrange. Thus, if












then is given as:
Although this formula looks somewhat lengthy, is in fact very easy to remember and write. The first thing to note is that successive terms are multiplied by etc. respectively, and hence there will be as many terms as the number of items in the data. Thus, for example, if we have four yearly observations on the production of rice we will only need to write four such terms.
The numerator in each term contain factors like etc. The point to note here is that the first term omits , the second term omits , the third term omits and so on.
The denominator in each term contains different factors of the independent variable. In the first term the difference is taken from , in the second term the difference is taken from , in the third term the difference is taken from and so on.
When interpolating with this formula it is recommended that you do not look at the formula to write the values of and etc. but rather directly write down the values as if you are writing the formula with the given values. This is suggested because confusion arises while writing the values of etc. in the formula.