AP Calculus BC

Taylor and Maclaurin Series: How to Build Them

A Taylor series centered at x = a sums f^(n)(a)/n! times (x - a)^n over all n from 0 up. A Maclaurin series is that series centered at 0. In practice you rarely compute every derivative: start from a known series like e^x, sin x, cos x, or 1/(1-x) and substitute, multiply, differentiate, or integrate instead.

The Taylor series formula

A Taylor series is what a Taylor polynomial (Topic 10.11) becomes when you never stop adding terms. You pick a center x=ax = a, compute the derivatives of ff there, divide the nn-th derivative by n!n!, and attach the result to (xa)n(x-a)^n. Summing over every nn from 00 up produces the series.

f(x)=n=0f(n)(a)n!(xa)n=f(a)+f(a)(xa)+f(a)2!(xa)2+f(x) = \sum_{n=0}^{\infty} \frac{f^{(n)}(a)}{n!}(x-a)^n = f(a) + f'(a)(x-a) + \frac{f''(a)}{2!}(x-a)^2 + \cdots

Dividing by n!n! is not arbitrary. It is exactly the factor that forces the polynomial's nn-th derivative at aa to match f(n)(a)f^{(n)}(a), so each new term corrects the next derivative. That is the design principle behind the whole formula.

The center aa is the point the series is built around and where its approximation is sharpest. When a=0a = 0 the (xa)n(x-a)^n factors become plain powers of xx, and the series gets its own name: the Maclaurin series. Maclaurin is not a separate idea, just Taylor centered at zero.

f(x)=n=0f(n)(0)n!xn=f(0)+f(0)x+f(0)2!x2+f(x) = \sum_{n=0}^{\infty} \frac{f^{(n)}(0)}{n!}x^n = f(0) + f'(0)\,x + \frac{f''(0)}{2!}x^2 + \cdots

Every partial sum of a Taylor series is a Taylor polynomial (LIM-8.E.1), so the series is the limit of its polynomials. This is BC Topic 10.14, resting directly on the coefficient f(n)(a)n!\frac{f^{(n)}(a)}{n!} from Topic 10.11. All of Unit 10 is BC-only.

Two ways to build a series, and how to choose

The derivative formula defines a Taylor series, but on the exam it is usually the slow way in. Differentiating a function four or five times to spot a pattern is error-prone, and for a composite like ex2e^{-x^2} the derivatives grow fast: f(x)=2xex2f'(x) = -2x\,e^{-x^2}, then f(x)=(4x22)ex2f''(x) = (4x^2 - 2)e^{-x^2}, and it only gets messier. Finding a clean formula for f(n)(0)f^{(n)}(0) that way is brutal.

The fast route is almost always to start from a series you already know and reshape it, so the first decision is recognition. Look at f(x)f(x) and ask whether it is a close relative of one of the five standard series. If ff is a standard function with xx replaced by some expression (like cos(2x)\cos(2x), ex2e^{-x^2}, or 11+x\frac{1}{1+x}), multiplied by a power of xx, or the derivative or integral of a standard function, build it from the known series.

Only when the function is genuinely unlike anything on the list, or when the problem asks for a series centered at a nonzero aa, should you fall back on computing derivatives one at a time. Example 3 is exactly that case: lnx\ln x centered at x=1x = 1.

Recognition rule

Is the function a known series in disguise (a substitution, a product with xkx^k, or a derivative or integral of one)? Reshape the known series. Is it truly new, or centered at a0a \ne 0? Use the derivative formula.

This is the whole game in Topics 10.14 and 10.15. The CED names sinx\sin x, cosx\cos x, and exe^x as the foundation for constructing other series (LIM-8.F.2) and 11x\frac{1}{1-x} as the geometric building block (LIM-8.F.1). Memorizing a handful of series buys you dozens more for almost no work.

The five series worth memorizing

These five carry the overwhelming majority of series questions on the BC exam. The first three are the CED-designated foundation, the fourth is a geometric series, and the fifth comes from substituting x-x into the fourth to get 11+x\frac{1}{1+x}, then integrating that term by term.

FunctionMaclaurin seriesConverges for
exe^xn=0xnn!=1+x+x22!+\displaystyle\sum_{n=0}^{\infty} \frac{x^n}{n!} = 1 + x + \frac{x^2}{2!} + \cdotsall xx
sinx\sin xn=0(1)nx2n+1(2n+1)!=xx33!+\displaystyle\sum_{n=0}^{\infty} \frac{(-1)^n x^{2n+1}}{(2n+1)!} = x - \frac{x^3}{3!} + \cdotsall xx
cosx\cos xn=0(1)nx2n(2n)!=1x22!+\displaystyle\sum_{n=0}^{\infty} \frac{(-1)^n x^{2n}}{(2n)!} = 1 - \frac{x^2}{2!} + \cdotsall xx
11x\dfrac{1}{1-x}n=0xn=1+x+x2+\displaystyle\sum_{n=0}^{\infty} x^n = 1 + x + x^2 + \cdotsx<1|x| < 1
ln(1+x)\ln(1+x)n=1(1)n1xnn=xx22+\displaystyle\sum_{n=1}^{\infty} \frac{(-1)^{n-1} x^n}{n} = x - \frac{x^2}{2} + \cdots1<x1-1 < x \le 1

The three that converge for every xx (exe^x, sinx\sin x, cosx\cos x) are the workhorses, because you can substitute any expression into them without worrying about an interval. The trig pair also has a memorable structure: sinx\sin x uses only odd powers, because sine is an odd function, while cosx\cos x uses only even powers, because cosine is even, and both alternate in sign. If you can write the exe^x series, you can reconstruct sinx\sin x and cosx\cos x as its odd and even parts with alternating signs.

Building from a known series

Once you have a known series, four operations generate new ones, and all four are fair game (Topic 10.15).

  1. Substitution: replace xx with any expression. Putting x2-x^2 into exe^x gives the series for ex2e^{-x^2}; putting 2x2x into cosx\cos x gives the series for cos(2x)\cos(2x).
  2. Multiplication by a power of xx: to get the series for x2exx^2 e^x, multiply every term of the exe^x series by x2x^2.
  3. Term-by-term differentiation: differentiating 11x=n=0xn\frac{1}{1-x} = \sum_{n=0}^{\infty} x^n gives 1(1x)2=n=1nxn1\frac{1}{(1-x)^2} = \sum_{n=1}^{\infty} n\,x^{n-1}.
  4. Term-by-term integration: integrating 11+x2\frac{1}{1+x^2} term by term recovers the series for arctanx\arctan x.

You can chain these freely. To build the series for x2cos(2x)x^2 \cos(2x), substitute 2x2x into the cosine series, then multiply every term by x2x^2. Differentiation and integration do not change the radius of convergence (LIM-8.D.6), though the endpoint behavior can shift, so an interval-of-convergence question still needs both endpoints checked on their own (Topic 10.13).

Common mistakes

  • Forgetting to divide by n!n!. The coefficient is f(n)(a)n!\frac{f^{(n)}(a)}{n!}, not f(n)(a)f^{(n)}(a). This is the single most common slip.
  • Losing the (xa)(x-a) shift. For a series centered at a0a \ne 0, the powers are (xa)n(x-a)^n, not xnx^n. Writing xx alone silently recenters the series at 00.
  • Recomputing derivatives when a substitution would do. If the function is a known series in disguise, differentiating from scratch wastes time and invites errors.
  • Mishandling signs after substitution. (x2)n=(1)nx2n(-x^2)^n = (-1)^n x^{2n}: the exponent acts on both the sign and the variable.
  • Assuming the interval carries over unchanged. Substituting u=g(x)u = g(x) into a series valid for u<1|u| < 1 makes the new condition g(x)<1|g(x)| < 1, which can be a very different set of xx-values.

Worked examples

Worked example

Building $e^x$ from the derivative formula

Find the Maclaurin series for f(x)=exf(x) = e^x directly from the coefficient formula.

  1. Every derivative of exe^x is again exe^x, so f(x)=exf'(x) = e^x, f(x)=exf''(x) = e^x, and in general f(n)(x)=exf^{(n)}(x) = e^x for every nn.
  2. Evaluate at the center x=0x = 0. Since e0=1e^0 = 1, every derivative gives the same value: f(n)(0)=1f^{(n)}(0) = 1 for all nn.
  3. Form the coefficient f(n)(0)n!=1n!\frac{f^{(n)}(0)}{n!} = \frac{1}{n!}, so the term of degree nn is xnn!\frac{x^n}{n!}.
  4. Sum over all nn: ex=n=0xnn!=1+x+x22!+x33!+e^x = \displaystyle\sum_{n=0}^{\infty} \frac{x^n}{n!} = 1 + x + \frac{x^2}{2!} + \frac{x^3}{3!} + \cdots
  5. A ratio test on xnn!\frac{x^n}{n!} gives L=0L = 0 for every fixed xx, so the series converges for all real xx. This is the anchor series: the other four in the table are variations on it or on the geometric series.

ex=n=0xnn!e^x = \sum_{n=0}^{\infty} \frac{x^n}{n!}, converging for every real xx.

Worked example

$e^{-x^2}$ by substitution, not brute force

Find the Maclaurin series for ex2e^{-x^2}.

  1. Differentiating ex2e^{-x^2} repeatedly gets ugly fast, so recognize it instead: it is eue^u with u=x2u = -x^2. Start from the known series eu=n=0unn!e^u = \sum_{n=0}^{\infty} \frac{u^n}{n!}.
  2. Substitute u=x2u = -x^2 into that series: ex2=n=0(x2)nn!e^{-x^2} = \sum_{n=0}^{\infty} \frac{(-x^2)^n}{n!}.
  3. Simplify the power: (x2)n=(1)nx2n(-x^2)^n = (-1)^n x^{2n}, so ex2=n=0(1)nx2nn!e^{-x^2} = \sum_{n=0}^{\infty} \frac{(-1)^n x^{2n}}{n!}.
  4. Write out the first terms: ex2=1x2+x42!x63!+e^{-x^2} = 1 - x^2 + \frac{x^4}{2!} - \frac{x^6}{3!} + \cdots
  5. Because the eue^u series converges for all uu, the substituted series converges for all real xx. Building it this way took three lines; the derivative formula would have taken a page.

ex2=n=0(1)nx2nn!=1x2+x42!e^{-x^2} = \sum_{n=0}^{\infty} \frac{(-1)^n x^{2n}}{n!} = 1 - x^2 + \frac{x^4}{2!} - \cdots, valid for all real xx.

Worked example

A Taylor series centered at a nonzero point

Find the Taylor series for f(x)=lnxf(x) = \ln x centered at x=1x = 1.

  1. There is no simpler known series sitting at x=1x = 1, so use the derivative formula. Set f(x)=lnxf(x) = \ln x with center a=1a = 1; then f(1)=ln1=0f(1) = \ln 1 = 0, so the constant term vanishes.
  2. Differentiate repeatedly: f(x)=x1f'(x) = x^{-1}, f(x)=x2f''(x) = -x^{-2}, f(x)=2x3f'''(x) = 2x^{-3}, f(4)(x)=6x4f^{(4)}(x) = -6x^{-4}.
  3. Evaluate at x=1x = 1: f(1)=1f'(1) = 1, f(1)=1f''(1) = -1, f(1)=2f'''(1) = 2, f(4)(1)=6f^{(4)}(1) = -6. The pattern is f(n)(1)=(1)n1(n1)!f^{(n)}(1) = (-1)^{n-1}(n-1)! for n1n \ge 1.
  4. Divide by n!n! to get the coefficient, using (n1)!n!=1n\frac{(n-1)!}{n!} = \frac{1}{n}: f(n)(1)n!=(1)n1(n1)!n!=(1)n1n\frac{f^{(n)}(1)}{n!} = \frac{(-1)^{n-1}(n-1)!}{n!} = \frac{(-1)^{n-1}}{n}.
  5. Attach each coefficient to (x1)n(x-1)^n: lnx=n=1(1)n1n(x1)n=(x1)(x1)22+(x1)33\ln x = \sum_{n=1}^{\infty} \frac{(-1)^{n-1}}{n}(x-1)^n = (x-1) - \frac{(x-1)^2}{2} + \frac{(x-1)^3}{3} - \cdots
  6. Substituting t=x1t = x - 1 turns this into ln(1+t)=tt22+t33\ln(1+t) = t - \frac{t^2}{2} + \frac{t^3}{3} - \cdots, the standard ln(1+x)\ln(1+x) series from the table. That confirms the work and shows the two are the same series, just shifted. It converges for 1<t1-1 < t \le 1, that is 0<x20 < x \le 2.

lnx=n=1(1)n1n(x1)n\ln x = \sum_{n=1}^{\infty} \frac{(-1)^{n-1}}{n}(x-1)^n, converging for 0<x20 < x \le 2.

Frequently asked questions

What is the difference between a Taylor series and a Maclaurin series?

A Maclaurin series is a Taylor series centered at x=0x = 0. That is the only difference. The general Taylor series is n=0f(n)(a)n!(xa)n\sum_{n=0}^{\infty} \frac{f^{(n)}(a)}{n!}(x-a)^n; setting the center a=0a = 0 turns the (xa)n(x-a)^n factors into xnx^n and gives the Maclaurin series. Every Maclaurin series is a Taylor series, but a Taylor series centered at a0a \ne 0 is not Maclaurin.

Which Taylor series do I need to memorize for AP Calculus BC?

At minimum, memorize the Maclaurin series for exe^x, sinx\sin x, cosx\cos x, and 11x\frac{1}{1-x}. The CED points to sinx\sin x, cosx\cos x, and exe^x as the foundation for building others (LIM-8.F.2), and 11x\frac{1}{1-x} is the geometric building block (LIM-8.F.1). Knowing ln(1+x)\ln(1+x) helps too, but you can recover it by integrating the series for 11+x\frac{1}{1+x}.

How do you find a Taylor series centered at a point other than zero?

Use the derivative formula directly: compute f(a),f(a),f(a),f(a), f'(a), f''(a), \dots at the center aa, form the coefficients f(n)(a)n!\frac{f^{(n)}(a)}{n!}, and attach each to (xa)n(x-a)^n. The powers must be (xa)n(x-a)^n, not xnx^n. Example 3 above builds lnx\ln x at a=1a = 1 this way. Substituting a known series works only if you can rewrite ff in terms of (xa)(x-a), such as writing lnx=ln(1+(x1))\ln x = \ln(1 + (x-1)) and using the ln(1+t)\ln(1+t) series with t=x1t = x - 1.