01 / 20

Taylor & Maclaurin
Expansions

Learn how to represent any smooth function as an infinite polynomial series, approximate values, and understand convergence.

Calculus 2

What Is a Power Series?

A power series is an infinite sum of terms involving increasing powers of \( (x - a) \):

The key idea: we can express complicated functions (like \( \sin x \), \( e^x \), \( \ln(1+x) \)) as polynomials with infinitely many terms: much easier to compute and analyze.

Polynomial Approximation

Near a point \( x = a \), we build polynomials that match the function's value, slope, curvature, and higher derivatives: each additional term improves accuracy.

Why Taylor Series Matter

Computation
Calculators use Taylor polynomials to evaluate \( \sin x \), \( e^x \), \( \ln x \), and more.
Physics
Small-angle approximation \( \sin\theta \approx \theta \) is just the first-order Taylor expansion.
Analysis
Determine limits, integrals, and differential equation solutions by working with series.

The Taylor Series Formula

1
\( f^{(n)}(a) \): the \( n \)-th derivative of \( f \) evaluated at center \( a \).
2
\( n! \): factorial normalization that keeps the coefficients from blowing up.
3
\( (x - a)^n \): powers of the distance from center: terms shrink when \( x \) is close to \( a \).

The Maclaurin Series: \( a = 0 \)

A Maclaurin series is simply a Taylor series centered at \( a = 0 \):

Most of the famous series you memorize (\( e^x \), \( \sin x \), \( \cos x \)) are Maclaurin series because centering at zero produces the simplest coefficients.

Taylor vs Maclaurin

Taylor Series Maclaurin Series
Center Any point \( a \) \( a = 0 \)
General Term \( \dfrac{f^{(n)}(a)}{n!}(x-a)^n \) \( \dfrac{f^{(n)}(0)}{n!}\,x^n \)
When to Use Approximation near any \( a \) Approximation near \( x = 0 \)
Example \( \ln x \) about \( a = 1 \) \( e^x \) about \( a = 0 \)

Essential Maclaurin Series

\( e^x \)
\( \displaystyle\sum_{n=0}^{\infty}\frac{x^n}{n!} = 1 + x + \frac{x^2}{2!} + \cdots \)
Converges for all \( x \).
\( \sin x \)
\( \displaystyle\sum_{n=0}^{\infty}\frac{(-1)^n x^{2n+1}}{(2n+1)!} = x - \frac{x^3}{3!} + \cdots \)
Converges for all \( x \).
\( \cos x \)
\( \displaystyle\sum_{n=0}^{\infty}\frac{(-1)^n x^{2n}}{(2n)!} = 1 - \frac{x^2}{2!} + \cdots \)
Converges for all \( x \).
\( \frac{1}{1-x} \)
\( \displaystyle\sum_{n=0}^{\infty}x^n = 1 + x + x^2 + \cdots \)
Converges for \( |x| < 1 \).

How to Build a Taylor Series

1
Choose center \( a \). Pick the point around which you are expanding.
2
Compute derivatives. Find \( f(a),\; f'(a),\; f''(a),\; f'''(a), \ldots \)
3
Form the general term. Write \( \dfrac{f^{(n)}(a)}{n!}(x-a)^n \).
4
Look for a pattern. Express the \( n \)-th coefficient in closed form.
5
Determine convergence. Use the Ratio Test or known intervals to state where the series converges.

Example 1: Maclaurin Series for \( e^x \)

Goal: Derive the Maclaurin series for \( f(x) = e^x \).

1
Center: \( a = 0 \).
2
Derivatives: \( f^{(n)}(x) = e^x \) for all \( n \), so \( f^{(n)}(0) = 1 \).
3
General term: \( \dfrac{1}{n!}\,x^n \).

Example 2: Maclaurin Series for \( \sin x \)

Derivatives at \( a = 0 \):

\( n \) \( f^{(n)}(x) \) \( f^{(n)}(0) \)
0\( \sin x \)0
1\( \cos x \)1
2\( -\sin x \)0
3\( -\cos x \)-1
4\( \sin x \)0

Example 3: \( \ln(1+x) \)

Strategy: Integrate the geometric series \( \dfrac{1}{1+x} = \displaystyle\sum_{n=0}^{\infty}(-1)^n x^n \) for \( |x| < 1 \).

Visualizing Convergence

Radius of Convergence

The radius of convergence \( R \) tells you how far from the center \( a \) the series converges. Use the Ratio Test:

\( R = \infty \)
Converges everywhere: \( e^x \), \( \sin x \), \( \cos x \).
\( R = 1 \)
Converges on \( (-1, 1) \): geometric series, \( \ln(1+x) \).
\( R = 0 \)
Converges only at \( x = a \): extremely rare in practice.

Common Mistakes

✕ Forgetting the Factorial
Writing \( f^{(n)}(a)(x-a)^n \) instead of dividing by \( n! \). The factorial is essential for convergence.
✕ Wrong Center
Evaluating derivatives at \( x = 0 \) when the series is centered at \( a \neq 0 \). Always evaluate at \( a \).
✕ Ignoring Endpoints
Stating convergence on \( (a-R, a+R) \) without testing endpoints. Each endpoint may converge or diverge independently.
✕ Sign Errors
Losing the \( (-1)^n \) factor in alternating series like \( \sin x \) or \( \ln(1+x) \).

Summary of Key Series

Function Maclaurin Series Radius \( R \)
\( e^x \) \( \displaystyle\sum_{n=0}^{\infty} \frac{x^n}{n!} \) \( \infty \)
\( \sin x \) \( \displaystyle\sum_{n=0}^{\infty} \frac{(-1)^n x^{2n+1}}{(2n+1)!} \) \( \infty \)
\( \cos x \) \( \displaystyle\sum_{n=0}^{\infty} \frac{(-1)^n x^{2n}}{(2n)!} \) \( \infty \)
\( \dfrac{1}{1-x} \) \( \displaystyle\sum_{n=0}^{\infty} x^n \) \( 1 \)
\( \ln(1+x) \) \( \displaystyle\sum_{n=0}^{\infty} \frac{(-1)^n x^{n+1}}{n+1} \) \( 1 \)

Question 1 of 5

What is the general term of the Taylor series of \( f(x) \) centered at \( x = a \)?

Question 2 of 5

Which of the following is the Maclaurin series for \( \cos x \)?

Question 3 of 5

What is the coefficient of \( x^3 \) in the Maclaurin series for \( e^x \)?

Question 4 of 5

The Maclaurin series for \( \dfrac{1}{1-x} \) converges for which values of \( x \)?

Question 5 of 5

Find the third-degree Taylor polynomial for \( f(x) = \ln x \) centered at \( a = 1 \).