Taylor's Remainder Theorem
This is the most important topic of MATH 117/119.
Error of a Taylor Polynomial
What is the error when approximating using a Taylor polynomial?
How do we estimate this error? With repeated Integration by Parts 😳.
Here's what Cauchy did:
Alternatively, using FTC 2:
Note that we assume
Either way, we end up with
IBP:
Let
All together:
This puts
Keep integrating by parts:
Let
All together:
notice that the bracketed terms are nothing but a Taylor polynomial (wtf). We now have
Each time we run an IBP, we create a new Taylor polynomial term, plus the integral which makes it an exact value.
One more IBP:
Let
All together (skipping the actual IBP):
If we keep going:
which means that the integral is our error.
The error of a Taylor polynomial is:
Note that this is heavily related to Connection with FTC.
Taylor's Remainder Theorem
The Remainder of a Taylor Polynomial is defined by:
or sometimes:
where
And we can re-write
Taylor's Inequality
Notice, if we can bound the
If
The error in using an
For all
Bounding the Error
Let
solution
As such,
To bound our error, must look for the remainder, first by finding the third derivative.
Using the Taylor Inequality:
Now, we must find
we seek to find a value for
Plugging this back into our Taylor inequality:
This means the error when using
What is our error when approximating
solution
We know:
so
If we stop at
Now, we must find
Therefore, we can say
So
As such, we expect our Taylor polynomial to be approximately
at
More generally, for any
also written as
where
Lets flip it around. How many terms are needed to estimate
solution
We know:
and setting
which is
Listing out our options for
so the number
Estimate
solution
We have
In this example, we have
Listing out our derivatives:
we find that
We wish to bound it for
Biggest at
Since
Or
Trying values for
we find
Obtaining our Taylor polynomial:
Actual value:
The error is