Calculus · Grade 12 and undergraduate

Taylor and Maclaurin Series

Quick answer

Letting the degree of a Taylor polynomial grow without end gives the Taylor series, the sum of f⁽ⁿ⁾(a)/n! times (x − a)ⁿ; centered at 0 it is a Maclaurin series. The standard ones, for eˣ, sin x, cos x, 1/(1 − x), ln(1 + x) and arctan x, are worth knowing by heart. New series come from old ones: substitute, multiply by a power of x, or differentiate or integrate term by term, which keeps the radius of convergence. A series equals its function exactly where the polynomial errors shrink to 0.

What you'll learn

  • Write the Taylor series of a function from its derivatives
  • Recall the standard Maclaurin series and where they converge
  • Build new series by substitution, differentiation and integration
  • Use series to approximate integrals and evaluate limits

From polynomials to series

Taylor polynomials get better as their degree rises. Let the degree grow without end, and the polynomial becomes a power series, the Taylor series of ff at aa:

∑n=0∞f(n)(a)n!(x−a)n=f(a)+f′(a)(x−a)+f′′(a)2!(x−a)2+⋯\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

Centered at a=0a = 0 it is a Maclaurin series. A handful of these come up constantly:

FunctionMaclaurin seriesConverges for
exe^x1+x+x22!+x33!+⋯1 + x + \tfrac{x^2}{2!} + \tfrac{x^3}{3!} + \cdotsall xx
sin⁡x\sin xx−x33!+x55!−⋯x - \tfrac{x^3}{3!} + \tfrac{x^5}{5!} - \cdotsall xx
cos⁡x\cos x1−x22!+x44!−⋯1 - \tfrac{x^2}{2!} + \tfrac{x^4}{4!} - \cdotsall xx
11−x\tfrac{1}{1 - x}1+x+x2+x3+⋯1 + x + x^2 + x^3 + \cdots−1<x<1-1 < x < 1
ln⁡(1+x)\ln(1 + x)x−x22+x33−⋯x - \tfrac{x^2}{2} + \tfrac{x^3}{3} - \cdots−1<x≤1-1 < x \le 1
arctan⁡x\arctan xx−x33+x55−⋯x - \tfrac{x^3}{3} + \tfrac{x^5}{5} - \cdots−1≤x≤1-1 \le x \le 1

Why a series equals its function where it converges

A Taylor series is built from derivatives at a single point, so it is fair to ask whether it really adds up to f(x)f(x) elsewhere. It does exactly when the error of Pn(x)P_n(x) shrinks to 00 as nn grows. For exe^x, the Lagrange bound is e∣x∣∣x∣n+1(n+1)!e^{\lvert x \rvert}\tfrac{\lvert x \rvert^{n+1}}{(n + 1)!}, and the factorial eventually beats any power, so the error vanishes for every xx. For 11−x\tfrac{1}{1 - x}, the polynomials follow the curve only inside the interval of convergence:

Polynomials from the series for 1/(1 − x) The curve y = 1/(1 − x), rising toward an asymptote at x = 1, with the polynomials 1 + x + x² and 1 + x + ⋯ + x⁶. Between the dashed lines at x = −1 and x = 1 the polynomials close in on the curve as the degree rises; outside that interval they swing away from it. -11-1123456xy
  • y = 1/(1 − x)
  • P₂
  • P₆
Polynomials from the series for 1/(1 − x)

A Taylor series equals its function exactly where the errors of its polynomials shrink to zero. For all six series in the table, that is the whole interval of convergence.

Building new series from old

Derivatives can get messy, and there is rarely a need to compute them. A known series can be changed into a new one:

  • Substitute: replace xx by −x2-x^2, 2x2x or x3x^3.
  • Multiply by a power of xx.
  • Differentiate or integrate term by term, which keeps the radius of convergence (the endpoints need checking again).

Worked examples

Common mistakes

Practice problems

  1. Find the Maclaurin series of e3xe^{3x}.

    Answer

    ∑n=0∞3nxnn!\sum_{n=0}^{\infty} \tfrac{3^n x^n}{n!}

    Full solution

    Substitute 3x3x for xx in the series for exe^x: (3x)nn!=3nxnn!\tfrac{(3x)^n}{n!} = \tfrac{3^n x^n}{n!}.

  2. Find the Maclaurin series of xsin⁡xx\sin x.

    Answer

    ∑n=0∞(−1)nx2n+2(2n+1)!\sum_{n=0}^{\infty} \tfrac{(-1)^n x^{2n+2}}{(2n + 1)!}

    Full solution

    Multiply each term of the series for sin⁡x\sin x by xx: x2−x43!+x65!−⋯x^2 - \tfrac{x^4}{3!} + \tfrac{x^6}{5!} - \cdots

  3. Find the Maclaurin series of cos⁡(x2)\cos(x^2).

    Answer

    ∑n=0∞(−1)nx4n(2n)!\sum_{n=0}^{\infty} \tfrac{(-1)^n x^{4n}}{(2n)!}

    Full solution

    Substitute x2x^2 into the series for cos⁡x\cos x: 1−x42!+x84!−⋯1 - \tfrac{x^4}{2!} + \tfrac{x^8}{4!} - \cdots

  4. Starting from 11+x=1−x+x2−⋯\tfrac{1}{1 + x} = 1 - x + x^2 - \cdots, find the series for ln⁡(1+x)\ln(1 + x).

    Answer

    x−x22+x33−⋯x - \tfrac{x^2}{2} + \tfrac{x^3}{3} - \cdots

    Full solution

    ln⁡(1+x)=∫0xdt1+t\ln(1 + x) = \int_0^x \tfrac{dt}{1 + t}. Integrate term by term; the constant is 00 since ln⁡1=0\ln 1 = 0.

  5. Find the Taylor series of exe^x centered at 11.

    Answer

    ∑n=0∞en!(x−1)n\sum_{n=0}^{\infty} \tfrac{e}{n!}(x - 1)^n

    Full solution

    Every derivative of exe^x at 11 equals ee.

  6. Find the sums ∑n=0∞1n!\sum_{n=0}^{\infty} \tfrac{1}{n!} and ∑n=0∞(−1)n2n+1\sum_{n=0}^{\infty} \tfrac{(-1)^n}{2n + 1}.

    Answer

    ee and π4\tfrac{\pi}{4}

    Full solution

    The first is the series for exe^x at x=1x = 1. The second is the series for arctan⁡x\arctan x at x=1x = 1, and arctan⁡1=π4\arctan 1 = \tfrac{\pi}{4}.

  7. Find lim⁡x→01−cos⁡xx2\displaystyle\lim_{x \to 0} \frac{1 - \cos x}{x^2} using a series.

    Answer

    12\tfrac{1}{2}

    Full solution

    1−cos⁡x=x22−x424+⋯1 - \cos x = \tfrac{x^2}{2} - \tfrac{x^4}{24} + \cdots, so the quotient is 12−x224+⋯→12\tfrac{1}{2} - \tfrac{x^2}{24} + \cdots \to \tfrac{1}{2}.

  8. For f(x)=cos⁡(x2)f(x) = \cos(x^2), find f(4)(0)f^{(4)}(0) from its Maclaurin series.

    Answer

    −12-12

    Full solution

    The coefficient of x4x^4 is −12-\tfrac{1}{2}, and it equals f(4)(0)4!\tfrac{f^{(4)}(0)}{4!}. So f(4)(0)=24⋅(−12)f^{(4)}(0) = 24 \cdot \left(-\tfrac{1}{2}\right).

  9. Estimate ∫00.5sin⁡(x2) dx\int_0^{0.5} \sin(x^2)\,dx with two terms of a series.

    Answer

    About 0.041480.04148

    Full solution

    sin⁡(x2)=x2−x66+⋯\sin(x^2) = x^2 - \tfrac{x^6}{6} + \cdots, so the integral is 0.533−0.5742+⋯≈0.041667−0.000186\tfrac{0.5^3}{3} - \tfrac{0.5^7}{42} + \cdots \approx 0.041667 - 0.000186.

  10. A student writes the Maclaurin series of sin⁡2x\sin 2x as 2x−2x33!+2x55!−⋯2x - \tfrac{2x^3}{3!} + \tfrac{2x^5}{5!} - \cdots. What went wrong?

    Hint

    Substitute 2x2x for xx in each term, including the powers.

    Answer

    The 22 must be raised to each power: 2x−(2x)33!+(2x)55!−⋯2x - \tfrac{(2x)^3}{3!} + \tfrac{(2x)^5}{5!} - \cdots

    Full solution

    The student’s series is 2sin⁡x2\sin x. Substituting 2x2x gives 2x−8x36+32x5120−⋯2x - \tfrac{8x^3}{6} + \tfrac{32x^5}{120} - \cdots

    A check: the derivative of sin⁡2x\sin 2x at 00 is 2cos⁡0=22\cos 0 = 2, and its third derivative is −8cos⁡0=−8-8\cos 0 = -8, so the x3x^3 coefficient must be −83!\tfrac{-8}{3!}.

Frequently asked questions

What is a Taylor series?

The power series whose partial sums are the Taylor polynomials: the sum of f⁽ⁿ⁾(a)/n! (x − a)ⁿ from n = 0 to ∞.

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

A Maclaurin series is a Taylor series centered at a = 0.

What is the Maclaurin series for eˣ?

1 + x + x²/2! + x³/3! + ⋯, the sum of xⁿ/n!. It converges to eˣ for every x.

How do I find the series for e^(−x²) without derivatives?

Substitute −x² for x in the series for eˣ: the sum of (−1)ⁿx²ⁿ/n!.

Does differentiating or integrating a series change where it converges?

The radius of convergence stays the same, but convergence at the endpoints can change.

What to learn next