Linear Interpolation

For given points x0x_0 and x1x_1, with x0x1x_0 \ne x_1 the linear interpolation is p1(x)=f(x0)+(f(x1)f(x0)x1x0)(xx0)p_1(x) = f(x_0) + (\frac{f(x_1)-f(x_0)}{x_1-x_0}) (x-x_0).

Interpolation Points

Function

References: