In Section 9.8, we showed how certain functions can be represented by a power series function. In Section 9.9, we showed how we can approximate functions with polynomials, given that enough derivative information is available. In this section we combine these concepts: if a function is infinitely differentiable, we show how to represent it with a power series function.
Let have derivatives of all orders at .
The Taylor Series of , centered at is
Setting gives the Maclaurin Series of :
The difference between a Taylor polynomial and a Taylor series is the former is a polynomial, containing only a finite number of terms, whereas the latter is a series, a summation of an infinite set of terms. When creating the Taylor polynomial of degree for a function at , we needed to evaluate , and the first derivatives of , at . When creating the Taylor series of , we need to find a pattern that describes the derivative of at . We demonstrate this in the next two examples.
Find the Maclaurin series of .
SolutionIn Example 9.9.4 we found the degree Maclaurin polynomial of . In doing so, we created the table shown in Figure 9.10.1. ††margin: Notice how when is odd, when is divisible by , and when is even but not divisible by 4. Thus the Maclaurin series of is
We can go further and write this as a summation. Since we only need the terms where the power of is even, we write the power series in terms of :
Find the Taylor series of centered at .
SolutionFigure 9.10.2 shows the derivative of evaluated at for , along with an expression for the term:
Remember that this is what distinguishes Taylor series from Taylor polynomials; we are very interested in finding a pattern for the term, not just finding a finite set of coefficients for a polynomial. ††margin: Since , we skip the first term and start the summation with , giving the Taylor series for , centered at , as
It is important to note that Definition 9.10.1 defines a Taylor series given a function ; however, we cannot yet state that is equal to its Taylor series. We will find that “most of the time” they are equal, but we need to consider the conditions that allow us to conclude this.
Theorem 9.9.1 states that the error between a function and its -degree Taylor polynomial is , where
If goes to 0 for each in an interval as approaches infinity, we conclude that the function is equal to its Taylor series expansion.
Let have derivatives of all orders at , let be as stated in Theorem 9.9.1, and let be an interval on which the Taylor series of converges. If for all in , then
We demonstrate the use of this theorem in an example.
Show that is equal to its Maclaurin series, as found in Example 9.10.1, for all .
SolutionGiven a value , the magnitude of the error term is bounded by
Since all derivatives of are or , whose magnitudes are bounded by , we can state
which implies
(9.10) |
For any , . Applying the Squeeze Theorem to Equation (9.10), we conclude that for all , and hence
It is natural to assume that a function is equal to its Taylor series on the series’ interval of convergence, but this is not the case. In order to properly establish equality, one must use Theorem 9.10.1. This is a bit disappointing, as we developed beautiful techniques for determining the interval of convergence of a power series, and proving that can be cumbersome as it deals with high order derivatives of the function.
There is good news. A function that is equal to its Taylor series, centered at any point the domain of , is said to be an analytic function, and most, if not all, functions that we encounter within this course are analytic functions. Generally speaking, any function that one creates with elementary functions (polynomials, exponentials, trigonometric functions, etc.) that is not piecewise defined is probably analytic. For most functions, we assume the function is equal to its Taylor series on the series’ interval of convergence and only use Theorem 9.10.1 when we suspect something may not work as expected. The converse is also true: if a function is equal to some power series on an interval, then that power series is the Taylor series of the function.
We develop the Taylor series for one more important function, then give a table of the Taylor series for a number of common functions.
Find the Maclaurin series of , .
SolutionWhen is a positive integer, the Maclaurin series is finite. For instance, when , we have
The coefficients of when is a positive integer are known as the binomial coefficients, giving the series we are developing its name.
When , we have . Knowing a series representation of this function would give a useful way of approximating , for instance.
To develop the Maclaurin series for for any value of , we consider the derivatives of evaluated at :
Thus the Maclaurin series for is
It is important to determine the interval of convergence of this series. With
we apply the Ratio Test:
The series converges absolutely when the limit of the Ratio Test is less than 1; therefore, we have absolute convergence when .
While outside the scope of this text, the interval of convergence depends on the value of . When , the interval of convergence is . When , the interval of convergence is . If , the interval of convergence is .
We learned that Taylor polynomials offer a way of approximating a “difficult to compute” function with a polynomial. Taylor series offer a way of exactly representing a function with a series. One probably can see the use of a good approximation; is there any use of representing a function exactly as a series?
While we should not overlook the mathematical beauty of Taylor series (which is reason enough to study them), there are practical uses as well. They provide a valuable tool for solving a variety of problems, including problems relating to integration and differential equations.
In Key Idea 9.10.1 (on the following page) we give a table of the Maclaurin series of a number of common functions. We then give a theorem about the “algebra of power series,” that is, how we can combine power series to create power series of new functions. This allows us to find the Taylor series of functions like by knowing the Taylor series of and .
Before we investigate combining functions, consider the Taylor series for the arctangent function (see Key Idea 9.10.1). Knowing that , we can use this series to approximate the value of :
Unfortunately, this particular expansion of converges very slowly. The first 100 terms approximate as , which is not particularly good.
Function and Series | First Few Terms |
Interval of Convergence |
---|---|---|
Let and converge absolutely for , and let be continuous.
for .
for .
for .
Write out the first 3 terms of the Maclaurin Series for using Key Idea 9.10.1 and Theorem 9.10.2.
SolutionKey Idea 9.10.1 informs us that
Applying Theorem 9.10.2, we find that
Distribute the right hand expression across the left: | ||||
Distribute again and collect like terms. | ||||
While this process is a bit tedious, it is much faster than evaluating all the necessary derivatives of and computing the Taylor series directly.
Because the series for and both converge on , so does the series expansion for .
Use Theorem 9.10.2 to create the Taylor series for centered at and a series for centered at .
SolutionGiven that
we simply substitute for in the series, giving
Since the Taylor series for has an infinite radius of convergence, so does the Taylor series for .
The Taylor expansion for given in Key Idea 9.10.1 is centered at , so we will center the series for at as well. With
we substitute for to obtain
While this is not strictly a power series because of the , it is a series that allows us to study the function . Since the interval of convergence of is , and the range of on is , the interval of convergence of this series expansion of is .
Use the Taylor series of to evaluate .
SolutionWe learned, when studying Numerical Integration, that does not have an antiderivative expressible in terms of elementary functions. This means any definite integral of this function must have its value approximated, and not computed exactly.
We can quickly write out the Taylor series for using the Taylor series of :
and so | ||||
We use Theorem 9.8.3 to integrate:
This is the antiderivative of ; while we can write it out as a series, we cannot write it out in terms of elementary functions. We can evaluate the definite integral using this antiderivative; substituting 1 and 0 for and subtracting gives
Summing the 5 terms shown above gives the approximation of Since this is an alternating series, we can use the Alternating Series Approximation Theorem, (Theorem 9.5.3), to determine how accurate this approximation is. The next term of the series is . Thus we know our approximation is within of the actual value of the integral. This is arguably much less work than using Simpson’s Rule to approximate the value of the integral.
Another advantage to using Taylor series instead of Simpson’s Rule is for making subsequent approximations. We found in Example 8.7.7 that the error in using Simpson’s Rule for with four intervals was . If we wanted to decrease that error, we would need to use more intervals, essentially starting the problem over. Using a Taylor series, if we wanted a more accurate approximation, we can just subtract the next term to get an approximation of , with an error of at most .
Finding a pattern in the coefficients that match the series expansion of a known function, such as those shown in Key Idea 9.10.1, can be difficult. What if the coefficients are given in their reduced form; how could we still recover the function?
Suppose that all we know is that
Definition 9.10.1 states that each term of the Taylor expansion of a function includes an . This allows us to say that
for some values , and . Solving for these values, we see that , and . That is, we are recovering the pattern , allowing us to write
From here it is easier to recognize that the series is describing an exponential function.
This chapter introduced sequences, which are ordered lists of numbers, followed by series, wherein we add up the terms of a sequence. We quickly saw that such sums do not always add up to “infinity,” but rather converge. We studied tests for convergence, then ended the chapter with a formal way of defining functions based on series. Such “series-defined functions” are a valuable tool in solving a number of different problems throughout science and engineering.
Coming in the next chapters are new ways of defining curves in the plane apart from using functions of the form . Curves created by these new methods can be beautiful, useful, and important.
What is the difference between a Taylor polynomial and a Taylor series?
What theorem must we use to show that a function is equal to its Taylor series?
Key Idea 9.10.1 gives the term of the Taylor series of common functions. In Exercises 3–6, verify the formula given in the Key Idea by finding the first few terms of the Taylor series of the given function and identifying a pattern.
;
;
;
;
In Exercises 7–12, find a formula for the term of the Taylor series of , centered at , by finding the coefficients of the first few powers of and looking for a pattern. (The formulas for several of these are found in Key Idea 9.10.1; show work verifying these formula.)
;
;
;
;
;
;
In Exercises 13–16, show that the Taylor series for , as given in Key Idea 9.10.1, is equal to by applying Theorem 9.10.1; that is, show .
(show equality only on ).
(show equality only on )
In Exercises 17–20, use the Taylor series given in Key Idea 9.10.1 to verify the given identity.
In Exercises 21–24, write out the first 5 terms of the Binomial series with the given -value.
In Exercises 25–30, use the Taylor series given in Key Idea 9.10.1 to create the Taylor series of the given functions.
(only find the first non-zero 4 terms)
(only find the first non-zero 4 terms)
In Exercises 31–32, approximate the value of the given definite integral by using the first 4 nonzero terms of the integrand’s Taylor series.