Interactive · 1 question
Suppose that we have a function and its th order Taylor approximation. We wish to know how well the Taylor approximation approximates the value of the function. The Lagrange Error Bound provides a simple and powerful bound on the error of the Taylor approximation.
The Lagrange Error Bound is as follows:
Let be a function that is continuous and has all of its derivatives also continuous. Let be the th order Taylor approximation of centered at , and let the error function be . Then: where is a value such that on the interval between and .
Note that the absolute value signs are necessary to force everything to be positive, since the signs generally do not behave as nicely as we would wish them to. However, since we usually just care about how close our estimate is to the real value of the function and not whether our estimate is too high or too low, this theorem is very useful.
It turns out that the proof is actually quite simple! All you need to do is take the inequality, true on the interval between and : Then, you just integrate it times, using the fact that for all : This is exactly what we wanted, so we are done.
That formula may be a little bit tough to digest, but it is actually quite intuitive. Let us reason intuitively as to why the above error bound holds.
Note that the Taylor approximation has been engineered so that: Therefore, for all . This means that the first derivative that could be nonzero is the th order derivative. However, there is actually a very simple function that also has this property!
Do you know which one it is?
Note that the polynomial function satisfies the relation for all . Thus, we expect that the error function behaves similarly to the polynomial . But what should be the value of ?
If we differentiate times, we get:
Thus, if we want to approximate by a polynomial , we should set: But the value of need not be constant; we want a constant be the coefficient of our approximating polynomial. Well, since we want an upper bound on the error, it would make sense to use the maximum magnitude of on the relevant interval, which is the interval between and .
Now, if we let , then we could approximate the function by the polynomial . Then, it would seem to make sense that: This is exactly what we were searching for! Thus, if you have trouble remembering the Lagrange Error Bound, just try to estimate the error function using a simple power function.