Lagrange Interpolation
A method to construct the unique polynomial of degree that passes through given points.
⚠️ Prerequisites: Coefficient vs Evaluation Form.
Lagrange interpolation is one way to perform polynomial interpolation (recall that this is the process of recovering a polynomial from a set of known evaluations, see prerequisites above).
Let’s say we’ve been given then following point-evaluation pairs , , and . Since we have 4 pairs, we will be able to interpolate the unique polynomial of degree 4 such that for all .
The strategy is the following: for each , we create a polynomial which evaluates to 0 at all the points we were given except , where it evaluates to 1. We can then express the polynomial as:
The set of all polynomials is known as the Lagrange basis for the evaluation domain (here, the set of all values).