- The linear interpolant between two points (x0,y0) and (x1,y1) for a value x∈(x0,x1) is the value y on the straight line connecting these points, given either by:
- y=y0+(x−x0)x1−x0y1−y0
- y=y0(x1−x0x1−x)+y1(x1−x0x−x0)=y0w0+y1w1 where w0 and w1 are the weights for y0 and y1, respectively. (These satisfy w0+w1=1)
- Linear interpolation on a data set of points (x0,y0),(x1,y1),…,(xn,yn) is defined as a piecewise linear function resulting from the concatenation of linear interpolants between each adjacent pair of data points. This function is continuous (C0).
- The error of approximating a function f(x) using linear interpolation with points (x0,f(x0)) and (x1,f(x1)) is defined as: RT=f(x)−p(x) where p(x) is the linear interpolation polynomial p(x)=f(x0)+x1−x0f(x1)−f(x0)(x−x0)
- Error Bound Theorem: If a function f has a continuous second derivative on the interval [x0,x1], the error ∣RT∣ of linear interpolation for x∈[x0,x1] is bounded by ∣RT∣≤8(x1−x0)2maxx0≤x≤x1∣f′′(x)∣