Taylor and Maclaurin series
Many functions can be written as an infinite polynomial, called a power series. The first few terms give an approximation that is excellent near the expansion point. This is how calculators work out sin, eˣ and ln. It is also how physicists simplify equations for small angles.
Key facts
- Maclaurin series: f(x) = f(0) + f′(0)x + (f″(0))/(2!) x^2 + (f‴(0))/(3!) x^3 + …
- Taylor series about a: f(a + h) = f(a) + hf′(a) + (h^2)/(2!) f″(a) + …
- e^x = 1 + x + (x^2)/(2!) + (x^3)/(3!) + … for all x.
- sin x = x − (x^3)/(3!) + (x^5)/(5!) − … and cos x = 1 − (x^2)/(2!) + (x^4)/(4!) − … (x in radians).
- ln(1 + x) = x − (x^2)/2 + (x^3)/3 − … for −1 < x ≤ 1. Also (1 + x)^n = 1 + nx + (n(n − 1))/(2!) x^2 + … for |x| < 1.
- Substitute into known series (x → 2x, x → −x², …) rather than differentiating from scratch.
Worked examples
Example 1
Use the first three terms of the series for eˣ to estimate e^0.2.
- First three terms: e^x ≈ 1 + x + (x^2)/2
- Put x = 0.2. 1 + 0.2 + 0.04/2 = 1.22
- The next term is (x^3)/6 ≈ 0.0013. It accounts for most of the difference.
Answer: 1.22 (true value 1.2214…)
Example 2
Find the Maclaurin series of ln(1 + 2x) up to the x³ term, and say where it is valid.
- Replace x by 2x in the series for ln(1 + x). 2x − ((2x)^2)/2 + ((2x)^3)/3
- Simplify. 2x − 2x^2 + (8x^3)/3
- It is valid when −1 < 2x ≤ 1. −1/2 < x ≤ 1/2
Answer: 2x − 2x² + (8/3)x³, for −1/2 < x ≤ 1/2
Example 3
Find the Taylor expansion of √x about x = 4 up to the (x − 4)² term, and use it to estimate √4.1.
- f(4) = 2. Differentiate once. f′(x) = 1/(2√x), f′(4) = 1/4
- Differentiate again. f″(x) = −1/(4x^(3/2)), f″(4) = −1/32, (f″(4))/(2!) = −1/64
- Series: √x ≈ 2 + (x − 4)/4 − ((x − 4)^2)/64
- At x = 4.1: 2 + 0.025 − 0.00015625 ≈ 2.02484
Answer: √4.1 ≈ 2.02484
Example 4
Write down the first three non-zero terms of the Maclaurin series for sin x.
- The derivatives of sin x at 0 are 0, 1, 0, −1, 0, 1, …
- Only odd powers remain. x − x³/3! + x⁵/5!
Answer: x − x^3/6 + x^5/120