Linear Interpolation
The simplest form of interpolation is linear – connect two data points with a straight line.
We can use slope/similar triangles to solve this. For some
Rearranging:
*The 1 in refers to first-order.
Quadratic Interpolation
If there are 3 data points, we instead use a 2nd order fit:
Here, we basically have:
To determine the values of the coefficients, we use: