Fiveable

Calculus II Unit 6 Review

QR code for Calculus II practice questions

6.4 Working with Taylor Series

6.4 Working with Taylor Series

Written by the Fiveable Content Team • Last updated August 2025
Written by the Fiveable Content Team • Last updated August 2025
Calculus II
Unit & Topic Study Guides

Binomial Series and Taylor Series

Taylor and binomial series let you represent functions as infinite sums of polynomial terms. This is useful when you need to approximate values, evaluate integrals that have no closed-form antiderivative, or solve differential equations that resist standard techniques. This section covers how to build these series, recognize common ones, and put them to work.

Terms of the Binomial Series

The binomial series expands (1+x)n(1+x)^n for any real exponent nn (not just positive integers) when x<1|x| < 1:

(1+x)n=k=0(nk)xk=1+nx+n(n1)2!x2+n(n1)(n2)3!x3+(1+x)^n = \sum_{k=0}^{\infty} \binom{n}{k} x^k = 1 + nx + \frac{n(n-1)}{2!}x^2 + \frac{n(n-1)(n-2)}{3!}x^3 + \cdots

The generalized binomial coefficient for any real nn is:

(nk)=n(n1)(n2)(nk+1)k!\binom{n}{k} = \frac{n(n-1)(n-2)\cdots(n-k+1)}{k!}

Note: this is not the same as n!k!(nk)!\frac{n!}{k!(n-k)!}, which only works when nn is a non-negative integer. The generalized form works for any real nn, including fractions and negatives. For example, you can expand (1+x)1/2(1+x)^{1/2} or (1+x)3(1+x)^{-3} this way.

Taylor Series for Common Functions

A Taylor series represents a function as an infinite sum built from its derivatives at a single point. You should have these common Maclaurin series (centered at a=0a = 0) memorized:

  • ex=n=0xnn!=1+x+x22!+x33!+e^x = \sum_{n=0}^{\infty} \frac{x^n}{n!} = 1 + x + \frac{x^2}{2!} + \frac{x^3}{3!} + \cdots   (converges for all xx)
  • sin(x)=n=0(1)nx2n+1(2n+1)!=xx33!+x55!\sin(x) = \sum_{n=0}^{\infty} \frac{(-1)^n x^{2n+1}}{(2n+1)!} = x - \frac{x^3}{3!} + \frac{x^5}{5!} - \cdots   (converges for all xx)
  • cos(x)=n=0(1)nx2n(2n)!=1x22!+x44!\cos(x) = \sum_{n=0}^{\infty} \frac{(-1)^n x^{2n}}{(2n)!} = 1 - \frac{x^2}{2!} + \frac{x^4}{4!} - \cdots   (converges for all xx)
  • 11x=n=0xn=1+x+x2+x3+\frac{1}{1-x} = \sum_{n=0}^{\infty} x^n = 1 + x + x^2 + x^3 + \cdots   (converges for x<1|x| < 1)
  • ln(1+x)=n=1(1)n+1xnn=xx22+x33\ln(1+x) = \sum_{n=1}^{\infty} \frac{(-1)^{n+1} x^n}{n} = x - \frac{x^2}{2} + \frac{x^3}{3} - \cdots   (converges for 1<x1-1 < x \leq 1)
  • (1+x)n=k=0(nk)xk(1+x)^n = \sum_{k=0}^{\infty} \binom{n}{k} x^k   (converges for x<1|x| < 1, any real nn)

These are called analytic functions within their radius of convergence: the Taylor series actually equals the function, not just approximates it.

Terms of binomial series, Binomial Theorem | Algebra and Trigonometry

Techniques for Working with Taylor Series

Building a Taylor series from scratch centered at x=ax = a:

  1. Compute f(a),  f(a),  f(a),  f(a),f(a),\; f'(a),\; f''(a),\; f'''(a), \ldots up to the desired order.
  2. Plug into the formula: f(x)=n=0f(n)(a)n!(xa)nf(x) = \sum_{n=0}^{\infty} \frac{f^{(n)}(a)}{n!}(x-a)^n

A Maclaurin series is just a Taylor series with a=0a = 0.

Often, though, you don't need to compute derivatives from scratch. Instead, you can manipulate known series. These techniques save significant time:

  • Substitution: Replace xx with an expression. For instance, the series for ex2e^{-x^2} comes from substituting x2-x^2 for xx in the exe^x series: ex2=1x2+x42!x63!+e^{-x^2} = 1 - x^2 + \frac{x^4}{2!} - \frac{x^6}{3!} + \cdots
  • Multiplication: Multiply a known series by xkx^k or by another series.
  • Differentiation: Differentiate a known series term by term. For example, differentiating the geometric series 11x\frac{1}{1-x} gives the series for 1(1x)2\frac{1}{(1-x)^2}.
  • Integration: Integrate a known series term by term. The series for ln(1+x)\ln(1+x) can be obtained by integrating 11+x=1x+x2\frac{1}{1+x} = 1 - x + x^2 - \cdots

The Taylor Remainder Theorem gives you a bound on the error when you truncate a Taylor series after nn terms. The remainder Rn(x)R_n(x) satisfies:

Rn(x)M(n+1)!xan+1|R_n(x)| \leq \frac{M}{(n+1)!}|x-a|^{n+1}

where MM is an upper bound on f(n+1)(c)|f^{(n+1)}(c)| for cc between aa and xx. This tells you how many terms you need for a given accuracy.

Taylor Series in Differential Equations

You can approximate solutions to differential equations by assuming the solution is a power series and then finding its coefficients.

General method:

  1. Assume y=n=0anxny = \sum_{n=0}^{\infty} a_n x^n.
  2. Compute yy', yy'', etc. as needed by differentiating term by term.
  3. Substitute into the differential equation.
  4. Equate coefficients of like powers of xx to get a system of equations for the ana_n.
  5. Use initial conditions to pin down specific values, then solve for the remaining coefficients.
  6. Write out the series solution.

Example: Solve y=yy' = y with y(0)=1y(0) = 1.

  1. Assume y=n=0anxny = \sum_{n=0}^{\infty} a_n x^n.
  2. Then y=n=1nanxn1=n=0(n+1)an+1xny' = \sum_{n=1}^{\infty} n a_n x^{n-1} = \sum_{n=0}^{\infty} (n+1)a_{n+1} x^n (re-index to match powers).
  3. Setting y=yy' = y: (n+1)an+1=an(n+1)a_{n+1} = a_n for all n0n \geq 0.
  4. From the initial condition: a0=y(0)=1a_0 = y(0) = 1.
  5. The recurrence gives a1=1a_1 = 1, a2=12a_2 = \frac{1}{2}, a3=16a_3 = \frac{1}{6}, and in general an=1n!a_n = \frac{1}{n!}.
  6. The solution is y=n=0xnn!=exy = \sum_{n=0}^{\infty} \frac{x^n}{n!} = e^x, which you can verify directly.
Terms of binomial series, Binomial theorem - Wikipedia

Complex Integrals via Taylor Series

Some integrals have no elementary antiderivative (like ex2dx\int e^{-x^2}\,dx), but you can still evaluate them by expanding the integrand as a Taylor series and integrating term by term.

Method:

  1. Replace the integrand with its Taylor series.
  2. Integrate each term of the series individually.
  3. Check that the interval of convergence includes your limits of integration.
  4. Sum enough terms to reach the desired accuracy.

Example: Evaluate 0111+x2dx\int_{0}^{1} \frac{1}{1+x^2}\,dx using Taylor series.

  1. Recognize that 11+x2\frac{1}{1+x^2} is a geometric series with x2x^2 substituted for xx in 11(x2)\frac{1}{1-(-x^2)}: 11+x2=1x2+x4x6+for x<1\frac{1}{1+x^2} = 1 - x^2 + x^4 - x^6 + \cdots \quad \text{for } |x| < 1

  2. Integrate term by term: 01(1x2+x4x6+)dx=[xx33+x55x77+]01\int_{0}^{1} \left(1 - x^2 + x^4 - x^6 + \cdots\right) dx = \left[x - \frac{x^3}{3} + \frac{x^5}{5} - \frac{x^7}{7} + \cdots\right]_{0}^{1}

  3. Evaluate: 113+1517+1 - \frac{1}{3} + \frac{1}{5} - \frac{1}{7} + \cdots

  4. This is the Leibniz formula, and it converges to π4\frac{\pi}{4}. (The series converges at x=1x = 1 even though the radius of convergence is 1, because this is an alternating series whose terms decrease to 0.)

A subtlety worth noting: the geometric series converges for x<1|x| < 1, but the integrated series actually converges at x=1x = 1 as well. This is justified by Abel's theorem, which guarantees that if a power series converges at an endpoint, its sum equals the limit of the function as you approach that endpoint.

Applications and Convergence

Convergence Analysis

To find the radius of convergence RR of a Taylor series, use the ratio test:

R=limnanan+1R = \lim_{n \to \infty} \left|\frac{a_n}{a_{n+1}}\right|

or the root test:

1R=limnan1/n\frac{1}{R} = \lim_{n \to \infty} |a_n|^{1/n}

The series converges absolutely for xa<R|x - a| < R and diverges for xa>R|x - a| > R. You must check the endpoints x=a±Rx = a \pm R separately.

As you include more terms in a Taylor polynomial, the approximation improves within the interval of convergence. Outside that interval, adding more terms actually makes the approximation worse, which is a common source of confusion.