The [latex]n[/latex]th partial sum of the Taylor series for a function [latex]f[/latex] at [latex]a[/latex] is called the [latex]n[/latex]th Taylor polynomial.
These are the [latex]0[/latex]th, [latex]1[/latex]st, [latex]2[/latex]nd, and [latex]3[/latex]rd Taylor polynomials of [latex]f[/latex] at [latex]a[/latex], respectively. When [latex]a = 0[/latex], these are called Maclaurin polynomials. We now provide a formal definition of Taylor and Maclaurin polynomials for a function [latex]f[/latex].
Taylor polynomial
If [latex]f[/latex] has [latex]n[/latex] derivatives at [latex]x = a[/latex], then the [latex]n[/latex]th Taylor polynomial for [latex]f[/latex] at [latex]a[/latex] is:
The [latex]n[/latex]th Taylor polynomial for [latex]f[/latex] at [latex]0[/latex] is known as the [latex]n[/latex]th Maclaurin polynomial for [latex]f[/latex].
Let’s see how to use this definition by finding several Taylor polynomials for [latex]f(x) = \ln x[/latex] at [latex]x = 1[/latex].
Find the Taylor polynomials [latex]{p}_{0},{p}_{1},{p}_{2}[/latex] and [latex]{p}_{3}[/latex] for [latex]f\left(x\right)=\text{ln}x[/latex] at [latex]x=1[/latex]. Use a graphing utility to compare the graph of [latex]f[/latex] with the graphs of [latex]{p}_{0},{p}_{1},{p}_{2}[/latex] and [latex]{p}_{3}[/latex].
To find these Taylor polynomials, we need to evaluate [latex]f[/latex] and its first three derivatives at [latex]x=1[/latex].
The graphs of [latex]y=f\left(x\right)[/latex] and the first three Taylor polynomials are shown in Figure 1.
Figure 1. The function [latex]y=\text{ln}x[/latex] and the Taylor polynomials [latex]{p}_{0},{p}_{1},{p}_{2}[/latex] and [latex]{p}_{3}[/latex] at [latex]x=1[/latex] are plotted on this graph.
Watch the following video to see the worked solution to the above example.
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.
We now show how to find Maclaurin polynomials for [latex]e^{x}[/latex], [latex]\sin{x}[/latex], and [latex]\cos{x}[/latex]. As stated above, Maclaurin polynomials are Taylor polynomials centered at zero.
For each of the following functions, find formulas for the Maclaurin polynomials [latex]{p}_{0},{p}_{1},{p}_{2}[/latex] and [latex]{p}_{3}[/latex]. Find a formula for the nth Maclaurin polynomial and write it using sigma notation. Use a graphing utilty to compare the graphs of [latex]{p}_{0},{p}_{1},{p}_{2}[/latex] and [latex]{p}_{3}[/latex] with [latex]f[/latex].
[latex]f\left(x\right)={e}^{x}[/latex]
[latex]f\left(x\right)=\sin{x}[/latex]
[latex]f\left(x\right)=\cos{x}[/latex]
Since [latex]f\left(x\right)={e}^{x}[/latex], we know that [latex]f\left(x\right)={f}^{\prime }\left(x\right)=f^{\prime\prime}\left(x\right)=\cdots ={f}^{\left(n\right)}\left(x\right)={e}^{x}[/latex] for all positive integers n. Therefore,
The function and the first three Maclaurin polynomials are shown in Figure 2.
Figure 2. The graph shows the function [latex]y={e}^{x}[/latex] and the Maclaurin polynomials [latex]{p}_{0},{p}_{1},{p}_{2}[/latex] and [latex]{p}_{3}[/latex].
For [latex]f\left(x\right)=\sin{x}[/latex], the values of the function and its first four derivatives at [latex]x=0[/latex] are given as follows:
Since the fourth derivative is [latex]\sin{x}[/latex], the pattern repeats. That is, [latex]{f}^{\left(2m\right)}\left(0\right)=0[/latex] and [latex]{f}^{\left(2m+1\right)}\left(0\right)={\left(-1\right)}^{m}[/latex] for [latex]m\ge 0[/latex]. Thus, we have
Graphs of the function and its Maclaurin polynomials are shown in Figure 3.
Figure 3. The graph shows the function [latex]y=\sin{x}[/latex] and the Maclaurin polynomials [latex]{p}_{1},{p}_{3}[/latex] and [latex]{p}_{5}[/latex].
For [latex]f\left(x\right)=\cos{x}[/latex], the values of the function and its first four derivatives at [latex]x=0[/latex] are given as follows:
Since the fourth derivative is [latex]\sin{x}[/latex], the pattern repeats. In other words, [latex]{f}^{\left(2m\right)}\left(0\right)={\left(-1\right)}^{m}[/latex] and [latex]{f}^{\left(2m+1\right)}=0[/latex] for [latex]m\ge 0[/latex]. Therefore,
Graphs of the function and the Maclaurin polynomials appear in Figure 4.
Figure 4. The function [latex]y=\cos{x}[/latex] and the Maclaurin polynomials [latex]{p}_{0},{p}_{2}[/latex] and [latex]{p}_{4}[/latex] are plotted on this graph.
Watch the following video to see the worked solution to the above example.
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.