In FEM, Lagrange interpolation method is used for the polynomial interpolation.
The formula was named after Joseph Louis Lagrange who published it in 1795, though it was first published by Edward Waring in 1779 and rediscovered by Leonhard Euler.
Polynomial U(x) of degree ≤ n – 1 passes through n points (x1,u1 = f(x1)), (x2,u2 = f(x2)),….., (xn,un = f(xn)) is given by :
U(x) = ∑ Uj (x) where j = 1 to n.
Or U(x) can be written explicitly as,
U(x) =