Taylor's Series- Complete Mathematical Explanation
What Taylor's Series Actually Is
Taylor's Series is a way to represent any smooth function as an infinite sum of polynomial terms. That's it. No magic, no philosophy.
You take a function f(x), pick a point a, and express it as a polynomial where each term uses the function's derivatives at that point. The further you go from point a, the more terms you need for accuracy.
Engineers use this constantly. Physicists use it. Anyone doing numerical computation uses it. If you've ever approximated sin(0.1) by hand, you were using a simplified Taylor polynomial without knowing the name.
The Formula
Here is the Taylor Series expansion of f(x) around the point a:
f(x) = f(a) + f'(a)(x-a) + f''(a)/2!(x-a)² + f'''(a)/3!(x-a)³ + ...
In compact notation:
f(x) = Σ(n=0 to ∞) f⁽ⁿ⁾(a)/n! · (x-a)ⁿ
The terms are straightforward. Each term has:
- The nth derivative of f evaluated at a
- Divided by n factorial
- Multiplied by (x-a) to the power n
Maclaurin Series: The Special Case
When a = 0, you get a Maclaurin Series. It's just Taylor's Series with a = 0. Most textbooks start here because the math is cleaner.
f(x) = f(0) + f'(0)x + f''(0)/2!x² + f'''(0)/3!x³ + ...
Every Taylor Series is a Maclaurin Series when you're expanding around zero. Don't let the terminology confuse you.
Common Taylor Series You Need to Know
These are the ones you'll encounter constantly. Memorize them or know where to find them.
| Function | Taylor Series Expansion | Valid For |
|---|---|---|
| eˣ | 1 + x + x²/2! + x³/3! + ... | All x |
| sin(x) | x - x³/3! + x⁵/5! - x⁷/7! + ... | All x |
| cos(x) | 1 - x²/2! + x⁴/4! - x⁶/6! + ... | All x |
| ln(1+x) | x - x²/2 + x³/3 - x⁴/4 + ... | -1 < x ≤ 1 |
| (1+x)ʳ | 1 + rx + r(r-1)x²/2! + ... | |x| < 1 |
Notice the pattern in sin and cos. The odd terms cancel for cos, the even terms cancel for sin. The alternating signs come from the derivatives at zero.
How to Derive Taylor Series (The Logic)
Here's the thinking behind it. You want a polynomial P(x) that matches f(x) at point a. Start simple.
Step 1: Set P(a) = f(a). This gives you the constant term.
Step 2: Make the derivatives match. P'(a) = f'(a). This forces the linear term to be f'(a)(x-a).
Step 3: Match the second derivative. P''(a) = f''(a). This determines the quadratic coefficient.
Step 4: Continue. Match every derivative you need. Each new condition fixes one more coefficient.
You end up with exactly the formula above. The factorial in the denominator appears because differentiating (x-a)ⁿ n times gives n!.
The Remainder Term
In practice, you use a finite number of terms. The error is called the remainder. Lagrange's form tells you the maximum possible error.
Rₙ(x) = f⁽ⁿ⁺¹⁾(ξ)/(n+1)! · (x-a)ⁿ⁺¹
Where ξ is some value between a and x. You rarely know ξ exactly, but you can bound it if you know the derivative bounds.
Example: If you're approximating eˣ with 3 terms and want error less than 0.001, you need to find n where |x|ⁿ⁺¹/(n+1)! is small enough.
Getting Started: How To Find a Taylor Series
1. Identify your function f(x) and expansion point a.
2. Calculate derivatives up to the order you need.
For eˣ around a = 0:
- f(x) = eˣ → f(0) = 1
- f'(x) = eˣ → f'(0) = 1
- f''(x) = eˣ → f''(0) = 1
All derivatives are 1. Every single one. That's why eˣ is the easiest Taylor series.
3. Plug into the formula.
eˣ = 1 + 1·x + 1·x²/2! + 1·x³/3! + ... = Σxⁿ/n!
4. Check the radius of convergence.
Some series converge only within a certain interval. The geometric series for 1/(1-x) converges only for |x| < 1. Use the ratio test to find your interval.
Why This Matters
Taylor series let you replace transcendental functions (sin, eˣ, ln) with polynomials. Polynomials are easy to compute, differentiate, and integrate.
Your calculator uses Taylor polynomials to compute sin(2.5). Computers don't know what sine is geometrically—they approximate it with polynomials.
In physics, you often approximate a complex problem by keeping only the first few terms. The small angle approximation sin(x) ≈ x is just the first term of sin(x)'s Taylor series.
Common Mistakes
- Forgetting that derivatives are evaluated at a, not at x
- Not checking convergence—writing an infinite series that doesn't converge
- Using too few terms and getting garbage answers
- Confusing Taylor and Maclaurin—Maclaurin is Taylor at a = 0
The Bottom Line
Taylor's Series is a tool. You derive it once, understand why it works, then use it when needed. You don't need to memorize every series forever. You need to know the method so you can derive any series from scratch.
When you encounter a function you can't handle, expand it around a convenient point. Match derivatives. Stop when your error is acceptable. That's the whole game.