Taylor Series
Learning Objectives
- Approximate a function using a Taylor series
- Approximate function derivatives using a Taylor series
- Quantify the error in a Taylor series approximation
Degree Polynomial
A polynomial in a variable can always be written (or rewritten) in the form
where () are constants.
Using the summation notation, we can express the polynomial concisely by
If , the polynomial is called an -th degree polynomial.
Degree Polynomial as a Linear Combination of Monomials
A monomial in a variable is a power of where the exponent is a nonnegative integer (i.e. where is a nonnegative integer). You might see another definition of monomial which allows a nonzero constant as a coefficient in the monomial (i.e. where is nonzero and is a nonnegative integer). Then an -th degree polynomial
can be seen as a linear combination of monomials .
Taylor Series Expansion, Infinite
A Taylor series is a representation of a function as an infinite sum of terms that are calculated from the values of the function’s derivatives at a single point. The Taylor series expansion about of a function that is infinitely differentiable at is the power series
Using the summation notation, we can express the Taylor series concisely by
(Recall that )
Taylor Series Expansion, Finite
In practice, however, we often cannot compute the (infinite) Taylor series of the function, or the function is not infinitely differentiable at some points. Therefore, we often have to truncate the Taylor series (use a finite number of terms) to approximate the function.
Taylor Series Approximation of Degree
If we use the first terms of the Taylor series, we will get
which is called a Taylor polynomial of degree .
Error Bound when Truncating a Taylor Series
Suppose that is an times differentiable function of , and is the Taylor polynomial of degree for centered at . Then when , we obtain the truncation error bound by
We will see the exact expression of in the next section: Taylor Remainder Theorem.
Taylor Remainder Theorem
Suppose that is an times differentiable function of . Let denote the difference between and the Taylor polynomial of degree for centered at . Then
for some between and . Thus, the constant mentioned above is
.
Asymptotic behavior of the error
Let’s say we have approximated using . Suppose the given interval is between and and the error associated with it is . Let’s say we have another interval and we need to find the error associated with it.
Using the formula , we get
Examples
Example of a Taylor Series Expansion
Suppose we want to expand about the point . Following the formula
we need to compute the derivatives of at .
Then
Example of Using a Truncated Taylor Series to Approximate a Function
Suppose we want to approximate at using a degree-4 Taylor polynomial about (centered at) the point . Following the formula
we need to compute the first derivatives of at .
Then
Using this truncated Taylor series centered at , we can approximate at . To do so, we simply plug into the above formula for the degree 4 Taylor polynomial giving
Example of an Error Bound
Suppose we want to approximate using a degree-4 Taylor polynomial expanded about the point . We want to compute the error bound for this approximation. Following Taylor Remainder Theorem,
for some between and .
If we want to find the upper bound for the absolute error, we are looking for an upper bound for .
Since , we have . Then
Example of error predictions
Suppose you expand in a Taylor polynomial of degree 3 about the center . For , you find that the Taylor truncation error is about .
We can use to find the Taylor truncation error for .
Here, and hence .
Review Questions
ChangeLog