Finding Taylor Polynomials

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

n=0cn(xa)n=c0+c1(xa)+c2(xa)2+n=0cn(xa)n=c0+c1(xa)+c2(xa)2+.

 

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

n=0cn(xa)n=c0+c1(aa)+c2(aa)2+=c0.n=0cn(xa)n=c0+c1(aa)+c2(aa)2+=c0.

 

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

ddx(n=0cn(xa)n)=c1+2c2(xa)+3c3(xa)2+ddx(n=0cn(xa)n)=c1+2c2(xa)+3c3(xa)2+.

 

Therefore, at x=ax=a, the derivative is

ddx(n=0cn(xa)n)=c1+2c2(aa)+3c3(aa)2+=c1.ddx(n=0cn(xa)n)=c1+2c2(aa)+3c3(aa)2+=c1.

 

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

d2dx2(n=0cn(xa)n)=2c2+32c3(xa)+43c4(xa)2+d2dx2(n=0cn(xa)n)=2c2+32c3(xa)+43c4(xa)2+

 

and

d3dx3(n=0cn(xa)n)=32c3+432c4(xa)+543c5(xa)2+d3dx3(n=0cn(xa)n)=32c3+432c4(xa)+543c5(xa)2+.

 

Therefore, at x=ax=a, the second and third derivatives

d2dx2(n=0cn(xa)n)=2c2+32c3(aa)+43c4(aa)2+=2c2d2dx2(n=0cn(xa)n)=2c2+32c3(aa)+43c4(aa)2+=2c2

 

and

d3dx3(n=0cn(xa)n)=32c3+432c4(aa)+543c5(aa)2+=32c3d3dx3(n=0cn(xa)n)=32c3+432c4(aa)+543c5(aa)2+=32c3

 

equal f(a)f(a) and f(a)f(a), respectively, if c2=f(a)2c2=f(a)2 and c3=f(a)32c3=f(a)32. 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

n=0f(n)(a)n!(xa)n=f(a)+f(a)(xa)+f(a)2!(xa)2+f(a)3!(xa)3+n=0f(n)(a)n!(xa)n=f(a)+f(a)(xa)+f(a)2!(xa)2+f(a)3!(xa)3+.

 

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

n=0f(n)(a)n!(xa)n=f(a)+f(a)(xa)+f(a)2!(xa)2++f(n)(a)n!(xa)n+n=0f(n)(a)n!(xa)n=f(a)+f(a)(xa)+f(a)2!(xa)2++f(n)(a)n!(xa)n+.

 

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

p0(x)=f(a),p1(x)=f(a)+f(a)(xa),p2(x)=f(a)+f(a)(xa)+f(a)2!(xa)2,p3(x)=f(a)+f(a)(xa)+f(a)2!(xa)2+f(a)3!(xa)3,p0(x)=f(a),p1(x)=f(a)+f(a)(xa),p2(x)=f(a)+f(a)(xa)+f(a)2!(xa)2,p3(x)=f(a)+f(a)(xa)+f(a)2!(xa)2+f(a)3!(xa)3,

 

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

pn(x)=f(a)+f(a)(xa)+f(a)2!(xa)2+f(a)3!(xa)3++f(n)(a)n!(xa)npn(x)=f(a)+f(a)(xa)+f(a)2!(xa)2+f(a)3!(xa)3++f(n)(a)n!(xa)n.

 

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.

  1. f(x)=exf(x)=ex
  2. f(x)=sinxf(x)=sinx
  3. 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.