Learning Outcomes
- Describe the procedure for finding a Taylor polynomial of a given order for a function
Overview of Taylor/Maclaurin Series
Consider a function ff that has a power series representation at x=ax=a. Then the series has the form
What should the coefficients be? For now, we ignore issues of convergence, but instead focus on what the series should be, if one exists. We return to discuss convergence later in this section. If the series in the above equation is a representation for ff at x=ax=a, we certainly want the series to equal f(a)f(a) at x=ax=a. Evaluating the series at x=ax=a, we see that
Thus, the series equals f(a)f(a) if the coefficient c0=f(a)c0=f(a). In addition, we would like the first derivative of the power series to equal f′(a)f′(a) at x=ax=a. Differentiating our initial equation term-by-term, we see that
Therefore, at x=ax=a, the derivative is
Therefore, the derivative of the series equals f′(a)f′(a) if the coefficient c1=f′(a)c1=f′(a). Continuing in this way, we look for coefficients cn such that all the derivatives of the power series will agree with all the corresponding derivatives of ff at x=ax=a. The second and third derivatives of our initial equation are given by
and
Therefore, at x=ax=a, the second and third derivatives
and
equal f′′(a)f′′(a) and f′′′(a)f′′′(a), respectively, if c2=f′′(a)2c2=f′′(a)2 and c3=f′′′(a)3⋅2c3=f′′′(a)3⋅2. More generally, we see that if ff has a power series representation at x=ax=a, then the coefficients should be given by cn=f(n)(a)n!cn=f(n)(a)n!. That is, the series should be
This power series for ff is known as the Taylor series for ff at aa. If a=0a=0, then this series is known as the Maclaurin series for ff.
Definition
If ff has derivatives of all orders at x=ax=a, then the Taylor series for the function ff at aa is
The Taylor series for ff at 0 is known as the Maclaurin series for ff.
Later in this section, we will show examples of finding Taylor series and discuss conditions under which the Taylor series for a function will converge to that function. Here, we state an important result. Recall from Uniqueness of Power Series that power series representations are unique. Therefore, if a function ff has a power series at aa, then it must be the Taylor series for ff at aa.
theorem: Uniqueness of Taylor Series
If a function ff has a power series at a that converges to ff on some open interval containing a, then that power series is the Taylor series for ff at a.
The proof follows directly from Uniqueness of Power Series.
To determine if a Taylor series converges, we need to look at its sequence of partial sums. These partial sums are finite polynomials, known as Taylor polynomials.
Interactive
Visit the MacTutor History of Mathematics archive to read a biography of Brook Taylor and a biography of Colin Maclaurin and how they developed the concepts named after them.
Taylor Polynomials
The nth partial sum of the Taylor series for a function ff at aa is known as the nth Taylor polynomial. For example, the 0th, 1st, 2nd, and 3rd partial sums of the Taylor series are given by
respectively. These partial sums are known as the 0th, 1st, 2nd, and 3rd Taylor polynomials of ff at aa, respectively. If a=0a=0, then these polynomials are known as Maclaurin polynomials for ff. We now provide a formal definition of Taylor and Maclaurin polynomials for a function ff.
Definition
If ff has n derivatives at x=ax=a, then the nth Taylor polynomial for ff at aa is
The nnth Taylor polynomial for ff at 00 is known as the nnth Maclaurin polynomial for ff.
We now show how to use this definition to find several Taylor polynomials for f(x)=lnxf(x)=lnx at x=1x=1.
Example: Finding Taylor Polynomials
Find the Taylor polynomials p0,p1,p2p0,p1,p2 and p3p3 for f(x)=lnxf(x)=lnx at x=1x=1. Use a graphing utility to compare the graph of ff with the graphs of p0,p1,p2p0,p1,p2 and p3p3.
Watch the following video to see the worked solution to Example: Finding Taylor Polynomials.
For closed captioning, open the video on its original page by clicking the Youtube logo in the lower right-hand corner of the video display. In YouTube, the video will begin at the same starting point as this clip, but will continue playing until the very end.
You can view the transcript for this segmented clip of “6.3 Taylor and Maclaurin Series” here (opens in new window).
try it
Find the Taylor polynomials p0,p1,p2p0,p1,p2 and p3p3 for f(x)=1x2f(x)=1x2 at x=1x=1.
Try It
We now show how to find Maclaurin polynomials for ex, sinxsinx, and cosxcosx. As stated above, Maclaurin polynomials are Taylor polynomials centered at zero.
Example: Finding Maclaurin Polynomials
For each of the following functions, find formulas for the Maclaurin polynomials p0,p1,p2p0,p1,p2 and p3p3. Find a formula for the nth Maclaurin polynomial and write it using sigma notation. Use a graphing utilty to compare the graphs of p0,p1,p2p0,p1,p2 and p3p3 with ff.
- f(x)=exf(x)=ex
- f(x)=sinxf(x)=sinx
- f(x)=cosxf(x)=cosx
Watch the following video to see the worked solution to Example: Finding Maclaurin Polynomials.
For closed captioning, open the video on its original page by clicking the Youtube logo in the lower right-hand corner of the video display. In YouTube, the video will begin at the same starting point as this clip, but will continue playing until the very end.
You can view the transcript for this segmented clip of “6.3 Taylor and Maclaurin Series” here (opens in new window).
try it
Find formulas for the Maclaurin polynomials p0,p1,p2p0,p1,p2 and p3p3 for f(x)=11+xf(x)=11+x. Find a formula for the nth Maclaurin polynomial. Write your anwer using sigma notation.
Candela Citations
- 6.3 Taylor and Maclaurin Series. Authored by: Ryan Melton. License: CC BY: Attribution
- Calculus Volume 2. Authored by: Gilbert Strang, Edwin (Jed) Herman. Provided by: OpenStax. Located at: https://openstax.org/books/calculus-volume-2/pages/1-introduction. License: CC BY-NC-SA: Attribution-NonCommercial-ShareAlike. License Terms: Access for free at https://openstax.org/books/calculus-volume-2/pages/1-introduction