AP Calculus BC · Study guide

Finding Taylor or Maclaurin Series for a Function

AP® Calculus BC · Unit 10 · Infinite Sequences and Series

Taylor and Maclaurin Series

Four series cover most of what you will need. New series are usually built from them by substituting, multiplying, differentiating or integrating. This guide shows those moves and when to fall back on the definition.

The idea in one paragraph

The Taylor series of \(f\) about \(a\) is \(\displaystyle\sum_{n=0}^{\infty}\frac{f^{(n)}(a)}{n!}(x - a)^n\); about \(a = 0\) it is a Maclaurin series. Before computing derivatives, look for a known series: substitute an expression for \(x\) in every term, multiply by a factor, or differentiate or integrate term by term. Give the general term, and check its powers: an even function has only even powers, an odd function only odd ones.

1Four series to know

FunctionSeriesConverges for
\(e^x\)\(1 + x + \frac{x^2}{2!} + \frac{x^3}{3!} + \cdots = \sum\frac{x^n}{n!}\)all x
\(\sin x\)\(x - \frac{x^3}{3!} + \frac{x^5}{5!} - \cdots = \sum\frac{(-1)^n x^{2n+1}}{(2n + 1)!}\)all x
\(\cos x\)\(1 - \frac{x^2}{2!} + \frac{x^4}{4!} - \cdots = \sum\frac{(-1)^n x^{2n}}{(2n)!}\)all x
\(\frac{1}{1 - x}\)\(1 + x + x^2 + \cdots = \sum x^n\)\(|x| \lt 1\)
Figure 1. The full Maclaurin series of sin x converges to sin x for every x. Any finite number of terms only follows the curve for a while.

2Building from them

Worked Example 1 Substitution

Maclaurin series for \(e^{-x^2}\)

  1. 1
    Start from \(e^u = \sum\frac{u^n}{n!}\) and put \(u = -x^2\) into the whole term.
  2. 2
    \(e^{-x^2} = \sum\dfrac{(-x^2)^n}{n!} = \sum\dfrac{(-1)^n x^{2n}}{n!} = 1 - x^2 + \dfrac{x^4}{2} - \dfrac{x^6}{6} + \cdots\)
Answer: \(\displaystyle e^{-x^2} = \sum_{n=0}^{\infty}\frac{(-1)^n x^{2n}}{n!}\), for all x.
Write it like this

“Substituting \(-x^2\) for \(x\) in the series for \(e^x\): \(e^{-x^2} = \displaystyle\sum_{n=0}^{\infty}\frac{(-1)^n x^{2n}}{n!}\).”

Worked Example 2 Substitution with a constant

Maclaurin series for \(\cos 2x\)

  1. 1
    Put \(u = 2x\) into the cosine series: \(\sum\dfrac{(-1)^n(2x)^{2n}}{(2n)!}\).
  2. 2
    \(1 - 2x^2 + \dfrac{2x^4}{3} - \cdots\) (since \(\frac{2^4}{4!} = \frac{16}{24} = \frac23\)).
Answer: \(\displaystyle\sum_{n=0}^{\infty}\frac{(-1)^n 4^n x^{2n}}{(2n)!}\). Only even powers, as expected for an even function.
Worked Example 3 A factor in front

Maclaurin series for \(x^2\sin x\)

  1. 1
    Multiply every term of the sine series by \(x^2\).
  2. 2
    \(x^2\left(x - \dfrac{x^3}{3!} + \dfrac{x^5}{5!} - \cdots\right) = x^3 - \dfrac{x^5}{6} + \dfrac{x^7}{120} - \cdots\)
Answer: \(\displaystyle\sum_{n=0}^{\infty}\frac{(-1)^n x^{2n+3}}{(2n + 1)!}\)
Common Mistake 1 · Substituting into only part of the term

\((-x^2)^n = (-1)^n x^{2n}\): both the sign and the power change. Writing \(-x^{2n}\) or \((-1)^n x^n\) loses one of them.

3Integrating and differentiating

Worked Example 4 Integrating term by term

Series for \(\displaystyle\int_0^x e^{-t^2}\,dt\)

  1. 1
    Integrate each term of Worked Example 1: \(\displaystyle\int_0^x t^{2n}\,dt = \frac{x^{2n+1}}{2n + 1}\).
  2. 2
    \(x - \dfrac{x^3}{3} + \dfrac{x^5}{10} - \dfrac{x^7}{42} + \cdots\)
Answer: \(\displaystyle\sum_{n=0}^{\infty}\frac{(-1)^n x^{2n+1}}{(2n + 1)\,n!}\). This integral has no formula in elementary functions, but it has a series.
Common Mistake 2 · Listing terms without a general term

“\(1 - x^2 + \frac{x^4}{2} - \cdots\)” shows a pattern, but a question asking for the series wants the \(n\)th term as well, with the sum written out.

4From the definition

Worked Example 5 From the definition, about another center

Taylor series for \(e^x\) about \(x = 2\)

  1. 1
    Every derivative of \(e^x\) is \(e^x\), so every \(f^{(n)}(2) = e^2\).
  2. 2
    \(\displaystyle\sum_{n=0}^{\infty}\frac{f^{(n)}(2)}{n!}(x - 2)^n = \sum_{n=0}^{\infty}\frac{e^2(x - 2)^n}{n!}\).
Answer: \(e^2\left(1 + (x - 2) + \frac{(x - 2)^2}{2} + \cdots\right)\)
Common Mistake 3 · Computing derivatives when a known series fits

Differentiating \(x^2\sin x\) ten times is slow and risky. Multiplying the sine series by \(x^2\) takes one line.

Common Mistake 4 · Ignoring parity

\(\cos 2x\) is even, so its series has only even powers; \(x^2\sin x\) is odd, so only odd powers. An answer with the wrong kind of power has a mistake in it.

Quick reference

MoveExample
Substitute\(e^{-x^2}\) from \(e^u\)
Multiply by a factor\(x^2\sin x\)
Integrate term by term\(\int_0^x e^{-t^2}\,dt\)
Use the definition\(e^x\) about 2