Skip to main content
Logo image

Coordinated Calculus

Section 7.10 Applications of Taylor Series

We have now built several examples of Taylor series using the definition, and we have seen in the process that nearly all of the work needed to find a Taylor series is done in finding the coefficients. This can be done for any function by taking derivatives; however, some functions have very complicated derivatives, and the process of finding these derivatives can take a serious amount of time and effort.
Recall the Taylor series expansions about \(x=0\) for the following important functions:

Important Taylor Series and their Intervals of Convergence.

\begin{align*} \sin (x) \amp= x - \frac{x^3}{3!} + \frac{x^5}{5!} - \frac{x^7}{7!} + \cdots =\sum_{k=0}^{\infty} \frac{(-1)^k x^{2k+1}}{(2k+1)!}\amp\text{for}\amp-\infty \lt x \lt \infty \\ \cos (x) \amp= 1 - \frac{x^2}{2!} + \frac{x^4}{4!} - \frac{x^6}{6!} + \cdots =\sum_{k=0}^{\infty} \frac{(-1)^k x^{2k}}{(2k)!}\amp\text{for}\amp-\infty \lt x \lt \infty \\ e^x \amp= 1 + x + \frac{x^2}{2!} + \frac{x^3}{3!} + \frac{x^4}{4!} + \cdots =\sum_{k=0}^{\infty} \frac{x^{k}}{k!}\amp\text{for}\amp-\infty \lt x \lt \infty \\ \frac{1}{1-x} \amp= 1 + x + x^2 + x^3 + x^4 + \cdots =\sum_{k=0}^{\infty} x^k\amp\text{for}\amp-1 \lt x \lt 1 \\ (1+x)^{a} \amp = 1+ ax + \frac{a(a-1)}{2!}x^{2} + \cdots = \sum_{k=0}^{\infty} \binom{a}{k}x^{k} \amp\text{for}\amp -1 \lt x \lt 1 \\ \amp \amp\text{ and }\amp a \in \mathbb{R} \end{align*}
Note: for a real number \(a \) and integer \(k \geq 1 \text{,}\) \(\binom{a}{k}=\frac{a(a-1)\cdots(a-k+1)}{k!} \text{.}\) We take \(\binom{a}{0}=1 \) for all \(a \in \mathbb{R} \text{.}\)
In many situations, we can use the Taylor series that we already know to find Taylor series for more complicated functions, as illustrated in the next example.

Example 7.66.

The goal of this problem is to find the Taylor series centered at 0 for \(f(x)=\sin(x^2)\text{.}\)
  1. Find the first two derivatives of \(f(x)\text{.}\) Explain why each time you take another derivative, the result has more terms than the previous derivative. For example, the second derivative has more terms than the first derivative.
  2. Take the Taylor series for \(\sin y \) about \(y=0\) and then substitute \(y=x^2\text{.}\) Simplify this and you have the Taylor series for \(\sin(x^2)\text{.}\)
  3. Verify that the derivatives you found in part (a) match the Taylor series from part (b).
  4. What is the radius of convergence of the Taylor series for \(\sin(x^2)\text{?}\)
Solution.
  1. \begin{align*} f'(x)\amp= 2x\cos(x^2) \\ f''(x)\amp=2\cos(x^2) - 4x^2\sin(x^2) \end{align*}
    Notice that each time we take a further derivative, we will use at least one of the product rule or the chain rule on each existing term. Thus, there will always be more terms than the previous derivative had.
  2. Since
    \begin{equation*} \sin(y) = y - \frac{y^3}{3!} + \frac{y^5}{5!} - \frac{y^7}{7!} + \frac{y^9}{9!} + \cdots\text{,} \end{equation*}
    substituting \(y=x^2 \) yields
    \begin{align*} \sin(x^2)\amp= x^2 - \frac{(x^2)^3}{3!} + \frac{(x^2)^5}{5!} - \frac{(x^2)^7}{7!} + \frac{(x^2)^9}{9!} + \cdots \\ \amp= x^2 - \frac{x^6}{3!} + \frac{x^{10}}{5!} - \frac{x^{14}}{7!} + \frac{x^{18}}{9!} + \cdots \end{align*}
  3. The constant term of the series should be \(f(0)=\sin(0)=0.\) The coefficient of the \(x\) term of the series should be \(f'(0)=0 \cdot \cos(0)=0.\) The coefficient of the \(x^2\) term of the series should be \(\frac{f''(0)}{2} = \frac{2\cos(0)- 4(0)\sin(0)}{2}=\frac{2}{2}=1.\) All match!
  4. Since the Taylor series for \(\sin(y)\) has radius of convergence \(R=\infty\text{,}\) the Taylor series for \(\sin(x^2)\) also has radius of convergence \(R=\infty\text{.}\)
We can also use Taylor series to obtain approximations of function values, and put functions in order. We will develop these methods in this section.

Subsection 7.10.1 New Taylor Series from Old

There are several ways we can obtain Taylor series expansions for functions using known Taylor series expansions for different related functions. This includes the method of substitution, multiplying Taylor series, and differentiating and integrating Taylor series. The following examples will showcase these methods.

Example 7.67.

Our goal in this example is to find a power series expansion for \(f(x) = \frac{1}{1+x^2}\) centered at \(x=0\text{.}\)
While we could use the methods of Section 7.9 and differentiate \(f(x) = \frac{1}{1+x^2}\) several times to look for patterns and find the Taylor series for \(f(x)\text{,}\) we seek an alternate approach because of how complicated the derivatives of \(f(x)\) quickly become.
  1. What is the Taylor series expansion for \(g(x) = \frac{1}{1-x}\text{?}\) What is the interval of convergence of this series?
  2. How is \(g(-x^2)\) related to \(f(x)\text{?}\) Explain, and then substitute \(-x^2\) for \(x\) in the power series expansion for \(g(x)\text{.}\) Given the relationship between \(g(-x^2)\) and \(f(x)\text{,}\) how is the resulting series related to \(f(x)\text{?}\)
  3. For which values of \(x\) will this power series expansion for \(f(x)\) be valid? Why?
Answer.
  1. \(\frac{1}{1-x} = \sum_{k=0}^{\infty} x^k \) for \(-1 \lt x \lt 1\text{.}\)
  2. \(f(x) = g(-x^2) = \sum_{k=0}^{\infty} (-1)^k x^{2k}\text{.}\)
  3. \(-1 \lt x \lt 1\text{.}\)
Solution.
  1. Recall that
    \begin{equation*} g(x) = \frac{1}{1-x} = \sum_{k=0}^{\infty} x^k \end{equation*}
    for \(-1 \lt x \lt 1\text{.}\)
  2. Substituting \(-x^2\) for \(x\) in the power series expansion for \(g(x)\) gives
    \begin{align*} f(x) \amp = g(-x^2)\\ \amp = \frac{1}{1-(-x^2)}\\ \amp = \sum_{k=0}^{\infty} \left(-x^2\right)^k\\ \amp = \sum_{k=0}^{\infty} (-1)^k x^{2k}\text{.} \end{align*}
  3. This power series expansion for \(f(x)\) will be valid as long as \(-1 \lt (-x)^2 \lt 1\) or for \(-1 \lt x \lt 1\text{.}\)

Example 7.68.

Find the Taylor series expansion of \(f(t) = t \sin(t^3) - t^4\) about \(t=0\text{.}\)
Answer.
\begin{align*} t\sin(t^3)-t^4 \amp= -\frac{t^{10}}{3!} + \frac{t^{16}}{5!} - \frac{t^{22}}{7!} + \cdots \\ \amp = \sum_{k=1}^\infty (-1)^k \frac{t^{6k+4}}{(2k+1)!} \end{align*}
Solution.
We’ll begin with the Taylor series for \(\sin(x)\) about \(x=0\text{,}\) and build the desired series from there.
\begin{equation*} \sin(x)=x-\frac{x^3}{3!}+\frac{x^5}{5!}-\frac{x^7}{7!} + \cdots \end{equation*}
Next, substitute \(t^3\) in for \(x\text{:}\)
\begin{align*} \sin(t^3) \amp= t^3 - \frac{(t^3)^3}{3!} + \frac{(t^3)^5}{5!} - \frac{(t^3)^7}{7!} + \cdots \\ \amp = t^3 - \frac{t^9}{3!} + \frac{t^{15}}{5!} - \frac{t^{21}}{7!} + \cdots \end{align*}
Now multiply the entire series by \(t\text{:}\)
\begin{equation*} t \sin (t^3) = t^4 - \frac{t^{10}}{3!} + \frac{t^{16}}{5!} - \frac{t^{22}}{7!} + \cdots \end{equation*}
And finally, subtract t^4:
\begin{equation*} t\sin(t^3)-t^4 = -\frac{t^{10}}{3!} + \frac{t^{16}}{5!} - \frac{t^{22}}{7!} + \cdots \end{equation*}
Now that we’ve got the final series, we can write this with \(\Sigma\)-notation, as well:
\begin{equation*} t\sin(t^3)-t^4 = \sum_{k=1}^\infty (-1)^{k}\frac{t^{3(2k+1)+1}}{(2k+1)!} = \sum_{k=1}^\infty (-1)^k \frac{t^{6k+4}}{(2k+1)!} \end{equation*}

Example 7.69.

Find the Taylor series expansion of \(f(t)=\frac{1}{\sqrt{1+2t}} \) about \(0 \) and determine its interval of convergence.
Answer.
\begin{equation*} (1+2t)^{-\frac{1}{2}}=1-t+\frac{3\cdot 1}{2!}t^{2}-\frac{5 \cdot 3 \cdot 1}{3!}t^{3}+\frac{7 \cdot 5 \cdots 1}{4!}t^{4}-\cdots \end{equation*}
with interval of convergence \((-1/2, 1/2) \text{.}\)
Solution.
We write \(f(t)=\frac{1}{\sqrt{1+2t}} = (1+2t)^{-\frac{1}{2}}.\) Note that the Taylor series about \(0 \) for the function \((1+x)^{-\frac{1}{2}} \) is given by
\begin{equation*} (1+x)^{-\frac{1}{2}}=1+\left(-\frac{1}{2}\right)x+\frac{(-\frac{1}{2})(-\frac{3}{2})}{2!}x^{2}+\frac{(-\frac{1}{2})(-\frac{3}{2})(-\frac{5}{2})}{3!}x^{3}+\cdots \end{equation*}
This series coverges for \(x \) in the interval \((-1, 1) \text{.}\) Substituting \(2t \) for \(x \) yields
\begin{equation*} (1+2t)^{-\frac{1}{2}}=1+\left(-\frac{1}{2}\right)(2t)+\frac{(-\frac{1}{2})(-\frac{3}{2})}{2!}(2t)^{2}+\frac{(-\frac{1}{2})(-\frac{3}{2})(-\frac{5}{2})}{3!}(2t)^{3}+\cdots \end{equation*}
which simplifies to
\begin{equation*} (1+2t)^{-\frac{1}{2}}=1-t+\frac{3\cdot 1}{2!}t^{2}-\frac{5 \cdot 3 \cdot 1}{3!}t^{3}+\frac{7 \cdot 5 \cdots 1}{4!}t^{4}-\cdots \end{equation*}
For the series to coverge, we need \(2t \) to fall in the interval \((-1, 1) \text{,}\) which means the interval of convergence is \((-1/2, 1/2) \text{.}\)

Example 7.70.

Let \(f\) be the function given by the Taylor series expansion
\begin{equation*} f(x) = \sum_{k=0}^{\infty} (-1)^k \frac{x^{2k}}{(2k)!}\text{.} \end{equation*}
  1. Assume that we can differentiate a power series term by term, just like we can differentiate a (finite) polynomial. Use the fact that
    \begin{equation*} f(x) = 1 - \frac{x^2}{2!} + \frac{x^4}{4!} - \frac{x^6}{6!} + \cdots + (-1)^k \frac{x^{2k}}{(2k)!} + \cdots \end{equation*}
    to find a power series expansion for \(f'(x)\text{.}\)
  2. Observe that \(f(x)\) and \(f'(x)\) have familiar Taylor series. What familiar functions are these? What known relationship does our work demonstrate?
  3. What is the series expansion for \(f''(x)\text{?}\) What familiar function is \(f''(x)\text{?}\)
Answer.
  1. \(f'(x) = - x + \frac{x^3}{3!} - \frac{x^5}{5!} + \cdots + (-1)^k \frac{x^{k-1}}{(k-1)!} + \cdots \text{.}\)
  2. \(\frac{d}{dx} \cos(x) = -\sin(x) \text{.}\)
  3. \(f''(x) = - 1 + \frac{x^2}{2!} - \frac{x^4}{4!} + \cdots \text{.}\)
Solution.
  1. Note that
    \begin{equation*} f'(x) = - x + \frac{x^3}{3!} - \frac{x^5}{5!} + \cdots + (-1)^k \frac{x^{k-1}}{(k-1)!} + \cdots\text{.} \end{equation*}
  2. We recognize \(f(x)\) as \(\cos(x)\) and \(f'(x)\) as \(-\sin(x)\text{.}\) This gives the known differentiation formula
    \begin{equation*} \frac{d}{dx} \cos(x) = -\sin(x)\text{.} \end{equation*}
  3. We see that
    \begin{equation*} f''(x) = - 1 + \frac{x^2}{2!} - \frac{x^4}{4!} + \cdots\text{,} \end{equation*}
    which is the series expansion for \(-\cos(x)\) as expected.
Our work in Example 7.70 holds more generally. The corresponding theorem, which we will not prove, states that we can differentiate a power series for a function \(f\) term by term and obtain the series expansion for \(f'\text{,}\) and similarly we can integrate a series expansion for a function \(f\) term by term and obtain the series expansion for \(\int f(x) \ dx\text{.}\) For both, the radius of convergence of the resulting series is the same as the original, though it is possible that the convergence status of the various series may differ at the endpoints. The formal statement of the Power Series Differentiation and Integration Theorem follows.

Power Series Differentiation and Integration Theorem.

Suppose \(f(x)\) has a power series expansion
\begin{equation*} f(x) = \sum_{k=0}^{\infty} c_kx^k \end{equation*}
and that the series converges absolutely to \(f(x)\) on the interval \(-r \lt x \lt r\text{.}\) Then, the power series \(\sum_{k=1}^{\infty} kc_kx^{k-1}\) obtained by differentiating the power series for \(f(x)\) term by term converges absolutely to \(f'(x)\) on the interval \(-r \lt x \lt r\text{.}\) That is,
\begin{equation*} f'(x) = \sum_{k=1}^{\infty} kc_kx^{k-1}, \ \text{for} \ |x| \lt r\text{.} \end{equation*}
Similarly, the power series \(\sum_{k=0}^{\infty} c_k\frac{x^{k+1}}{k+1}\) obtained by integrating the power series for \(f(x)\) term by term converges absolutely on the interval \(-r \lt x \lt r\text{,}\) and
\begin{equation*} \int f(x) \ dx = \sum_{k=0}^{\infty} c_k\frac{x^{k+1}}{k+1} + C, \ \text{for} \ |x| \lt r\text{.} \end{equation*}
This theorem validates the steps we took in Example 7.70. It tells us that we can differentiate and integrate term by term on the interior of the interval of convergence, but it does not tell us what happens at the endpoints of this interval. We always need to check what happens at the endpoints separately. More importantly, we can use use the approach of differentiating or integrating a series term by term to find new series.

Example 7.71.

We can use Taylor series to approximate definite integrals to which known techniques of integration do not apply. We will illustrate this in this exercise with the definite integral \(\int_0^1 \sin(x^2) \,dx\text{.}\)
  1. Integrate the Taylor series for \(\sin(x^2)\) term by term to obtain a power series expansion for \(\int \sin(x^2)\,dx\text{.}\)
  2. Use the result from part (a) to explain how to evaluate \(\int_0^1 \sin(x^2) \ dx\text{.}\) Determine the number of terms you will need to approximate \(\int_0^1 \sin(x^2) \,dx\) to 3 decimal places.
Answer.
  1. \(\int \sin(x^2) \, dx = \sum_{k=0}^{\infty} (-1)^k\frac{x^{4k+3}}{(2k+1)!(4k+3)} + C \text{.}\)
  2. \(\int_0^1 \sin(x^2) \, dx = \sum_{k=0}^{\infty} (-1)^k\frac{1}{(2k+1)!(4k+3)} \text{.}\) Use \(n = 1\) to generate the desired estimate.
Solution.
  1. Substituting \(x^2\) for \(x\) in the Taylor series expansion for \(\sin(x) \) gives us
    \begin{equation*} \sin(x^2) = \sum_{k=0}^{\infty} (-1)^k\frac{x^{2(2k+1)}}{(2k+1)!}\text{,} \end{equation*}
    as the Taylor series for \(\sin(x^2)\) centered at \(x=0\text{.}\) We can integrate a Taylor series term by term on its interval of convergence, so
    \begin{align*} \int \sin(x^2) \, dx &= \int \sum_{k=0}^{\infty} (-1)^k\frac{x^{2(2k+1)}}{(2k+1)!} \, dx\\ &= \sum_{k=0}^{\infty} \int (-1)^k\frac{x^{2(2k+1)}}{(2k+1)!} \, dx\\ &= \sum_{k=0}^{\infty} \int (-1)^k\frac{x^{4k+2}}{(2k+1)!} \, dx\\ &= \sum_{k=0}^{\infty} (-1)^k\frac{x^{4k+3}}{(2k+1)!(4k+3)} + C\text{.} \end{align*}
  2. To evaluate \(\int_0^1 \sin(x^2) \ dx\text{,}\) we evaluate the antiderivative \(\sum_{k=0}^{\infty} (-1)^k\frac{x^{4k+3}}{(2k+1)!(4k+2)}\) at \(1\) and \(0\) and subtract. So
    \begin{align*} \int_0^1 \sin(x^2) \, dx &= \left. \sum_{k=0}^{\infty} (-1)^k\frac{x^{4k+3}}{(2k+1)!(4k+3)}\right|_{0}^{1}\\ &= \sum_{k=0}^{\infty} (-1)^k\frac{1}{(2k+1)!(4k+3)}\text{.} \end{align*}
    The resulting series is an alternating series, so we can find a value of \(n\) that makes the \(n\)th partial sum of the series approximate the sum of the series to \(3\) decimal places by determining a value of \(n\) such that
    \begin{equation*} a_{n+1} = \frac{1}{(2(n+1)+1)!(4(n+1)+3)} \lt 0.001\text{.} \end{equation*}
    This is not an inequality that we can solve algebraically, so we use trial and error. Doing so shows that \(n = 1\) will work.

Example 7.72.

Find a power series expansion for \(\ln(1+x)\) centered at \(x=0\) and determine its interval of convergence.
Hint.
Use the Taylor series expansion for \(\frac{1}{1+x}\) centered at \(x=0\text{.}\)
Answer.
\(\ln(1+x) = \sum_{k=0}^{\infty} (-1)^k \frac{x^{k+1}}{k+1} \text{.}\) for \(-1 \lt x \lt 1\text{.}\)
Solution.
Using the Taylor series
\begin{equation*} \frac{1}{1-x} = \sum_{k=0}^{\infty} x^k \end{equation*}
for \(-1 \lt x \lt 1\) we have that
\begin{equation*} \frac{1}{1+x} = \sum_{k=0}^{\infty} (-1)^k x^k\text{.} \end{equation*}
Integrating the left and right sides of this last equation gives us
\begin{equation*} \ln(1+x) = \sum_{k=0}^{\infty} (-1)^k \frac{x^{k+1}}{k+1} + C \end{equation*}
for \(-1 \lt x \lt 1\text{.}\) Since \(\ln(1) = 0\) we have that
\begin{equation*} 0 = \sum_{k=0}^{\infty} (-1)^k \frac{0^{k+1}}{k+1} + C \end{equation*}
and so \(C = 0\text{.}\) We conclude that
\begin{equation*} \ln(1+x) = \sum_{k=0}^{\infty} (-1)^k \frac{x^{k+1}}{k+1}\text{.} \end{equation*}
for \(-1 \lt x \lt 1\text{.}\)

Subsection 7.10.2 Using Taylor Series to Approximate Numbers and Function Values

There are many applications of Taylor series, but most are based on the idea of using Taylor series to approximate function values. For example, say we have a function \(f(x)\) and we knew the Taylor series for \(f(x)\) and we really need to get an approximate value for \(f(1)\text{.}\) Assuming that the Taylor series converges for \(x=1\text{,}\) we can then substitute \(x=1\) into the series, and use the first few terms of the series to approximate the number. Of course, using more terms of the series gives a better approximation. The examples below walk through how this is done in more details, and highlights some of the different ways in which it can be useful.

Example 7.73.

  1. Find a series expansion centered at \(x = 0\) for \(\arctan(x)\text{,}\) as well as its interval of convergence.
  2. Recall that \(\arctan(1)=\frac{\pi}{4}\text{,}\) and therefore \(4\arctan(1)=\pi\text{.}\) Use the first \(n\) terms of the Taylor series for \(\arctan(x)\) with \(n=1,2,3,4,5\) to get approximate values for \(\pi\text{,}\) and fill in the table below.
    Table 7.74. Approximate Values for \(\pi\)
    \(n\) Approximate Value
    1
    2
    3
    4
    5
Solution.
  1. While we could differentiate \(\arctan(x)\) repeatedly and look for patterns in the derivative values at \(x = 0\) in an attempt to find the Maclaurin series for \(\arctan(x)\) from the definition, it turns out to be far easier to use a known series in an insightful way. By thinking of the right-hand side as a geometric series, we can see that
    \begin{equation*} \frac{1}{1+x^2} = \sum_{k=0}^{\infty} (-1)^k x^{2k} \end{equation*}
    for \(-1 \lt x \lt 1\text{.}\) Recall that
    \begin{equation*} \frac{d}{dx} \left[ \arctan(x) \right] = \frac{1}{1+x^2}\text{,} \end{equation*}
    and therefore
    \begin{equation*} \int \frac{1}{1+x^2} \ dx = \arctan(x) + C\text{.} \end{equation*}
    It follows that we can integrate the series for \(\frac{1}{1+x^2}\) term by term to obtain the power series expansion for \(\arctan(x)\text{.}\) Doing so, we find that
    \begin{align*} \arctan(x) \amp = \int \left( \sum_{k=0}^{\infty} (-1)^kx^{2k} \right) \ dx\\ \amp = \sum_{k=0}^{\infty} \left( \int (-1)^k x^{2k} \ dx \right)\\ \amp = \left( \sum_{k=0}^{\infty} (-1)^k\frac{x^{2k+1}}{2k+1} \right) + C\text{.} \end{align*}
    The Power Series Differentiation and Integration Theorem tells us that this equality is valid for at least \(-1 \lt x \lt 1\text{.}\)
    To find the value of the constant \(C\text{,}\) we can use the fact that \(\arctan(0) = 0\text{.}\) So
    \begin{equation*} 0 = \arctan(0) = \left( \sum_{k=0}^{\infty} (-1)^k\frac{0^{2k+1}}{2k+1} \right) + C = C\text{,} \end{equation*}
    and we must have \(C = 0\text{.}\) Therefore,
    \begin{equation} \arctan(x) = \sum_{k=0}^{\infty} (-1)^k\frac{x^{2k+1}}{2k+1}\tag{7.26} \end{equation}
    for at least \(-1 \lt x \lt 1\text{.}\)
    It is a straightforward exercise to check that the power series
    \begin{equation*} \sum_{k=0}^{\infty} (-1)^k\frac{x^{2k+1}}{2k+1} \end{equation*}
    converges both when \(x = -1\) and when \(x = 1\text{;}\) in each case, we have an alternating series with terms \(\frac{1}{2k+1}\) that decrease to \(0\text{,}\) and thus the interval of convergence for the series expansion for \(\arctan(x)\) in Equation (7.26) is \(-1 \le x \le 1\text{.}\)
  2. To make the computations a little easier, let’s write out the first five terms of the Taylor series explicitly:
    \begin{equation*} \arctan(x)= x-\frac{x^3}{3}+\frac{x^5}{5}-\frac{x^7}{7}+\frac{x^9}{9} - \cdots \end{equation*}
    With \(x=1\text{,}\) we have
    \begin{equation*} \arctan(1)=1-\frac{1}{3}+\frac{1}{5}-\frac{1}{7}+\frac{1}{9}-\cdots \end{equation*}
    So, if we use just the first term to approximate, we would have
    \begin{equation*} \pi = 4\arctan(1) \approx 4(1)=4, \end{equation*}
    giving the table entry for \(n=1\text{.}\) For \(n=2\text{,}\) we use the first two terms:
    \begin{equation*} \pi = 4 \arctan(1) \approx 4\left(1-\frac{1}{3}\right)=4\left(\frac{2}{3}\right) \approx 2.6667. \end{equation*}
    Continuing, for \(n=3\text{:}\)
    \begin{equation*} \pi \approx 4\left(1-\frac{1}{3}+\frac{1}{5}\right) = 4 \left(\frac{13}{15}\right)\approx 3.4667. \end{equation*}
    The completed table is as follows.
    Table 7.75. Approximate Values for \(\pi\)
    \(n\) Approximate Value
    1 4
    2 2.6667
    3 3.4667
    4 2.8952
    5 3.3397
    Since we know that \(\pi\) is about 3.14159, we haven’t gotten extremely accurate yet, but we are getting there, and continuing to use more terms would yield more accuracy.

Example 7.76.

  1. For values near 0, put the following functions in order from smallest to largest:
    • \(\displaystyle \sin(y^2) \)
    • \(\displaystyle 1-\cos(y) \)
    • \(\displaystyle \ln(1+y^2) \)
  2. Use the first four terms of the Taylor series for \(\sin(y^2)\) to estimate the value of \(\sin(1)\text{.}\)
Answer.
  1. \(\displaystyle 1-\cos(y) \leq \ln(1+y^2)\leq \sin(y^2) \)
  2. About 0.84145.
Solution.
  1. We’ll need to build all three Taylor series, and then compare them. There’s a brief outline of each construction below.
    For \(\sin(y^2)\text{:}\)
    \begin{align*} \sin(x)\amp=x-\frac{x^3}{3!}+\frac{x^5}{5!}-\frac{x^7}{7!} + \frac{x^9}{9!} - \cdots \\ \sin(y^2) \amp=y^2 - \frac{y^6}{3!} +\frac{x^{10}}{5!} - \frac{x^{14}}{7!} + \frac{x^{18}}{9!} \end{align*}
    For \(1-\cos(y)\text{:}\)
    \begin{align*} \cos(y)\amp=1-\frac{y^2}{2!}+\frac{y^4}{4!}-\frac{y^6}{6!} +\frac{y^8}{8!} - \cdots \\ 1-\cos(y) \amp= \frac{y^2}{2!} - \frac{y^4}{4!} + \frac{y^6}{6!} - \frac{y^8}{8!} + \cdots \end{align*}
    For \(\ln(1+y^2)\)
    \begin{align*} \ln(1+t) \amp= t-\frac{t^2}{2}+\frac{t^3}{3}-\frac{t^4}{4} + \frac{t^5}{5} - \cdots \\ \ln(1+y^2)\amp= y^2 - \frac{y^4}{2}+\frac{y^6}{3}-\frac{y^8}{4} + \frac{y^{10}}{5} - \cdots \end{align*}
    Now, let’s use, say, the degree six taylor polynomials as an estimate, and compare the three series. For values of \(y\) near 0, we have
    \begin{align*} \sin(y^2) \amp\approx y^2 - \frac{y^6}{3!} \\ 1-\cos(y) \amp\approx \frac{y^2}{2!} - \frac{y^4}{4!} + \frac{y^6}{6!}\\ \ln(1+y^2) \amp\approx y^2 - \frac{y^4}{2} + \frac{y^6}{3} \end{align*}
    We can compare term-by-term and decide which is smaller, or we can plug in a value near 0 to all three approximations; say, \(y=0.5\)
    \begin{align*} \sin((0.5)^2) \amp \approx (0.5)^2 - \frac{(0.5)^6}{3!} \approx 0.2474 \\ 1-\cos(0.5) \amp\approx \frac{(0.5)^2}{2!} - \frac{(0.5)^4}{4!} + \frac{(0.5)^6}{6!} \approx 0.1224\\ \ln(1+(0.5)^2) \amp\approx (0.5)^2 - \frac{(0.5)^4}{2} + \frac{(0.5)^6}{3} \approx 0.2234 \end{align*}
    Thus, the order is \(1-\cos(y) \leq \ln(1+y^2)\leq \sin(y^2) \)
  2. We’ll plug in \(y=1\) to the Taylor series for \(sin(y^2)\text{:}\)
    \begin{equation*} \sin(1) \approx 1^2 - \frac{1^6}{3!} + \frac{1^{10}}{5!} - \frac{1^{14}}{7!} \approx 0.84145 \end{equation*}

Example 7.77.

Consider the series \(1 - \frac{2^2}{2!} + \frac{2^4}{4!} - \frac{2^6}{6!} + \cdots \text{.}\) This is the Taylor series for some function centered at \(0 \) evaluated at some value \(x = a \text{.}\) What is the function \(f(x) \text{?}\) What is the sum of the series?
Answer.
The function is \(f(x)=\cos(x)\) and the sum of the series is \(\cos(2)\text{.}\)
Solution.
This series looks a lot like
\begin{equation*} 1 - \frac{x^2}{2!} + \frac{x^4}{4!} - \frac{x^6}{6!} + \cdots \end{equation*}
where \(x=2\) has been plugged in. We can recognize that this is the Taylor series for \(\cos(x)\) centered at 0, and since it converges for all real numbers \(x\text{,}\) the sum of the series must be \(\cos(2)\text{.}\)

Subsection 7.10.3 Using Taylor Series to Evaluate Limits

One big takeaway from our study of Taylor series is that they behave just like polynomials. For instance, differentiation and integration of Taylor series can be done term-by-term. In the same spirit, we can apply our knowledge about limits of polynomials to compute limits involving complicated functions by replacing them with their Taylor series. Here are some examples:

Example 7.78.

Evaluate the following limits by first finding a Taylor series expansion of each function, and then evaluating the limit of the series term-by-term.
  1. \(\displaystyle \lim_{x \to 0} \frac{\sin(x)}{x} \)
  2. \(\displaystyle \lim_{x \to 0} \frac{1-\cos(x^{2})}{x^{4}} \)
  3. \(\displaystyle \lim_{x \to 0} \frac{\ln(x^{6}+1)}{5x^{6}} \)
Answer.
  1. \(\displaystyle \lim_{x \to 0} \frac{\sin(x)}{x} = 1 \)
  2. \(\displaystyle \lim_{x \to 0} \frac{1-\cos(x^{2})}{x^{4}} = \frac{1}{2}\)
  3. \(\displaystyle \lim_{x \to 0} \frac{\ln(x^{6}+1)}{5x^{6}} = \frac{1}{5}\)
Solution.
  1. The Taylor series for \(\sin(x) \) about \(0 \) is \(x-\frac{x^{3}}{3!}+\frac{x^{5}}{5!}-\cdots \text{.}\) Therefore,
    \begin{align*} \lim_{x \to 0}\frac{\sin(x)}{x}=\amp \lim_{x \to 0}\frac{x-\frac{x^{3}}{3!}+\frac{x^{5}}{5!}-\cdots}{x} \\ =\amp \lim_{x \to 0}1-\frac{x^{2}}{3!}+\frac{x^{4}}{5!}-\cdots \\ =\amp 1 \end{align*}
  2. The Taylor series for \(\cos(x) \) about \(0 \) is \(1-\frac{x^{2}}{2!}+\frac{x^{4}}{4!}-\cdots \text{.}\) By composing with \(x^{2}\) and subtracting the resulting series from \(1 \text{,}\) we obtain
    \begin{equation*} 1-\cos(x^{2}) = 1-(1-\frac{x^{4}}{2!}+\frac{x^{8}}{4!}-\cdots)= \frac{x^{4}}{2!}-\frac{x^{8}}{4!}+\cdots \end{equation*}
    \begin{align*} \lim_{x \to 0}\frac{1-\cos(x^{2})}{x^{4}}=\amp \lim_{x \to 0}\frac{\frac{x^{4}}{2!}-\frac{x^{8}}{4!}+\cdots}{x^{4}} \\ =\amp \lim_{x \to 0} \frac{1}{2}-\frac{x^{4}}{4!}+\cdots \\ =\amp \frac{1}{2} \end{align*}
  3. The Taylor series for \(\ln(x+1) \) about \(0 \) is \(x-\frac{x^{2}}{2}+\frac{x^{3}}{3}-\cdots \text{.}\) By composing with \(x^{6} \text{,}\) we reach
    \begin{align*} \lim_{x \to 0}\frac{\ln(x^{6}+1)}{5x^{6}} = \amp \lim_{x \to 0}\frac{x^{6}-\frac{x^{12}}{2}+\frac{x^{18}}{3}-\cdots}{5x^{6}} \\ =\amp\lim_{x \to 0}\frac{1}{5}-\frac{x^{6}}{10}+\frac{x^{12}}{15}-\cdots \\ =\amp \frac{1}{5} \end{align*}
While many limits like the ones above can also be evaluated using other methods, such as L’Hopital’s Rule, the Taylor series approach often turns out to be easier. Because Taylor series behave like polynomials, to take the limit of a Taylor series we only need to know the dominant (first) term!

Subsection 7.10.4 Summary

  • Taylor series for complicated functions can often be found by manipulating Taylor series for known functions. Some techniques for manipulation are addition, substraction, multiplication, division, substitution, differentiation, and integration.
  • Taylor series are especially useful to approximate function values, where of course the accuracy of the approximation can be improved by using more terms in the series. These approximations have various applications.

Exercises 7.10.5 Exercises

1. Finding the Taylor series for a cosine function.

Find the Taylor series centered at 0 for the function \(f(x)=\frac{\cos(t^3)-1}{t^2}\text{.}\)

2. Finding the Taylor series for a function by modifying a known one.

Find the Taylor series centered at 0 for the function \(f(x)=\frac{x}{1+2x^3}\text{.}\)

3. Finding the Taylor series for a product of functions.

Using known Taylor series, find the first four nonzero terms of the Taylor series about 0 for the function \(f(x)=e^x\sin(x).\)

4. Finding a limit using Taylor series.

Evaluate
\begin{equation*} \lim_{x \to 0} \frac{\ln (1-x) + x + \frac{x^2}{2}}{14 x^3} \end{equation*}
Hint: Use power series.
Answer:

5. Estimating \(\sin(3)\) using Taylor series with different centers.

In this exercise, we will investigate how the center of a Taylor series can affect the accuracy of the estimation it provides.
  1. Use a seven-degree Taylor polynomial about \(a=0\) for \(\sin(x)\) to approximate \(\sin(3)\text{.}\)
  2. Find the seventh-degree Taylor polynomial about \(a=\pi\) for \(\sin(x)\text{,}\) and use it to approximate \(\sin(3)\text{.}\)
  3. Use a calculator to find the value of \(\sin(3)\text{.}\) Given that 3 is much closer to \(\pi\) than it is to 0, do your two approximations make sense?

6. Estimating a function value with Taylor polynomials.

Consider the function \(f(x) = \sqrt{x+1}\text{.}\)
Let \(T_n\) be the \(n^{th}\) degree Taylor approximation of \(f(10)\) about \(x = 8\text{.}\)
Find:
\(T_{1} =\)
\(T_{2} =\)
\(T_{3} =\)
Your answer must be accurate to at least 3 decimal places.

7. Using a Taylor series to estimate an integral.

Let \(\displaystyle F(x) = \int_0^{x} \sin(5 t^2) \ dt\text{.}\)
Find the MacLaurin polynomial of degree 7 for \(F(x)\text{.}\)
Use this polynomial to estimate the value of \(\displaystyle \int_0^{0.61} \sin(5 x^2) \ dx\text{.}\)
Note: your answer to the last part needs to be correct to 9 decimal places.

8. Using a Taylor series to estimate a definite integral within a specific accuracy.

Use series to approximate the definite integral to within the indicated accuracy:
\begin{equation*} \int_0^{0.3} e^{-x^2}\,dx, \textrm{ with an error } \lt 10^{-4} \end{equation*}
Note: The answer you derive here should be the partial sum of an appropriate series (the number of terms determined by an error estimate). This number is not necessarily the correct value of the integral truncated to the correct number of decimal places.

9. Using Taylor series to put functions in order near a point.

Using their Taylor series centered at 0, determine which of the two functions is largest for values of \(x\) near 0:
  • \(\displaystyle e^x\)
  • \(\displaystyle \frac{1}{1-x}\)

10. Finding the sum of a series by recognizing that it’s a Taylor series.

By recognizing each series as a Taylor series evaluated at a specific value of \(x\text{,}\) find the sum of each series.
  1. \(\displaystyle 1+2+\frac{4}{2!} + \frac{8}{3!} + \cdots + \frac{2^n}{n!} + \cdots \)
  2. \(\displaystyle 1 - \frac{25}{2!} + \frac{625}{4!} - \frac{15625}{6!} + \cdots \)
  3. \(\displaystyle 3 + \frac{9}{2!} + \frac{27}{3!} + \frac{81}{4!} + \cdots \)