Taylor Series – Definition, Expansion Form, and Examples

The Taylor series is an important infinite series that has extensive applications in theoretical and applied mathematics. There are instances when working with exponential and trigonometric functions can be challenging. This is when series expansions such as the Taylor series come in handy – these tricky functions can now be written as the sum of infinite polynomials!

The Taylor series is an infinite series that can be used to rewrite transcendental functions as a series with terms containing the powers of $\boldsymbol{x}$. In fact, through the Taylor series, we’ll be able to express a function using its derivatives at a single point.

Our discussion aims to introduce you to the Taylor series. You’ll also learn how this expansion was established and know the special cases possible for the Taylor series. We’ll also show you the common Taylor series expansions of different functions.

What is a Taylor series?

The Taylor series of the function, $f(x)$, is its representation as an infinite series in which the terms are calculated from the values of the functions’ derivatives at each given point, $a$.

\begin{aligned}\textbf{Examples }&\textbf{of Taylor Series Expansion: }\\e^x &= 1 + x + \dfrac{x^2}{2!}+ \dfrac{x^3}{3!} +\dfrac{x^4}{4!}+…\phantom{xxx}\\\sin x&= x – \dfrac{x^3}{3!} +\dfrac{x^5}{5!} – \dfrac{x^7}{7!} +\dfrac{x^9}{9!}+ …\phantom{xxx}\end{aligned}

The two examples show how that through the Taylor series, we can express transcendental functions such as $e^x$ and $\sin x$ in terms of an infinite series containing the powers of $x$.

Understanding the Taylor series formula

Suppose that we have a continuous function, $f(x)$, that has a power series representation. We’ve learned from our discussion of the power series that this function will have a form shown below.

\begin{aligned}f(x) &= \sum_{n = 0}^{\infty} a_n(x- c)^n \\&= a_0 + a_1(x – c) + a_2(x – c)^2 + a_3(x – c)^3 + a_4(x – c)^4+…, \phantom{xx} |x – a|<r,\end{aligned}

where $r$ is the radius of convergence. Now, observe what happens when we evaluate $f(x)$ when $x = c$.

\begin{aligned}f(c) &= a_0 + a_1(c – c) + a_2(c – c)^2 + a_3(c – c)^3 + a_4(c – c)^4+ …\\&= a_0\end{aligned}

We’ve learned in the past that $f(x)$ is also differentiable throughout the interval, $(c- r, c+ r)$. Hence, we have the following expression for $f^{\prime}(x)$.

\begin{aligned}f^{\prime}(x) &=  a_1+ 2a_2(x – c) + 3a_3(x – c)^2 + 4a_4(x – c)^3+…, \phantom{xx} |x – a|<r\end{aligned}

As from the previous step, substitute $x = c$ back into the expression.

\begin{aligned}f^{\prime}(c) &= a_1+ 2a_2(c – c) + 3a_3(c – c)^2 + 4a_4(c – c)^3+……\\&= a_1\end{aligned}

Apply the same process twice in a row, so we’ll have the expressions for $f^{\prime\prime}(x)$, $f^{\prime\prime \prime}(x)$, $f^{\prime\prime}(c)$,and $f^{\prime\prime \prime}(c)$:

\begin{aligned}\boldsymbol{ f^{\prime\prime}(x)}\\ \boldsymbol{ f^{\prime\prime}(c)}  \end{aligned}

\begin{aligned}f^{\prime\prime}(x) &=  2a_2 + 2\cdot 3a_3(x – c) + 3\cdot 4a_4(x – c)^2+ …, \phantom{xx} |x – a|<r\\f^{\prime\prime}(c)&= 2a_2 + 2\cdot 3a_3(c – c) + 3\cdot 4a_4(c – c)^2+ …\\&=2a_2\end{aligned}

\begin{aligned}\boldsymbol{ f^{\prime\prime\prime}(x)}\\ \boldsymbol{ f^{\prime\prime\prime}(c)}\end{aligned}

\begin{aligned}f^{\prime\prime\prime}(x)&=  2\cdot 3 a_3 + 3\cdot 4 a_4(x – c) +3\cdot 4 \cdot 5a_5(x – c)^2 …, \phantom{xx} |x – a|<r\\f^{\prime\prime\prime}(c)&= 2\cdot 3 a_3 + 3\cdot 4 a_4(c – c) +3\cdot 4 \cdot 5a_5(c – c)^2+ …\\&= 2 \cdot 3 a_3\\&=3! a_3\end{aligned}

When you continue to differentiate the resulting expression then substitute $x= c$ into the derivative, you can find the $n$th coefficient of $a_n$ as shown below.

\begin{aligned}f^{(n)}(a) &= 2 \cdot 3 \cdot 4 \cdot … \cdot na_n \\ &= n!a_n\end{aligned}

Isolate $a_n$ on the left-hand side of the equation to find the expression of $a_n$’s $n$th coefficient.

\begin{aligned}a_n&= \dfrac{f^{(n)}(a)}{n!}\end{aligned}

This expression of $a_n$ is actually valid even when $n = 0$ and that’s because $0! = 1$ and $f^{(0)} = f$.

 Now, let’s use this expression for $a_n$ back into our original power series, $f(x) = \sum_{n = 0}^{\infty} a_n(x- c)^n$ and you’ll end up with the Taylor series expansion.

TAYLOR SERIES

\begin{aligned}f(x) &= \sum_{n = 0}^{\infty} \dfrac{f^{(n)}(c)}{n!} (x – c)^n\\&= f(c) + \dfrac{f^{\prime}(c)}{1!}(x -c) + \dfrac{f^{\prime\prime}(c)}{2!}(x -c)^2 + \dfrac{f^{\prime\prime\prime}(c)}{3!}(x -c)^3 + …+\dfrac{f^{(n)}(c)}{n!}(x -c)^n + …\end{aligned}

The power series of $f(x)$ is what we call the Taylor series. When $c = 0$, we call the series the Maclaurin series. The Maclaurin series has extensive application, so we also allotted a separate discussion for this topic. For now, let’s explore the other important concepts we’ll need to better understand the Taylor series and its components.

How to do the Taylor series?

Finding the Taylor series expansion of a function can be as straightforward as differentiating the function consecutively and may be as complex as manipulating the expressions to find patterns. For now, let’s explore these two concepts before working on an application of the Taylor series.

Understanding the remainder from the Taylor series

Suppose that $f(x)$ is a function so that $f^{(n + 1)}(x)$ exists for all values of $x$ within an interval containing $c$, we can approximate the remainder (or accuracy error) using the Taylor’s formula shown below.

\begin{aligned}f(x) &= f(c) + \dfrac{f^{\prime}(x)}{1!}(x -c) + \dfrac{f^{\prime\prime}(c)}{2!}(x -c)^2 + \dfrac{f^{\prime\prime\prime}(c)}{3!}(x -c)^3 + …+\dfrac{f^{(n)}(c)}{n!}(x -c)^n + R_n(x)\\\\R_n(x) &= \dfrac{f^{(n + 1)}(c )}{(n + 1)!} (x -c)^{n + 1},\end{aligned}

where $R_n(x)$ represents the Taylor approximation’s error.

Understanding the Taylor’s theorem

Now, if $f(x)$ is a function with all its derivatives found within the interval, $(c- r, c + r)$. The Taylor series, $f(x) =  f(c) + \dfrac{f^{\prime}(x)}{1!}(x -c) + \dfrac{f^{\prime\prime}(c)}{2!}(x -c)^2 + \dfrac{f^{\prime\prime\prime}(c)}{3!}(x -c)^3 + …$, represents the function, $f(x)$, on the interval, $(c- r, c + r)$ only when it satisfies the condition shown below.

\begin{aligned}\lim_{n \rightarrow \infty} R_n(x) &= 0\\\end{aligned}

The function, $R_n(x)$, represents the remainder function,$R_n(x) =\dfrac{f^{(n + 1)}(c )}{(n + 1)!} (x -c)^{n + 1}$. We need to confirm accuracy of our Taylor approximation by showing that $\lim_{n \rightarrow \infty} R_n(x) = 0$ for the function we’re working on is indeed true.

Example of finding a function’s Taylor series expansion

Keep the following pointers in mind when finding a function’s Taylor series expansion:

  • Find the first four derivatives of $f(x)$.
  • Evaluate each of the first four derivatives of $f(x)$ at $x =c$. You may find the succeeding ones if you can’t observe any patterns just yet.
  • Use the pattern you’ve observed to find an expression for $f^{(n)}(c)$.

Now that we have covered all the concepts that we need to approximate a function’s Taylor series, let’s work on finding the Taylor series of $f(x) = \dfrac{1}{x}$ and centered at $x = -1$. We begin by $f(x)$ at $x = -1$. Differentiate $f(x)$ four times in a row to find the expressions of $f^{\prime}(x)$, $f^{\prime\prime }(x)$, $f^{\prime\prime \prime }(x)$, and $f^{(4)}(x)$ and evaluate the resulting expressions at $x = -1.

\begin{aligned}\boldsymbol{f^{(n)}(x)}\end{aligned}

\begin{aligned}\boldsymbol{f^{(n)}(-1)}\end{aligned}

\begin{aligned}f(x) &= \dfrac{1}{x}\\&= x^{-1}\end{aligned}

\begin{aligned}f(-1) &= -1\end{aligned}

\begin{aligned}f^{\prime}(x) &= -1x^{-1 -1}\\&= -x^{-2}\end{aligned}

\begin{aligned}f^{\prime}(-1) &= -1\end{aligned}

\begin{aligned}f^{\prime\prime }(x) &= -(-2)x^{-2 – 1}\\&= 2x^{-3}\end{aligned}

\begin{aligned}f^{\prime \prime }(-1) &= -2\end{aligned}

\begin{aligned}f^{\prime\prime\prime}(x) &= 2(-3)x^{-3 – 1}\\&= -6x^{-4}\end{aligned}

\begin{aligned}f^{\prime \prime \prime}(-1) &= -6\end{aligned}

\begin{aligned}f^{(4)}(x) &= -6(-4)x^{-4 – 1}\\&= 24x^{-5}\end{aligned}

\begin{aligned}f^{(4)}(-1) &= -24\end{aligned}

We simply used the power rule of derivatives, so in case you need a refresher, head over to this article. Now, let’s apply the Taylor series expansion formula and use the resulting expressions.

\begin{aligned} f(x) &= f(c) + \dfrac{f^{\prime}(c)}{1!}(x -c) + \dfrac{f^{\prime\prime}(c)}{2!}(x -c)^2 + \dfrac{f^{\prime\prime\prime}(c)}{3!}(x -c)^3 +\dfrac{f^{(4) }(c)}{4!}(x -c)^3+ …\\&=f(-1) + \dfrac{f^{\prime}(c)}{1!}(x +1) + \dfrac{f^{\prime\prime}(c)}{2!}(x + 1)^2 + \dfrac{f^{\prime\prime\prime}(c)}{3!}(x +1)^3 +\dfrac{f^{(4) }(c)}{4!}(x + 4)^4+ …\\&= -1 -\dfrac{1}{1!}(x+ 1) – \dfrac{2}{2!}(x + 1)^2 – \dfrac{6}{3!}(x + 1)^3- \dfrac{24}{4!}(x + 1)^4-…\\&= -1 – (x + 1) – (x + 1)^2 – (x+1)^3 – (x ) 1)^4…  \end{aligned}

Observe the expressions for the first four expressions of $f^{(n)}(x)$ and $f^{(n)}(-1)$ and let’s find an expression for $ f^{(n)}(-1)$ in terms of $n$:

\begin{aligned} f^{\prime}(-1) &= -1\\&= -(1!)\\ f^{\prime\prime}(-1) &= -2\\&=-(2!)\\ f^{\prime\prime\prime}(-1) &= -3\\&=-(3!)\\ f^{(4)}(-1) &= -4\\&=-(4!) \\\\f^{(n)}(-1) &= -(n!)\end{aligned}

Since $\f^{(n)}(-1) = -n!$, the $n$th term of the Taylor series is as shown below:

\begin{aligned}\dfrac{-n!}{n!}(x + 1)^n &= -1(x + 1)^n \end{aligned}

With the $n$th term, we can now express the Taylor series expansion of $\dfrac{1}{x}$ in sigma notation.

\begin{aligned} f(x) &= -1 – (x + 1) – (x + 1)^2 – (x+1)^3 – (x + 1)^4…-(x +1)^n -…\\&= \sum_{n = 0}^{\infty} –(x + 1)^n  \end{aligned}

Hence, we can express $f(x) = \dfrac{1}{x}$ as $f(x) = \sum_{n = 0}^{\infty} –(x + 1)^n$ in sigma notation. We can apply a similar process when finding the Taylor series of other known functions.

Common Taylor Series Expansions

\begin{aligned}f(x)&= \dfrac{1}{1 – x}\end{aligned}

\begin{aligned}f(x) &= 1 + x + x^2 +x^3 + x^4 + …\\&= \sum_{n = 0}^{\infty} x^n\\x &\in (-1, 1)\end{aligned}

\begin{aligned}f(x)&= e^x\end{aligned}

\begin{aligned}f(x) &= 1 + x + \dfrac{x^2}{2!}+ \dfrac{x^3}{3!} + \dfrac{x^4}{4!} + …\\&= \sum_{n = 0}^{\infty} \dfrac{x^n}{n!}\\x &\in (-1, 1)\end{aligned}

\begin{aligned}f(x)&= \ln(1 + x)\end{aligned}

\begin{aligned}f(x) &= x – \dfrac{x^2}{2!} + \dfrac{x^3}{3!} – \dfrac{x^4}{4!} +\dfrac{x^5}{5!}-…\\&= \sum_{n = 1}^{\infty} (-1)^{(n – 1)} \dfrac{x^n}{n}\\&= \sum_{n = 1}^{\infty} (-1)^{n +1} \dfrac{x^n}{n}\\x &\in (-1, 1]\end{aligned}

\begin{aligned}f(x)&= \tan^{-1} x\end{aligned}

\begin{aligned}f(x) &= x – \dfrac{x^3}{3!} + \dfrac{x^5}{5!} – \dfrac{x^7}{7!} +\dfrac{x^9}{9!}-…\\&= \sum_{n = 1}^{\infty} (-1)^{(n – 1)} \dfrac{x^{2n -1}}{2n -1}\\&= \sum_{n = 0}^{\infty} (-1)^{n} \dfrac{x^(2n + 1)}{2n + 1}\\x &\in [-1, 1]\end{aligned}

These are just three of the many functions that we can express in its Taylor series expansion. We’ve prepared more practice problems for you to work on so you can master the concepts and processes discussed in this article!

Example 1

Find the Taylor series of $f(x) = 4x^2 – 5x + 2$ about the point at $x = -2$.

Solution

Take the first four derivatives of $f(x)$ then evaluate each expressions at $x = -2$.

\begin{aligned}\boldsymbol{f^{(n)}(x)}\end{aligned}

\begin{aligned}\boldsymbol{f^{(n)}(-1)}\end{aligned}

\begin{aligned}f(x) &= 4x^2 – 5x + 2\end{aligned}

\begin{aligned}f(-2) &= 28\end{aligned}

\begin{aligned}f^{\prime}(x) &= (2)4x^{2 -1} – 5x^{1- 1} + 0\\&= 8x – 5\end{aligned}

\begin{aligned}f^{\prime}(-2) &= -21\end{aligned}

\begin{aligned}f^{\prime\prime}(x) &= 8x^{1 -1} = 0\\&= 8\end{aligned}

\begin{aligned}f^{\prime\prime} (-2) &= 8\end{aligned}

\begin{aligned}f^{\prime\prime\prime }(x) &= 0\end{aligned}

\begin{aligned}f^{\prime\prime\prime }(-2) &= 0\end{aligned}

From this, we can see that $f^{(n)}(x) = 0$ when $n \geq 3$, so this shortens our Taylor series up to the $n = 2$. Use the expressions from the table shown above to write the Taylor series of $f(x)$. We’ll include the Taylor series formula shown below,

\begin{aligned}f(x) &= f(c) + \dfrac{f^{\prime}(x)}{1!}(x -c) + \dfrac{f^{\prime\prime}(c)}{2!}(x -c)^2, \end{aligned}

 and stop at the term containing $f^{\prime \prime}(x)$ since the rest of the terms will be zero. Hence, we have the following expression for $f(x)$’s Taylor series expansion.

\begin{aligned}f(x) &= f(c) + \dfrac{f^{\prime}(c)}{1!}(x -c) + \dfrac{f^{\prime\prime}(c)}{2!}(x -c)^2 \\&= 28 – \dfrac{21}{1!}(x – -2) + \dfrac{8}{2!}(x – -2)^2\\&= 28 – 21(x + 2) + 4(x +2)^2 \end{aligned}

This means that the Taylor series of $f(x)$ is approximately $28 – 21(x + 2) + 4(x +2)^2$.

Example 2

Find the Taylor series of $f(x) = \dfrac{1}{x^2}$ about $x = 1$. Express your final answer in sigma notation.

Solution

As with the previous examples, let’s first find the series of derivatives for $f(x)$ and evaluate the resulting expressions at $x = 1$. We’ll summarize the calculations in the table shown below.

\begin{aligned}\boldsymbol{f^{(n)}(x)}\end{aligned}

\begin{aligned}\boldsymbol{f^{(n)}(1)}\end{aligned}

\begin{aligned}f(x) &= \dfrac{1}{x^2}\\&= x^{-2}\end{aligned}

\begin{aligned}f(1) &= 1\end{aligned}

\begin{aligned}f^{\prime}(x) &= -2x^{-2 -1}\\&= -2x^{-3}\end{aligned}

\begin{aligned}f^{\prime}(1) &= -2\end{aligned}

\begin{aligned}f^{\prime\prime }(x) &= -2(-3)x^{-3 – 1}\\&= 2(3)x^{-4}\end{aligned}

\begin{aligned}f^{\prime \prime }(1) &= 2(3)\\&= 6\end{aligned}

\begin{aligned}f^{\prime\prime\prime}(x) &= 2(3)(-4)x^{-4 – 1}\\&= -2(3)(4)x^{-5}\end{aligned}

\begin{aligned}f^{\prime \prime \prime}(1) &= -2(3)(4)\\&= -24\end{aligned}

\begin{aligned}f^{(4)}(x) &= -2(3)(4)(-5)x^{-5 – 1}\\&= 2(3)(4)(5)x^{-6}\end{aligned}

\begin{aligned}f^{(4)}(1) &= 2(3)(4)(5)\\&= 120\end{aligned}

\begin{aligned}&.\\&.\\&.\end{aligned}

\begin{aligned}&.\\&.\\&.\end{aligned}

\begin{aligned}f^{(n)}(x) &= (-1)^n (n+1) !x^{-n – 2}\end{aligned}

\begin{aligned}f^{(n)}(1) &= (-1)^n (n +1)! \end{aligned}

Now that we have at least the first four terms along with the expressions for $f^{(n)}(x)$ and $ f^{(n)}(1)$, we can now find $f(x)$’s Taylor series expansion.

\begin{aligned}f(x) &= f(c) + \dfrac{f^{\prime}(c)}{1!}(x -c) + \dfrac{f^{\prime\prime}(c)}{2!}(x -c)^2 + \dfrac{f^{\prime\prime\prime}(c)}{3!}(x -c)^3 + …+\dfrac{f^{(n)}(c)}{n!}(x -c)^n + …\\&= f(1) + \dfrac{f^{\prime}(1)}{1!}(x -1) + \dfrac{f^{\prime\prime}(1)}{2!}(x -1)^2 + \dfrac{f^{\prime\prime\prime}(1)}{3!}(x – 1)^3 + …+\dfrac{f^{(n)}(1)}{n!}(x – 1)^n + …\\&= 1 – \dfrac{2}{1!}(x -1)+ \dfrac{6}{2!}(x -1)^3 – \dfrac{24}{3!}(x -1)^4 + …+ (-1)^n \dfrac{(n + 1)!}{n!}(x -1)^n+ …\\&= 1 – 2(x -1)+ 3(x -1)^3 – 6(x -1)^4 + …+ (-1)^n (n + 1)(x -1)^n+ …\end{aligned}

Using the $n$th term of the Taylor series, we can now express the Taylor series in sigma notation as shown below.

\begin{aligned}f(x) &= \sum_{n = 0}^{\infty} (-1)^n (n + 1)(x -1)^n \end{aligned}

Hence, the Taylor series  of $f(x)$ in sigma notation is $ f(x) = \sum_{n = 0}^{\infty} (-1)^n (n + 1)(x -1)^n$.

Example 3

Find the Taylor series of $f(x) = xe^x$ about $x = 1$. Express your final answer in sigma notation.

Solution

As with the previous examples, let’s first find the series of derivatives for $f(x)$ and evaluate the resulting expressions at $x = 1$. We’ll summarize the calculations in the table shown below.

\begin{aligned}\boldsymbol{f^{(n)}(x)}\end{aligned}

\begin{aligned}\boldsymbol{f^{(n)}(1)}\end{aligned}

\begin{aligned}f(x) &= xe^x\end{aligned}

\begin{aligned}f(1) &= e\end{aligned}

\begin{aligned}f^{\prime}(x) &= \dfrac{d}{dx}xe^x\\ &= e^x + xe^x\end{aligned}

\begin{aligned}f^{\prime}(1) &= e + e \\&= 2e\end{aligned}

\begin{aligned}f^{\prime\prime }(x) &= 2e^x + xe^x \end{aligned}

\begin{aligned}f^{\prime \prime }(1) &= 2e + e\\&= 3e\end{aligned}

\begin{aligned}f^{\prime\prime \prime }(x) &=3e^x + xe^x \end{aligned}

\begin{aligned}f^{\prime \prime \prime }(1) &= 3e + e\\&= 4e\end{aligned}

\begin{aligned}f^{(4)}(x) &= 4e^x + xe^x\end{aligned}

\begin{aligned}f^{(4)}(1) &= 4e + e\\ &= 5e\end{aligned}

\begin{aligned}&.\\&.\\&.\end{aligned}

\begin{aligned}&.\\&.\\&.\end{aligned}

\begin{aligned}f^{(n)}(x) &= ne^x + xe^x\end{aligned}

\begin{aligned}f^{(n)}(1) &= ne + e\\ &= (n + 1)e \end{aligned}

Use these expressions to write the Taylor expansion of $f(x) = xe^x$ about $x =1$.

\begin{aligned}f(x) &= f(c) + \dfrac{f^{\prime}(c)}{1!}(x -c) + \dfrac{f^{\prime\prime}(c)}{2!}(x -c)^2 + \dfrac{f^{\prime\prime\prime}(c)}{3!}(x -c)^3 + …+\dfrac{f^{(n)}(c)}{n!}(x -c)^n + …\\&= f(1) + \dfrac{f^{\prime}(1)}{1!}(x -1) + \dfrac{f^{\prime\prime}(1)}{2!}(x -1)^2 + \dfrac{f^{\prime\prime\prime}(1)}{3!}(x – 1)^3 + …+\dfrac{f^{(n)}(1)}{n!}(x – 1)^n + …\\&= e +\dfrac{2e}{1!}(x – 1) + \dfrac{3e}{2!}(x – 1)^2 + \dfrac{4e}{3!} (x – 1)^3 + …+ \dfrac{n(e + 1)}{n!}(x – 1)^n + …\end{aligned}

Since the $n$th term of the series is $\dfrac{e(n + 1)}{n!}(x – 1)^n $, we can finalize the answer in sigma notation as $\sum_{n = 0}^{\infty}\dfrac{e(n + 1)}{n!}(x – 1)^n$.

Example 4

What is the third Taylor polynomial for the function, $f(x) = \tan^{-1} x$, and about $x = 1$?

Solution

The Taylor polynomial simply represents a polynomial with a degree of $n$ and a finite number of terms. The terms of $\boldsymbol{f(x)}$’s Taylor polynomial are the first $\boldsymbol{n}$th terms of $\boldsymbol{f(x)}$’s Taylor series.

This means that for this particular example, we need to find the terms of $f(x)$’s Taylor series from $n = 0$ to $n = 3$. Let’s differentiate $f(x)$ three times in a row and evaluate each expressions at $x =1$.

\begin{aligned}\boldsymbol{f^{(n)}(x)}\end{aligned}

\begin{aligned}\boldsymbol{f^{(n)}(1)}\end{aligned}

\begin{aligned}f(x) &= \tan^{-1}x\end{aligned}

\begin{aligned}f(1) &= \tan^{-1} 1\\ &=\dfrac{\pi}{4}\end{aligned}

\begin{aligned}f^{\prime}(x) &= \dfrac{d}{dx}\tan^{-1} x\\ &= \dfrac{1}{1 + x^2}\end{aligned}

\begin{aligned}f^{\prime}(1) &= \dfrac{1}{1 + 1^2}\\&= \dfrac{1}{2}\end{aligned}

\begin{aligned}f^{\prime\prime }(x) &= \dfrac{d}{dx}\dfrac{1}{1 +x^2}\\&= -2x(1 +x^2)^2\end{aligned}

\begin{aligned}f^{\prime \prime }(1) &= -2(1)(1 + 1^2)^2\\&= -\dfrac{1}{2}\end{aligned}

\begin{aligned}f^{\prime\prime \prime }(x) &= \dfrac{d}{dx}[-2x(1 +x^2)^2]\\&= -\dfrac{2x}{(1 +x^2)^2}+ \dfrac{8x^2}{(1 + x^2)^3} \end{aligned}

\begin{aligned}f^{\prime \prime \prime }(1) &= -\dfrac{2(1)}{(1 + 1^2)^2} + \dfrac{8(1)^2}{(1 + 1^2)^3}\\&= \dfrac{1}{2}\end{aligned}

Use the Taylor series formula and stop at the term when $n = 3$. Hence, we have the third Taylor polynomial, $P_3(x)$, of $f(x)$ as shown below.

\begin{aligned}P_3(x) &= f(c) + \dfrac{f^{\prime}(c)}{1!}(x -c) + \dfrac{f^{\prime\prime}(c)}{2!}(x -c)^2 + \dfrac{f^{\prime\prime\prime}(c)}{3!}(x -c)^3 \\&= f(1) + \dfrac{f^{\prime}(1)}{1!}(x -1) + \dfrac{f^{\prime\prime}(1)}{2!}(x -1)^2 + \dfrac{f^{\prime\prime\prime}(1)}{3!}(x – 1)^3 + \\&= \dfrac{\pi}{4} +\dfrac{\dfrac{1}{2}}{1!}(x – 1)- \dfrac{\dfrac{1}{2}}{2!}(x – 1)^2 + \dfrac{\dfrac{1}{2}}{3!} (x – 1)^3 \\&= \dfrac{\pi}{4} + \dfrac{1}{2}(x – 1) – \dfrac{1}{4}(x – 1)^2 + \dfrac{1}{12}(x -1)^3\end{aligned}

This means that the third Taylor polynomial of $f(x)$ about $x =1$ is equal to $P_3(x) =\dfrac{\pi}{4} + \dfrac{1}{2}(x – 1) – \dfrac{1}{4}(x – 1)^2 + \dfrac{1}{12}(x -1)^3$.

Practice Questions

1. Find the Taylor series of $f(x) = -6x^2 + 10x + 8$ about $x = -4$.

2. Find the Taylor series of $f(x) = x^3 – 4x^2 + 6x -1$ about $x = 2$.
3. Find the Taylor series of $f(x) = \dfrac{1}{x^3}$ about $x = 2$. Express your final answer in sigma notation.
4. Find the Taylor series of $f(x) = e^{2x}$ about $x = 2$. Express your final answer in sigma notation.
5. What is the fourth Taylor polynomial for the function, $f(x) = \ln x$, and about $x = 4$?

Answer Key

1. $f(x) = -128 + 58(x + 4) – 6(x + 4)^2$
2. $f(x) = 3 + 2(x – 2) + 2(x – 2)^2 + (x- 2)^3$
3. $\begin{aligned}f(x) &= \dfrac{1}{8} – \dfrac{3}{16}(x – 2) + \dfrac{3}{16} (x -2)^2 – \dfrac{5}{32}(x- 2)^3 + \dfrac{15}{128}(x – 2)^4 -…\\&= \sum_{n = 0}^{\infty} (-1)^n2^{-n-4}(n + 1) (n + 2) (x – 2)^n\end{aligned}$
4. $\begin{aligned}f(x) &= e^4 + 2e^4 (x – 2) + 2e^4 (x – 2)^2 + \dfrac{4}{3}e^4 (x – 2)^3 + …\\&= \sum_{n = 0}^{\infty} (x – 2)^n\end{aligned}$
5. $P_4(x) = \ln 4 + \dfrac{1}{4}(x – 4) – \dfrac{1}{32}(x – 4)^2 + \dfrac{1}{192}(x – 4)^3 – \dfrac{1}{1024}(x – 4)^3$