Taylor & Maclaurin Series

Let a Taylor polynomial run forever and it becomes a Taylor series. On the AP exam, you almost never build Taylor series from scratch by taking 6 derivatives—you memorize 4 core series and transform them with algebra and calculus!

By the end you can

The must-memorize Maclaurin series

Commit the first 4 rows to 100% instant memory (and the last 2 are easy to derive from row 1—or memorize them too!):

FunctionFirst terms & general termInterval of conv.
\(\dfrac{1}{1 - x}\) \(1 + x + x^2 + x^3 + \dots + x^n + \dots = \displaystyle\sum_{n=0}^\infty x^n\) \((-1, 1)\)
\(e^x\) \(1 + x + \dfrac{x^2}{2!} + \dfrac{x^3}{3!} + \dots + \dfrac{x^n}{n!} + \dots = \displaystyle\sum_{n=0}^\infty \frac{x^n}{n!}\) \((-\infty, \infty)\)
\(\sin x\) \(x - \dfrac{x^3}{3!} + \dfrac{x^5}{5!} - \dots + \dfrac{(-1)^n x^{2n+1}}{(2n+1)!} + \dots = \displaystyle\sum_{n=0}^\infty \frac{(-1)^n x^{2n+1}}{(2n+1)!}\) \((-\infty, \infty)\)
\(\cos x\) \(1 - \dfrac{x^2}{2!} + \dfrac{x^4}{4!} - \dots + \dfrac{(-1)^n x^{2n}}{(2n)!} + \dots = \displaystyle\sum_{n=0}^\infty \frac{(-1)^n x^{2n}}{(2n)!}\) \((-\infty, \infty)\)
\(\ln(1 + x)\) \(x - \dfrac{x^2}{2} + \dfrac{x^3}{3} - \dots + \dfrac{(-1)^{n-1} x^n}{n} + \dots = \displaystyle\sum_{n=1}^\infty \frac{(-1)^{n-1} x^n}{n}\) \((-1, 1]\)
\(\arctan x\) \(x - \dfrac{x^3}{3} + \dfrac{x^5}{5} - \dots + \dfrac{(-1)^n x^{2n+1}}{2n+1} + \dots = \displaystyle\sum_{n=0}^\infty \frac{(-1)^n x^{2n+1}}{2n+1}\) \([-1, 1]\)
Memory tricks so you never mix them up

Building new series (the 4 moves)

You can treat convergent power series just like giant polynomials. Here are the four AP moves:

Example 1 · Substitution & multiplication

Find the first 4 nonzero terms and the general term of the Maclaurin series for (a) \(e^{-x^2}\) and (b) \(x^2\sin(2x)\).

  1. (a) Start with \(e^u = 1 + u + \frac{u^2}{2!} + \frac{u^3}{3!} + \dots + \frac{u^n}{n!}\) and substitute \(u = -x^2\): \[ e^{-x^2} = 1 - x^2 + \frac{x^4}{2!} - \frac{x^6}{3!} + \dots + \frac{(-1)^n x^{2n}}{n!} + \dots \]
  2. (b) Start with \(\sin u = u - \frac{u^3}{3!} + \frac{u^5}{5!} - \frac{u^7}{7!} + \dots\), plug in \(u = 2x\), then multiply every term by \(x^2\): \[ \sin(2x) = 2x - \frac{8x^3}{3!} + \frac{32x^5}{5!} - \frac{128x^7}{7!} + \dots + \frac{(-1)^n 2^{2n+1} x^{2n+1}}{(2n+1)!} \] \[ x^2\sin(2x) = 2x^3 - \frac{8x^5}{6} + \frac{32x^7}{120} - \frac{128x^9}{5040} + \dots + \frac{(-1)^n 2^{2n+1} x^{2n+3}}{(2n+1)!} \] On AP FRQs, leaving factorials unsimplified like \(\frac{2^3 x^5}{3!}\) is completely fine and safer!
(a) \(\sum_{n=0}^\infty \frac{(-1)^n x^{2n}}{n!}\); (b) \(\sum_{n=0}^\infty \frac{(-1)^n 2^{2n+1} x^{2n+3}}{(2n+1)!}\).
Example 2 · Using geometric series to build rational series

Find the Maclaurin series and interval of convergence for \(f(x) = \dfrac{x}{1 + x^2}\).

  1. Match \(\dfrac{1}{1 - u} = \sum_{n=0}^\infty u^n\) by writing \(\dfrac{1}{1 + x^2} = \dfrac{1}{1 - (-x^2)}\), so \(u = -x^2\): \[ \frac{1}{1 + x^2} = 1 - x^2 + x^4 - x^6 + \dots + (-1)^n x^{2n} + \dots \qquad (|-x^2| < 1 \iff |x| < 1) \]
  2. Multiply by \(x\): \[ \frac{x}{1 + x^2} = x - x^3 + x^5 - x^7 + \dots + (-1)^n x^{2n+1} + \dots, \qquad x \in (-1, 1) \]
\(\displaystyle\sum_{n=0}^\infty (-1)^n x^{2n+1}\), interval \((-1, 1)\).
Example 3 · Integrating a series (non-elementary integral!)

Approximate \(\displaystyle\int_0^1 e^{-x^2}\,dx\) using the first 3 nonzero terms of its Maclaurin series, and bound the error.

  1. From Example 1(a), \(e^{-x^2} = 1 - x^2 + \frac{x^4}{2!} - \frac{x^6}{3!} + \dots\).
  2. Integrate term by term from \(0\) to \(1\): \[ \int_0^1 e^{-x^2}\,dx = \Big[x - \frac{x^3}{3} + \frac{x^5}{10} - \frac{x^7}{42} + \dots\Big]_0^1 = 1 - \frac{1}{3} + \frac{1}{10} - \frac{1}{42} + \dots \]
  3. First 3 terms: \(1 - \frac13 + \frac{1}{10} = \dfrac{23}{30} \approx 0.767\).
  4. This is an alternating series with terms decreasing to \(0\), so by the Alternating Series Error Bound, the error is at most the first omitted term: \(\dfrac{1}{42} \approx 0.024\). (Exact integral is \(0.747\), actual error \(0.020 \le 0.024\) ✓.)
\(\dfrac{23}{30} \approx 0.767\), with error \(\le \dfrac{1}{42}\).
Example 4 · Differentiating a series

Find the Maclaurin series for \(g(x) = \dfrac{1}{(1 - x)^2}\).

  1. Notice \(\dfrac{d}{dx}\left(\dfrac{1}{1 - x}\right) = \dfrac{1}{(1 - x)^2}\)!
  2. Differentiate \(\dfrac{1}{1-x} = 1 + x + x^2 + x^3 + \dots + x^n + \dots\) term by term: \[ \frac{1}{(1 - x)^2} = 1 + 2x + 3x^2 + 4x^3 + \dots = \sum_{n=1}^\infty n x^{n-1} \] Radius stays \(R = 1\) (and at \(x = \pm 1\) it diverges by \(n\)th-term test), so interval is \((-1, 1)\).
\(\displaystyle\sum_{n=1}^\infty n x^{n-1} = 1 + 2x + 3x^2 + \dots\) on \((-1, 1)\).

Three favorite AP multiple-choice tricks

1. Recognizing an exact sum

Match a weird-looking numerical series to one of your memorized Maclaurin series plugged into a specific number \(x\):

2. Evaluating a tricky limit

Replace \(\sin x\) or \(\cos x\) with its first couple of terms! Example: find \(\displaystyle\lim_{x\to 0} \frac{\sin x - x}{x^3}\):

\[ \lim_{x\to 0} \frac{\left(x - \frac{x^3}{6} + \frac{x^5}{120} - \dots\right) - x}{x^3} = \lim_{x\to 0}\left(-\frac{1}{6} + \frac{x^2}{120} - \dots\right) = -\frac{1}{6} \]

Way faster than applying L'Hôpital's rule three times!

3. Finding a huge derivative like \(f^{(10)}(0)\)

Never differentiate 10 times! Build the Maclaurin series, grab the coefficient \(c_{10}\) of \(x^{10}\), and use \(f^{(10)}(0) = 10!\cdot c_{10}\)!

Example 5 · Finding \(f^{(10)}(0)\) in 15 seconds

Let \(f(x) = x^2\cos x\). Find \(f^{(10)}(0)\).

  1. Write the series: \(x^2\cos x = x^2\displaystyle\sum_{n=0}^\infty \frac{(-1)^n x^{2n}}{(2n)!} = \sum_{n=0}^\infty \frac{(-1)^n x^{2n+2}}{(2n)!}\).
  2. Find which \(n\) gives \(x^{10}\): \(2n + 2 = 10 \Rightarrow n = 4\).
  3. Read the coefficient \(c_{10} = \dfrac{(-1)^4}{8!} = \dfrac{1}{8!}\).
  4. Multiply by \(10!\): \(f^{(10)}(0) = 10! \cdot \dfrac{1}{8!} = 10 \cdot 9 = 90\).
\(f^{(10)}(0) = 90\)

What is the exact sum of \(\displaystyle\sum_{n=0}^{\infty} \frac{(-1)^n \pi^{2n+1}}{4^{2n+1}(2n+1)!}\)?

Rewrite \(\frac{\pi^{2n+1}}{4^{2n+1}} = \left(\frac{\pi}{4}\right)^{2n+1}\). Alternating odd powers over odd factorials is \(\sin x\) evaluated at \(x = \frac{\pi}{4}\), which equals \(\frac{\sqrt{2}}{2}\). (Even though \(\cos(\pi/4)\) happens to have the same numerical value, this series has odd powers, so it is \(\sin(\pi/4)\).)

Full AP-style Series FRQ walkthrough

Question 6 on the AP Calculus BC exam is almost always a Taylor Series question. Watch how every piece from Unit 10 fits together:

Example 6 · Complete AP Question 6 walkthrough

Let \(f(x) = \dfrac{1}{1 + 2x}\) and let \(g(x) = \displaystyle\int_0^x f(t)\,dt = \tfrac12\ln(1 + 2x)\).
(a) Write the first 4 nonzero terms and the general term of the Maclaurin series for \(f(x)\).
(b) Write the first 4 nonzero terms and the general term of the Maclaurin series for \(g(x)\).
(c) Find the interval of convergence for the Maclaurin series of \(g(x)\).
(d) Let \(P_4(x)\) be the 4th-degree Maclaurin polynomial for \(g(x)\). Use the Alternating Series Error Bound to show that \(\big|g(\tfrac14) - P_4(\tfrac14)\big| < 0.005\).

  1. (a) Write \(f(x) = \dfrac{1}{1 - (-2x)}\), geometric with \(u = -2x\): \[ f(x) = 1 - 2x + 4x^2 - 8x^3 + \dots + (-1)^n 2^n x^n + \dots \]
  2. (b) Integrate \(f(t)\) term by term from \(0\) to \(x\): \[ g(x) = x - x^2 + \frac{4}{3}x^3 - 2x^4 + \dots + \frac{(-1)^n 2^n x^{n+1}}{n + 1} + \dots \] Check your general term! Plug in \(n=0 \to x\), \(n=1 \to -x^2\), \(n=2 \to \frac43 x^3\), \(n=3 \to -2x^4\) ✓. Always check \(n=0,1,2\)!
  3. (c) Ratio Test on \(g(x)\): \[ \lim_{n\to\infty}\left|\frac{2^{n+1}x^{n+2}}{n+2}\cdot\frac{n+1}{2^n x^{n+1}}\right| = 2|x| < 1 \implies |x| < \frac12 \] Test endpoints:
    • At \(x = -\frac12\): \(\sum_{n=0}^\infty \frac{(-1)^n 2^n (-1/2)^{n+1}}{n+1} = -\frac12\sum_{n=0}^\infty \frac{1}{n+1}\) → diverges (harmonic).
    • At \(x = \frac12\): \(\sum_{n=0}^\infty \frac{(-1)^n 2^n (1/2)^{n+1}}{n+1} = \frac12\sum_{n=0}^\infty \frac{(-1)^n}{n+1}\) → converges (AST).
    Interval of convergence: \(\left(-\dfrac12,\; \dfrac12\right]\).
  4. (d) At \(x = \frac14\), the series for \(g(\frac14)\) alternates with terms decreasing in magnitude to \(0\). The first omitted term after \(P_4(\frac14)\) is the \(n = 4\) term (the \(x^5\) term): \[ \left|g\!\left(\frac14\right) - P_4\!\left(\frac14\right)\right| \le \frac{2^4 (1/4)^5}{5} = \frac{16}{5 \cdot 1024} = \frac{1}{320} = 0.003125 < 0.005 \quad \checkmark \]
(a) \(\sum_{n=0}^\infty (-2)^n x^n\); (b) \(\sum_{n=0}^\infty \frac{(-1)^n 2^n x^{n+1}}{n+1}\); (c) \((-\frac12, \frac12]\); (d) error \(\le \frac{1}{320} < \frac{1}{200} = 0.005\).

What is the coefficient of \(x^4\) in the Maclaurin series for \(f(x) = \cos(3x)\)?

In \(\cos u = 1 - \frac{u^2}{2!} + \frac{u^4}{4!} - \dots\), substitute \(u = 3x\): the \(x^4\) term is \(+\frac{(3x)^4}{4!} = \frac{81x^4}{24} = \frac{27}{8}x^4\). Don't forget to raise the \(3\) to the 4th power too!

Common mistakes

Watch out for these

Practice problems

Warm-up

Write the first 4 nonzero terms and the general term of the Maclaurin series for \(f(x) = x e^{3x}\).

Hint

Substitute \(3x\) into \(e^u\), then multiply by \(x\).

Solution
\[ x e^{3x} = x\left(1 + 3x + \frac{9x^2}{2!} + \frac{27x^3}{3!} + \dots + \frac{3^n x^n}{n!}\right) = x + 3x^2 + \frac{9x^3}{2} + \frac{9x^4}{2} + \dots + \frac{3^n x^{n+1}}{n!} \]
\(x + 3x^2 + \frac92 x^3 + \frac92 x^4 + \dots\); general term \(\dfrac{3^n x^{n+1}}{n!}\) (for \(n \ge 0\)).
Medium

Find the Maclaurin series and interval of convergence for \(f(x) = \dfrac{3}{2 - x}\).

Hint

Factor \(2\) out of the denominator so it matches \(\frac{1}{1 - u}\): \(\frac{3}{2}\cdot\frac{1}{1 - x/2}\).

Solution
\[ \frac{3}{2 - x} = \frac32 \cdot \frac{1}{1 - (x/2)} = \frac32\sum_{n=0}^\infty \left(\frac{x}{2}\right)^n = \sum_{n=0}^\infty \frac{3 x^n}{2^{n+1}} \]

Geometric, converges iff \(|x/2| < 1 \iff -2 < x < 2\).

\(\displaystyle\sum_{n=0}^\infty \frac{3x^n}{2^{n+1}}\), interval \((-2, 2)\).
Medium

Use Maclaurin series to evaluate \(\displaystyle\lim_{x\to 0} \frac{1 - \cos(2x)}{x^2}\).

Hint

\(\cos(2x) = 1 - \frac{(2x)^2}{2!} + \frac{(2x)^4}{4!} - \dots = 1 - 2x^2 + \frac23 x^4 - \dots\).

Solution
\[ \lim_{x\to 0} \frac{1 - (1 - 2x^2 + \frac23 x^4 - \dots)}{x^2} = \lim_{x\to 0}\left(2 - \frac23 x^2 + \dots\right) = 2 \]
\(2\)
Medium

Let \(f(x) = x\sin(2x)\). Find \(f^{(6)}(0)\).

Hint

Write the series for \(x\sin(2x)\), pull out the coefficient of \(x^6\), and multiply by \(6!\).

Solution

\(\sin(2x) = 2x - \frac{(2x)^3}{3!} + \frac{(2x)^5}{5!} - \dots\), so \(x\sin(2x) = 2x^2 - \frac{8x^4}{3!} + \frac{32x^6}{5!} - \dots\).

Coefficient of \(x^6\) is \(c_6 = \frac{32}{5!}\). Thus \(f^{(6)}(0) = 6!\cdot\frac{32}{5!} = 6 \cdot 32 = 192\).

\(192\)
AP-style

Find the exact sum of each series by recognizing a Maclaurin series:
(a) \(\displaystyle\sum_{n=0}^{\infty} \frac{(-1)^n}{n!}\)    (b) \(\displaystyle\sum_{n=0}^{\infty} \frac{(-1)^n}{(2n+1)\cdot 3^{n+1/2}}\)

Hint

(a) \(e^x\) at \(x = -1\). (b) Notice \(3^{n+1/2} = (\sqrt{3})^{2n+1}\), so rewrite as \(\left(\frac{1}{\sqrt{3}}\right)^{2n+1}\) — that's \(\arctan\)!

Solution

(a) \(e^{-1} = \dfrac{1}{e}\).

(b) \(\sum_{n=0}^\infty \frac{(-1)^n (1/\sqrt{3})^{2n+1}}{2n+1} = \arctan\!\left(\frac{1}{\sqrt{3}}\right) = \dfrac{\pi}{6}\).

(a) \(\dfrac{1}{e}\); (b) \(\dfrac{\pi}{6}\).