The Taylor remainder in this visualization
A Taylor polynomial matches a function and its first derivatives at the centre . The remainder is its error: the yellow bar at the point , from the polynomial to the curve. Taylor’s theorem describes it with one more derivative. If and has a continuous -th derivative on an interval containing both, the remainder looks like the next term of the series, except that the derivative is taken at some point strictly between them instead of at ; at the remainder is 0.
Where ξ comes from
For the formula reads : the mean value theorem. The general case is proved the same way, by applying the mean value theorem, in Cauchy’s form, to the error as the centre slides from to . Like the mean value theorem, it promises that such a exists, not where it is. Turn on Where ξ is: the strip below draws , and the yellow level is the value it must take for the formula to give the actual error. The ◆ marks one point in the shaded stretch where the curve crosses that level (there can be more than one). Drag or change and it moves.
A bound you can compute
Usually you want the size of the error without knowing , since that is what the polynomial was for. You don’t know , but you can replace by , the largest value of anywhere between and . That gives the Lagrange error bound. The shaded band is this bound drawn around at every point, and stays inside it. Three things set its width: , which changes with and with how far the stretch reaches, the distance from raised to the power , and the factorial. Near the band is thin and further out it widens; an extra term narrows it only when the factorial outgrows the other two.
How many terms, and how cautious
To guarantee an accuracy, look for the smallest order whose bound is below it. The bound can also be far above the real error: for about 0, the derivatives are largest at the end nearest ; the bound works out to , which for grows with even though the series converges there. A bound that fails to shrink only means the estimate is too rough to show convergence.
Things to notice
- For about 0, because the term is zero. So the bound for , with underneath, also holds for .
- Textbooks often use a simpler : 1 for sine and cosine, 3 for on . Any number at least as large as the true maximum gives a valid, looser bound.
Controls
- Press the x-axis, or drag the handle or the yellow bar, to move the point x. The order wheel raises or lowers the order by one.
- The centre a changes in its field.