Definition of a Taylor Series
A
Taylor series is an infinite series representation of a function, centered at
x=c:
f(x)=n=0∑∞n!f(n)(c)(x−c)nExpanded form:
f(x)=f(c)+f′(c)(x−c)+2!f′′(c)(x−c)2+3!f′′′(c)(x−c)3+⋯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) is the sum of all the series terms up through
(x−c)n. For
ex:
P3(x)=1+x+2!x2+3!x3That’s the series
1+x+2!x2+3!x3+4!x4+⋯ stopped after the
x3 term. Raising the degree means adding more terms of the series, and inside the interval of convergence,
f(x)=limn→∞Pn(x).
Watch the count: Pn stops at the power
n, not after
n terms. For
sin(x),
P5(x)=x−3!x3+5!x5 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=0:
f(x)=n=0∑∞n!f(n)(0)xnExpanded form:
f(x)=f(0)+f′(0)x+2!f′′(0)x2+3!f′′′(0)x3+⋯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∑∞n!xn=1+x+2!x2+3!x3+4!x4+⋯Interval of convergence: (−∞,∞) 2. Sine Function
sin(x)=n=0∑∞(2n+1)!(−1)nx2n+1=x−3!x3+5!x5−7!x7+⋯Interval of convergence: (−∞,∞) Pattern: only odd powers, with alternating signs
3. Cosine Function
cos(x)=n=0∑∞(2n)!(−1)nx2n=1−2!x2+4!x4−6!x6+⋯Interval of convergence: (−∞,∞) Pattern: only even powers, with alternating signs
4. Geometric Series Form
1+x1=n=0∑∞(−1)nxn=1−x+x2−x3+x4−⋯Interval of convergence: (−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,…
-
Sine goes with
odd powers:
x1,x3,x5,x7,…
Deriving a Maclaurin Series from Scratch
Example: Deriving the Series for ex
Step 1: Find all the derivatives
f(x)=ex,f′(x)=ex,f′′(x)=ex,f′′′(x)=ex,…Every derivative equals
ex.
Step 2: Evaluate at x=0 f(0)=1,f′(0)=1,f′′(0)=1,f′′′(0)=1,…They all equal 1.
Step 3: Plug into the Maclaurin formula
ex=0!1+1!1x+2!1x2+3!1x3+⋯=1+x+2!x2+3!x3+⋯=n=0∑∞n!xnExample: A Taylor Series Centered at x=1
Find the Taylor series for
f(x)=x1 centered at
x=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)Step 2: Evaluate at x=1 f(1)=1,f′(1)=−1,f′′(1)=2,f′′′(1)=−6,f(n)(1)=(−1)nn!Step 3: Plug into the Taylor formula. The
n! cancels:
x1=n=0∑∞n!(−1)nn!(x−1)n=n=0∑∞(−1)n(x−1)n=1−(x−1)+(x−1)2−(x−1)3+⋯Check: x1=1+(x−1)1, which is the
1+x1 series with
x−1 in place of
x. It converges when
∣x−1∣<1, so on
(0,2).
The Geometric Series Connection
The series for
1−x1 is actually a
geometric series:
1−x1=n=0∑∞xn=1+x+x2+x3+⋯This comes straight from the geometric series formula:
n=0∑∞arn=1−raWith
a=1 and
r=x:
n=0∑∞xn=1−x1Related form:
1+x1=1−(−x)1=n=0∑∞(−x)n=n=0∑∞(−1)nxn
Creating New Series by Substitution
Strategy: start with a known series and substitute a different expression for
x.
Example 1: The Series for sin(x2)
Step 1: Write the known series for
sin(x) sin(x)=x−3!x3+5!x5−7!x7+⋯Step 2: Replace every
x with
x2 sin(x2)=x2−3!(x2)3+5!(x2)5−7!(x2)7+⋯Step 3: Simplify the exponents
sin(x2)=x2−3!x6+5!x10−7!x14+⋯Step 4: Write it in summation notation
sin(x2)=n=0∑∞(2n+1)!(−1)n(x2)2n+1=n=0∑∞(2n+1)!(−1)nx4n+2Example 2: The Series for e3x
Step 1: Write the known series for
ex ex=1+x+2!x2+3!x3+4!x4+⋯Step 2: Replace every
x with
3x e3x=1+3x+2!(3x)2+3!(3x)3+4!(3x)4+⋯Step 3: Simplify
e3x=1+3x+2!9x2+3!27x3+4!81x4+⋯Step 4: Summation notation
e3x=n=0∑∞n!(3x)n=n=0∑∞n!3nxnExample 3: The Series for cos(2x)
Step 1: Start with
cos(x) cos(x)=1−2!x2+4!x4−6!x6+⋯Step 2: Replace
x with
2x cos(2x)=1−2!(2x)2+4!(2x)4−6!(2x)6+⋯Step 3: Simplify
cos(2x)=1−2!4x2+4!16x4−6!64x6+⋯Step 4: Summation notation
cos(2x)=n=0∑∞(2n)!(−1)n(2x)2n=n=0∑∞(2n)!(−1)n22nx2n
Creating New Series by Multiplication
Strategy: multiply the entire series by a function or expression.
Example 4: The Series for x2ex
Step 1: Write the series for
ex ex=1+x+2!x2+3!x3+4!x4+⋯Step 2: Multiply every term by
x2 x2ex=x2(1+x+2!x2+3!x3+4!x4+⋯)=x2+x3+2!x4+3!x5+4!x6+⋯Step 3: Summation notation
The general term from
ex is
n!xn. Multiply it by
x2 to get
n!xn+2:
x2ex=n=0∑∞n!xn+2Example 5: The Series for xcos(x)
Step 1: Start with
cos(x) cos(x)=1−2!x2+4!x4−6!x6+⋯Step 2: Multiply every term by
x xcos(x)=x−2!x3+4!x5−6!x7+⋯Step 3: Summation notation
xcos(x)=n=0∑∞(2n)!(−1)nx2n+1
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).”
Answer: just write them out:
x3−3!x9+5!x15−7!x21 Option 2: Summation Notation
“Find the Maclaurin series for
sin(x3) in summation notation.”
Answer: ∑n=0∞(2n+1)!(−1)nx6n+3 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
f at the center. The coefficient of
(x−c)n is
n!f(n)(c), so you can work backward:
f(n)(c)=n!⋅(coefficient of (x−c)n)The first few terms describe the graph at the center. The constant term is
f(c), the coefficient of
(x−c) is
f′(c), and the coefficient of
(x−c)2 is
2f′′(c). For
cos(x)=1−2!x2+⋯, there’s no
x term, so
f′(0)=0, and
f′′(0)=2!⋅(−2!1)=−1<0. By the second derivative test,
cos(x) has a relative maximum at
x=0.
Example 6: A Derivative from the Series
Find
f(5)(0) for
f(x)=x2ex.
From Example 4,
x2ex=x2+x3+2!x4+3!x5+⋯. The coefficient of
x5 is
3!1, so
f(5)(0)=5!⋅3!1=6120=20That’s much faster than taking five derivatives with the product rule.
Example 7: Recognizing a Series
Find the sum
1−2+2!22−3!23+4!24−⋯.
This is the series for
ex=1+x+2!x2+3!x3+⋯ with
x=−2, since the powers of
−2 give the alternating signs. The
ex series converges for every
x, so the sum is
e−2≈0.135.
Summary Table of Essential Series
| 1+x+2!x2+3!x3+⋯ | ∑n=0∞n!xn | (−∞,∞) |
| x−3!x3+5!x5−7!x7+⋯ | ∑n=0∞(2n+1)!(−1)nx2n+1 | (−∞,∞) |
| 1−2!x2+4!x4−6!x6+⋯ | ∑n=0∞(2n)!(−1)nx2n | (−∞,∞) |
| 1−x+x2−x3+⋯ | ∑n=0∞(−1)nxn | |
| 1+x+x2+x3+⋯ | ∑n=0∞xn | |
Step-by-Step Strategy
To find a series for a new function:
- Identify the parent function from the four memorized series
- Determine the transformation. Is it a substitution, meaning you replace x with something else? A multiplication, meaning you multiply the whole series by an expression? Both?
- Apply the transformation to each term
- Simplify the exponents and coefficients
- Write the result in whichever form the problem wants
Common Transformations
Substitution Patterns
| | |
| | |
| | |
| | |
| | 1+x21 |
Multiplication Patterns
| | |
| | x2sin(x) |
| | |
Key Takeaways
- Taylor series = an infinite series that equals the function, within its convergence interval
- Maclaurin series = a Taylor series centered at x=0, which is the most common case
- Memorize four series: ex, sin(x), cos(x), and 1+x1
- Sine goes with odd powers (x1,x3,x5,…), and cosine goes with even powers (x0,x2,x4,…)
- Alphabetical memory aid: Cosine/Even come before Sine/Odd
- Substitution method: replace x 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
- 1−x1 is a geometric series: ∑n=0∞xn, which converges only on (−1,1)
- The exponential and trig series converge everywhere: (−∞,∞)
- Power to a power rule: (xa)b=xab when you’re simplifying exponents
- Don’t forget the factorials in the denominators for ex, sin(x), and cos(x)