Describe the procedure for finding a Taylor polynomial of a given order for a function
Overview of Taylor/Maclaurin Series
Consider a function f that has a power series representation at x=a. Then the series has the form
∞∑n=0cn(x−a)n=c0+c1(x−a)+c2(x−a)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 f at x=a, we certainly want the series to equal f(a) at x=a. Evaluating the series at x=a, we see that
∞∑n=0cn(x−a)n=c0+c1(a−a)+c2(a−a)2+⋯=c0.
Thus, the series equals f(a) if the coefficient c0=f(a). In addition, we would like the first derivative of the power series to equal f′(a) at x=a. Differentiating our initial equation term-by-term, we see that
ddx(∞∑n=0cn(x−a)n)=c1+2c2(x−a)+3c3(x−a)2+⋯.
Therefore, at x=a, the derivative is
ddx(∞∑n=0cn(x−a)n)=c1+2c2(a−a)+3c3(a−a)2+⋯=c1.
Therefore, the derivative of the series equals f′(a) if the coefficient 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 f at x=a. The second and third derivatives of our initial equation are given by
equal f′′(a) and f′′′(a), respectively, if c2=f′′(a)2 and c3=f′′′(a)3⋅2. More generally, we see that if f has a power series representation at x=a, then the coefficients should be given by cn=f(n)(a)n!. That is, the series should be
The Taylor series for f at 0 is known as the Maclaurin series for f.
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 f has a power series at a, then it must be the Taylor series for f at a.
theorem: Uniqueness of Taylor Series
If a function f has a power series at a that converges to f on some open interval containing a, then that power series is the Taylor series for f 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.
The nth partial sum of the Taylor series for a function f at a 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 f at a, respectively. If a=0, then these polynomials are known as Maclaurin polynomials for f. We now provide a formal definition of Taylor and Maclaurin polynomials for a function f.
Definition
If f has n derivatives at x=a, then the nth Taylor polynomial for f at a is
The graphs of y=f(x) and the first three Taylor polynomials are shown in Figure 1.
Figure 1. The function y=lnx and the Taylor polynomials p0,p1,p2 and p3 at x=1 are plotted on this graph.
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.
Find the Taylor polynomials p0,p1,p2 and p3 for f(x)=1x2 at x=1.
Hint
Find the first three derivatives of f and evaluate them at x=1.
Show Solution
p0(x)=1
p1(x)=1−2(x−1)
p2(x)=1−2(x−1)+3(x−1)2
p3(x)=1−2(x−1)+3(x−1)2−4(x−1)3
Try It
We now show how to find Maclaurin polynomials for ex, sinx, and cosx. 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,p2 and p3. 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,p2 and p3 with f.
f(x)=ex
f(x)=sinx
f(x)=cosx
Show Solution
Since f(x)=ex, we know that f(x)=f′(x)=f′′(x)=⋯=f(n)(x)=ex for all positive integers n. Therefore,
Graphs of the function and the Maclaurin polynomials appear in Figure 4.
Figure 4. The function y=cosx and the Maclaurin polynomials p0,p2 and p4 are plotted on this graph.
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.
Find formulas for the Maclaurin polynomials p0,p1,p2 and p3 for f(x)=11+x. Find a formula for the nth Maclaurin polynomial. Write your anwer using sigma notation.
Hint
Evaluate the first four derivatives of f and look for a pattern.
Show Solution
p0(x)=1
p1(x)=1−x
p2(x)=1−x+x2
p3(x)=1−x+x2−x3
pn(x)=1−x+x2−x3+⋯+(−1)nxn=n∑k=0(−1)kxk
Candela Citations
CC licensed content, Original
6.3 Taylor and Maclaurin Series. Authored by: Ryan Melton. License: CC BY: Attribution