Piecewise Linear Function
A piecewise linear function is a function composed of some number of linear segments defined over an equal number of intervals, usually of equal size. For example, consider the function y = x^3 over the interval [1, 2]. If y(x) is approximated by a piecewise linear function over an increasing number of segments, e.g., 1, 2, 4, and 8, the accuracy of the approximation is seen to improve as the number of segments increases. In the first case, with a single segment, if we compute the Lagrange interpolating polynomial, the equation of the linear function results. The trapezoidal rule for numeric integration is described in a similar manner.