Dove's LibraryDove's Library

10.14 - Finding Taylor or Maclaurin Series for a Function

Definition of a Taylor Series

A Taylor series is an infinite series representation of a function, centered at x=cx = c:
f(x)=∑n=0∞f(n)(c)n!(x−c)n\boxed{f(x) = \sum_{n=0}^{\infty} \frac{f^{(n)}(c)}{n!}(x-c)^n}
Expanded form:
f(x)=f(c)+f′(c)(x−c)+f′′(c)2!(x−c)2+f′′′(c)3!(x−c)3+⋯f(x) = f(c) + f'(c)(x-c) + \frac{f''(c)}{2!}(x-c)^2 + \frac{f'''(c)}{3!}(x-c)^3 + \cdots
Key difference from Taylor polynomials: a Taylor series goes to infinity and actually equals the function, within its interval of convergence. A Taylor polynomial is just a finite approximation.
Taylor polynomials are partial sums of the Taylor series. The Taylor polynomial Pn(x)P_n(x) is the sum of all the series terms up through (x−c)n(x-c)^n. For exe^x:
P3(x)=1+x+x22!+x33!P_3(x) = 1 + x + \frac{x^2}{2!} + \frac{x^3}{3!}
That’s the series 1+x+x22!+x33!+x44!+⋯1 + x + \frac{x^2}{2!} + \frac{x^3}{3!} + \frac{x^4}{4!} + \cdots stopped after the x3x^3 term. Raising the degree means adding more terms of the series, and inside the interval of convergence, f(x)=lim⁡n→∞Pn(x)f(x) = \lim_{n \to \infty} P_n(x).
Watch the count: PnP_n stops at the power nn, not after nn terms. For sin⁡(x)\sin(x), P5(x)=x−x33!+x55!P_5(x) = x - \frac{x^3}{3!} + \frac{x^5}{5!} has only three terms, because the even powers are missing.

Maclaurin Series (a Special Case)

A Maclaurin series is just a Taylor series centered at x=0x = 0:
f(x)=∑n=0∞f(n)(0)n!xn\boxed{f(x) = \sum_{n=0}^{\infty} \frac{f^{(n)}(0)}{n!}x^n}
Expanded form:
f(x)=f(0)+f′(0)x+f′′(0)2!x2+f′′′(0)3!x3+⋯f(x) = f(0) + f'(0)x + \frac{f''(0)}{2!}x^2 + \frac{f'''(0)}{3!}x^3 + \cdots
Most problems involve Maclaurin series, centered at 0, rather than general Taylor series.

Four Essential Series to Memorize

You have to memorize these four fundamental Maclaurin series.

1. Exponential Function

ex=∑n=0∞xnn!=1+x+x22!+x33!+x44!+⋯\boxed{e^x = \sum_{n=0}^{\infty} \frac{x^n}{n!} = 1 + x + \frac{x^2}{2!} + \frac{x^3}{3!} + \frac{x^4}{4!} + \cdots}
Interval of convergence: (−∞,∞)(-\infty, \infty)

2. Sine Function

sin⁡(x)=∑n=0∞(−1)nx2n+1(2n+1)!=x−x33!+x55!−x77!+⋯\boxed{\sin(x) = \sum_{n=0}^{\infty} \frac{(-1)^n x^{2n+1}}{(2n+1)!} = x - \frac{x^3}{3!} + \frac{x^5}{5!} - \frac{x^7}{7!} + \cdots}
Interval of convergence: (−∞,∞)(-\infty, \infty)
Pattern: only odd powers, with alternating signs

3. Cosine Function

cos⁡(x)=∑n=0∞(−1)nx2n(2n)!=1−x22!+x44!−x66!+⋯\boxed{\cos(x) = \sum_{n=0}^{\infty} \frac{(-1)^n x^{2n}}{(2n)!} = 1 - \frac{x^2}{2!} + \frac{x^4}{4!} - \frac{x^6}{6!} + \cdots}
Interval of convergence: (−∞,∞)(-\infty, \infty)
Pattern: only even powers, with alternating signs

4. Geometric Series Form

11+x=∑n=0∞(−1)nxn=1−x+x2−x3+x4−⋯\boxed{\frac{1}{1+x} = \sum_{n=0}^{\infty} (-1)^n x^n = 1 - x + x^2 - x^3 + x^4 - \cdots}
Interval of convergence: (−1,1)(-1, 1)

Memory Aid for Sine and Cosine

The alphabetical trick:
  • Cosine comes before Sine alphabetically
  • Even comes before Odd alphabetically
So: - Cosine goes with even powers: x0,x2,x4,x6,…x^0, x^2, x^4, x^6, \ldots - Sine goes with odd powers: x1,x3,x5,x7,…x^1, x^3, x^5, x^7, \ldots

Deriving a Maclaurin Series from Scratch

Example: Deriving the Series for exe^x

Step 1: Find all the derivatives
f(x)=ex,f′(x)=ex,f′′(x)=ex,f′′′(x)=ex,…f(x) = e^x, \quad f'(x) = e^x, \quad f''(x) = e^x, \quad f'''(x) = e^x, \quad \ldots
Every derivative equals exe^x.
Step 2: Evaluate at x=0x = 0
f(0)=1,f′(0)=1,f′′(0)=1,f′′′(0)=1,…f(0) = 1, \quad f'(0) = 1, \quad f''(0) = 1, \quad f'''(0) = 1, \quad \ldots
They all equal 1.
Step 3: Plug into the Maclaurin formula
ex=10!+11!x+12!x2+13!x3+⋯=1+x+x22!+x33!+⋯=∑n=0∞xnn!e^x = \frac{1}{0!} + \frac{1}{1!}x + \frac{1}{2!}x^2 + \frac{1}{3!}x^3 + \cdots = 1 + x + \frac{x^2}{2!} + \frac{x^3}{3!} + \cdots = \sum_{n=0}^{\infty} \frac{x^n}{n!}

Example: A Taylor Series Centered at x=1x = 1

Find the Taylor series for f(x)=1xf(x) = \frac{1}{x} centered at x=1x = 1.
Step 1: Find the derivatives and spot the pattern
f(x)=x−1,f′(x)=−x−2,f′′(x)=2x−3,f′′′(x)=−6x−4,f(n)(x)=(−1)nn! x−(n+1)f(x) = x^{-1}, \quad f'(x) = -x^{-2}, \quad f''(x) = 2x^{-3}, \quad f'''(x) = -6x^{-4}, \quad f^{(n)}(x) = (-1)^n n!\, x^{-(n+1)}
Step 2: Evaluate at x=1x = 1
f(1)=1,f′(1)=−1,f′′(1)=2,f′′′(1)=−6,f(n)(1)=(−1)nn!f(1) = 1, \quad f'(1) = -1, \quad f''(1) = 2, \quad f'''(1) = -6, \quad f^{(n)}(1) = (-1)^n n!
Step 3: Plug into the Taylor formula. The n!n! cancels:
1x=∑n=0∞(−1)nn!n!(x−1)n=∑n=0∞(−1)n(x−1)n=1−(x−1)+(x−1)2−(x−1)3+⋯\frac{1}{x} = \sum_{n=0}^{\infty} \frac{(-1)^n n!}{n!}(x-1)^n = \sum_{n=0}^{\infty} (-1)^n (x-1)^n = 1 - (x-1) + (x-1)^2 - (x-1)^3 + \cdots
Check: 1x=11+(x−1)\frac{1}{x} = \frac{1}{1 + (x-1)}, which is the 11+x\frac{1}{1+x} series with x−1x - 1 in place of xx. It converges when ∣x−1∣<1|x - 1| < 1, so on (0,2)(0, 2).

The Geometric Series Connection

The series for 11−x\frac{1}{1-x} is actually a geometric series:
11−x=∑n=0∞xn=1+x+x2+x3+⋯\frac{1}{1-x} = \sum_{n=0}^{\infty} x^n = 1 + x + x^2 + x^3 + \cdots
This comes straight from the geometric series formula:
∑n=0∞arn=a1−r\sum_{n=0}^{\infty} ar^n = \frac{a}{1-r}
With a=1a = 1 and r=xr = x:
∑n=0∞xn=11−x\sum_{n=0}^{\infty} x^n = \frac{1}{1-x}
Related form:
11+x=11−(−x)=∑n=0∞(−x)n=∑n=0∞(−1)nxn\frac{1}{1+x} = \frac{1}{1-(-x)} = \sum_{n=0}^{\infty} (-x)^n = \sum_{n=0}^{\infty} (-1)^n x^n

Creating New Series by Substitution

Strategy: start with a known series and substitute a different expression for xx.

Example 1: The Series for sin⁡(x2)\sin(x^2)

Step 1: Write the known series for sin⁡(x)\sin(x)
sin⁡(x)=x−x33!+x55!−x77!+⋯\sin(x) = x - \frac{x^3}{3!} + \frac{x^5}{5!} - \frac{x^7}{7!} + \cdots
Step 2: Replace every xx with x2x^2
sin⁡(x2)=x2−(x2)33!+(x2)55!−(x2)77!+⋯\sin(x^2) = x^2 - \frac{(x^2)^3}{3!} + \frac{(x^2)^5}{5!} - \frac{(x^2)^7}{7!} + \cdots
Step 3: Simplify the exponents
sin⁡(x2)=x2−x63!+x105!−x147!+⋯\sin(x^2) = x^2 - \frac{x^6}{3!} + \frac{x^{10}}{5!} - \frac{x^{14}}{7!} + \cdots
Step 4: Write it in summation notation
sin⁡(x2)=∑n=0∞(−1)n(x2)2n+1(2n+1)!=∑n=0∞(−1)nx4n+2(2n+1)!\sin(x^2) = \sum_{n=0}^{\infty} \frac{(-1)^n (x^2)^{2n+1}}{(2n+1)!} = \sum_{n=0}^{\infty} \frac{(-1)^n x^{4n+2}}{(2n+1)!}

Example 2: The Series for e3xe^{3x}

Step 1: Write the known series for exe^x
ex=1+x+x22!+x33!+x44!+⋯e^x = 1 + x + \frac{x^2}{2!} + \frac{x^3}{3!} + \frac{x^4}{4!} + \cdots
Step 2: Replace every xx with 3x3x
e3x=1+3x+(3x)22!+(3x)33!+(3x)44!+⋯e^{3x} = 1 + 3x + \frac{(3x)^2}{2!} + \frac{(3x)^3}{3!} + \frac{(3x)^4}{4!} + \cdots
Step 3: Simplify
e3x=1+3x+9x22!+27x33!+81x44!+⋯e^{3x} = 1 + 3x + \frac{9x^2}{2!} + \frac{27x^3}{3!} + \frac{81x^4}{4!} + \cdots
Step 4: Summation notation
e3x=∑n=0∞(3x)nn!=∑n=0∞3nxnn!e^{3x} = \sum_{n=0}^{\infty} \frac{(3x)^n}{n!} = \sum_{n=0}^{\infty} \frac{3^n x^n}{n!}

Example 3: The Series for cos⁡(2x)\cos(2x)

Step 1: Start with cos⁡(x)\cos(x)
cos⁡(x)=1−x22!+x44!−x66!+⋯\cos(x) = 1 - \frac{x^2}{2!} + \frac{x^4}{4!} - \frac{x^6}{6!} + \cdots
Step 2: Replace xx with 2x2x
cos⁡(2x)=1−(2x)22!+(2x)44!−(2x)66!+⋯\cos(2x) = 1 - \frac{(2x)^2}{2!} + \frac{(2x)^4}{4!} - \frac{(2x)^6}{6!} + \cdots
Step 3: Simplify
cos⁡(2x)=1−4x22!+16x44!−64x66!+⋯\cos(2x) = 1 - \frac{4x^2}{2!} + \frac{16x^4}{4!} - \frac{64x^6}{6!} + \cdots
Step 4: Summation notation
cos⁡(2x)=∑n=0∞(−1)n(2x)2n(2n)!=∑n=0∞(−1)n22nx2n(2n)!\cos(2x) = \sum_{n=0}^{\infty} \frac{(-1)^n (2x)^{2n}}{(2n)!} = \sum_{n=0}^{\infty} \frac{(-1)^n 2^{2n} x^{2n}}{(2n)!}

Creating New Series by Multiplication

Strategy: multiply the entire series by a function or expression.

Example 4: The Series for x2exx^2 e^x

Step 1: Write the series for exe^x
ex=1+x+x22!+x33!+x44!+⋯e^x = 1 + x + \frac{x^2}{2!} + \frac{x^3}{3!} + \frac{x^4}{4!} + \cdots
Step 2: Multiply every term by x2x^2
x2ex=x2(1+x+x22!+x33!+x44!+⋯ )=x2+x3+x42!+x53!+x64!+⋯x^2 e^x = x^2 \left(1 + x + \frac{x^2}{2!} + \frac{x^3}{3!} + \frac{x^4}{4!} + \cdots\right) = x^2 + x^3 + \frac{x^4}{2!} + \frac{x^5}{3!} + \frac{x^6}{4!} + \cdots
Step 3: Summation notation
The general term from exe^x is xnn!\frac{x^n}{n!}. Multiply it by x2x^2 to get xn+2n!\frac{x^{n+2}}{n!}:
x2ex=∑n=0∞xn+2n!x^2 e^x = \sum_{n=0}^{\infty} \frac{x^{n+2}}{n!}

Example 5: The Series for xcos⁡(x)x\cos(x)

Step 1: Start with cos⁡(x)\cos(x)
cos⁡(x)=1−x22!+x44!−x66!+⋯\cos(x) = 1 - \frac{x^2}{2!} + \frac{x^4}{4!} - \frac{x^6}{6!} + \cdots
Step 2: Multiply every term by xx
xcos⁡(x)=x−x32!+x54!−x76!+⋯x\cos(x) = x - \frac{x^3}{2!} + \frac{x^5}{4!} - \frac{x^7}{6!} + \cdots
Step 3: Summation notation
xcos⁡(x)=∑n=0∞(−1)nx2n+1(2n)!x\cos(x) = \sum_{n=0}^{\infty} \frac{(-1)^n x^{2n+1}}{(2n)!}

First Few Terms vs. Summation Notation

Problems may ask for either format.

Option 1: The First Few Terms

“Find the first four terms of the Maclaurin series for sin⁡(x3)\sin(x^3).”
Answer: just write them out: x3−x93!+x155!−x217!x^3 - \frac{x^9}{3!} + \frac{x^{15}}{5!} - \frac{x^{21}}{7!}

Option 2: Summation Notation

“Find the Maclaurin series for sin⁡(x3)\sin(x^3) in summation notation.”
Answer: ∑n=0∞(−1)nx6n+3(2n+1)!\sum_{n=0}^{\infty} \frac{(-1)^n x^{6n+3}}{(2n+1)!}
Both are valid representations, so read the question carefully to know which one it wants.

Reading Information from a Taylor Series

A Taylor series stores every derivative of ff at the center. The coefficient of (x−c)n(x-c)^n is f(n)(c)n!\frac{f^{(n)}(c)}{n!}, so you can work backward:
f(n)(c)=n!⋅(coefficient of (x−c)n)f^{(n)}(c) = n! \cdot (\text{coefficient of } (x-c)^n)
The first few terms describe the graph at the center. The constant term is f(c)f(c), the coefficient of (x−c)(x-c) is f′(c)f'(c), and the coefficient of (x−c)2(x-c)^2 is f′′(c)2\frac{f''(c)}{2}. For cos⁡(x)=1−x22!+⋯\cos(x) = 1 - \frac{x^2}{2!} + \cdots, there’s no xx term, so f′(0)=0f'(0) = 0, and f′′(0)=2!⋅(−12!)=−1<0f''(0) = 2! \cdot \left(-\frac{1}{2!}\right) = -1 < 0. By the second derivative test, cos⁡(x)\cos(x) has a relative maximum at x=0x = 0.

Example 6: A Derivative from the Series

Find f(5)(0)f^{(5)}(0) for f(x)=x2exf(x) = x^2 e^x.
From Example 4, x2ex=x2+x3+x42!+x53!+⋯x^2 e^x = x^2 + x^3 + \frac{x^4}{2!} + \frac{x^5}{3!} + \cdots. The coefficient of x5x^5 is 13!\frac{1}{3!}, so
f(5)(0)=5!⋅13!=1206=20f^{(5)}(0) = 5! \cdot \frac{1}{3!} = \frac{120}{6} = 20
That’s much faster than taking five derivatives with the product rule.

Example 7: Recognizing a Series

Find the sum 1−2+222!−233!+244!−⋯1 - 2 + \frac{2^2}{2!} - \frac{2^3}{3!} + \frac{2^4}{4!} - \cdots.
This is the series for ex=1+x+x22!+x33!+⋯e^x = 1 + x + \frac{x^2}{2!} + \frac{x^3}{3!} + \cdots with x=−2x = -2, since the powers of −2-2 give the alternating signs. The exe^x series converges for every xx, so the sum is e−2≈0.135e^{-2} \approx 0.135.

Summary Table of Essential Series

Function
Series (first few terms)
Summation Notation
Interval
exe^x
1+x+x22!+x33!+⋯1 + x + \frac{x^2}{2!} + \frac{x^3}{3!} + \cdots
∑n=0∞xnn!\sum_{n=0}^{\infty} \frac{x^n}{n!}
(−∞,∞)(-\infty, \infty)
sin⁡(x)\sin(x)
x−x33!+x55!−x77!+⋯x - \frac{x^3}{3!} + \frac{x^5}{5!} - \frac{x^7}{7!} + \cdots
∑n=0∞(−1)nx2n+1(2n+1)!\sum_{n=0}^{\infty} \frac{(-1)^n x^{2n+1}}{(2n+1)!}
(−∞,∞)(-\infty, \infty)
cos⁡(x)\cos(x)
1−x22!+x44!−x66!+⋯1 - \frac{x^2}{2!} + \frac{x^4}{4!} - \frac{x^6}{6!} + \cdots
∑n=0∞(−1)nx2n(2n)!\sum_{n=0}^{\infty} \frac{(-1)^n x^{2n}}{(2n)!}
(−∞,∞)(-\infty, \infty)
11+x\frac{1}{1+x}
1−x+x2−x3+⋯1 - x + x^2 - x^3 + \cdots
∑n=0∞(−1)nxn\sum_{n=0}^{\infty} (-1)^n x^n
(−1,1)(-1, 1)
11−x\frac{1}{1-x}
1+x+x2+x3+⋯1 + x + x^2 + x^3 + \cdots
∑n=0∞xn\sum_{n=0}^{\infty} x^n
(−1,1)(-1, 1)

Step-by-Step Strategy

To find a series for a new function:
  1. Identify the parent function from the four memorized series
  1. Determine the transformation. Is it a substitution, meaning you replace xx with something else? A multiplication, meaning you multiply the whole series by an expression? Both?
  1. Apply the transformation to each term
  1. Simplify the exponents and coefficients
  1. Write the result in whichever form the problem wants

Common Transformations

Substitution Patterns

Original
Substitute
Result Function
exe^x
x→−xx \to -x
e−xe^{-x}
exe^x
x→x2x \to x^2
ex2e^{x^2}
sin⁡(x)\sin(x)
x→3xx \to 3x
sin⁡(3x)\sin(3x)
cos⁡(x)\cos(x)
x→x2x \to x^2
cos⁡(x2)\cos(x^2)
11+x\frac{1}{1+x}
x→x2x \to x^2
11+x2\frac{1}{1+x^2}

Multiplication Patterns

Series
Multiply By
Result
exe^x
xx
xexxe^x
sin⁡(x)\sin(x)
x2x^2
x2sin⁡(x)x^2\sin(x)
cos⁡(x)\cos(x)
xx
xcos⁡(x)x\cos(x)

Key Takeaways

  • Taylor series = an infinite series that equals the function, within its convergence interval
  • Maclaurin series = a Taylor series centered at x=0x = 0, which is the most common case
  • Memorize four series: exe^x, sin⁡(x)\sin(x), cos⁡(x)\cos(x), and 11+x\frac{1}{1+x}
  • Sine goes with odd powers (x1,x3,x5,…x^1, x^3, x^5, \ldots), and cosine goes with even powers (x0,x2,x4,…x^0, x^2, x^4, \ldots)
  • Alphabetical memory aid: Cosine/Even come before Sine/Odd
  • Substitution method: replace xx with a new expression in a known series
  • Multiplication method: multiply the entire series by an expression
  • Two answer formats: the first few terms, or summation notation
  • 11−x\frac{1}{1-x} is a geometric series: ∑n=0∞xn\sum_{n=0}^{\infty} x^n, which converges only on (−1,1)(-1, 1)
  • The exponential and trig series converge everywhere: (−∞,∞)(-\infty, \infty)
  • Power to a power rule: (xa)b=xab(x^a)^b = x^{ab} when you’re simplifying exponents
  • Don’t forget the factorials in the denominators for exe^x, sin⁡(x)\sin(x), and cos⁡(x)\cos(x)

AP® is a registered trademark of the College Board, which is not affiliated with Dove's Library and was not involved in the production of, and does not endorse, this website.

Providing free, high-quality AP notes to help students succeed, earn college credit, and reach their educational goals, ensuring everyone has access to the resources they need.

© 2026 Standard Learning Group, Inc., which operates Dove's Library. All rights reserved.