Lagrange Interpolation
Lagrange Interpolation: Build a Polynomial That Hits Every Node
The interpolation problem
Given distinct nodes x0 through xn and corresponding values y0 through yn, interpolation seeks a polynomial P of degree at most n satisfying P(xi) = yi at every listed node. Distinct x-coordinates are essential: two conflicting y-values at the same x cannot belong to one function.
The basis idea
The i-th Lagrange basis polynomial is Li(x) = product over j not equal to i of (x - xj) divided by (xi - xj). At xi, every factor in its numerator matches the denominator, giving one. At another node, one numerator factor is zero, giving zero.
Assemble and check
The interpolant is P(x) = sum of yiLi(x). This form is valuable because each data value controls its own basis term.
After simplifying or evaluating, substitute each original node: if P misses a listed value, a sign, denominator, or index was mishandled. The polynomial can be unique at the nodes while still being a poor extrapolator outside their span.
The two data points are (1, 2) and (3, 6). What value does the degree-at-most-one interpolating polynomial take at x = 2?
Three points have distinct x-coordinates. Which statement is guaranteed about their Lagrange interpolant?