Taylor and Maclaurin Series
Taylor series expansion formula with common Maclaurin series for e^x, sin(x), cos(x), ln(1+x), and the geometric series.
Taylor Series Formula
This expands any infinitely differentiable function f(x) around a point a.
Variables
| Symbol | Meaning |
|---|---|
| f⁽ⁿ⁾(a) | The n-th derivative of f evaluated at point a |
| n! | n factorial (n × (n-1) × ... × 1) |
| a | The center point of expansion |
| (x - a)ⁿ | The n-th power of the distance from center |
Maclaurin Series (Taylor series at a = 0)
Common Maclaurin Series
| Function | Series | Converges for |
|---|---|---|
| e^x | 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/(1-x) | 1 + x + x² + x³ + ... | |x| < 1 |
| (1+x)^n | 1 + nx + n(n-1)x²/2! + ... | |x| < 1 |
| arctan(x) | x - x³/3 + x⁵/5 - x⁷/7 + ... | |x| ≤ 1 |
Example 1 — Expanding e^x
Write the first 5 terms of e^x
All derivatives of e^x equal e^x. At x=0: f⁽ⁿ⁾(0) = 1 for all n.
e^x = 1 + x + x²/2 + x³/6 + x⁴/24 + ...
e^1 ≈ 1 + 1 + 0.5 + 0.1667 + 0.0417 = 2.7083 (actual: 2.7183)
Example 2 — Approximating sin(0.1)
Use 3 terms of the Maclaurin series for sin(x)
sin(x) ≈ x - x³/6 + x⁵/120
sin(0.1) ≈ 0.1 - 0.001/6 + 0.00001/120
≈ 0.1 - 0.000167 + 0.000000083 = 0.099833
Actual value: 0.099833 (extremely accurate with just 3 terms!)