Lecture 3 - Taylor Series
Lecture 3 - Taylor Series
If a function, 𝑓(𝑥) is continuously differentiable and its values can be evaluated about a point
𝑥 = 𝑎 (where ≠ 0) , then it can be written as a Taylor series. In other words, the Taylor series is
a special case of the Maclaurin series taken about a point, a.
′ (0)
x 2 ′′ x 3 ′′′
f(x) = f(0) + xf + f (0) + f (0) + ⋯ ..
2! 3!
This is the Taylor theorem that allows one to express a function as a power series about a
point x = a.
Examples
Solutions
From:
(𝑥 − 2)2 2 (𝑥 − 2)3 2
𝑒 𝑥 = 𝑒 2 + (𝑥 − 2)𝑒 2 + 𝑒 + 𝑒 + ⋯ ..
2! 3!
(𝑥 − 2)2 (𝑥 − 2)3
𝑒 𝑥 = 𝑒 2 (1 + (𝑥 − 2) + + +⋯…)
2! 3!
′ (1)
(𝑥 − 1)2 ′′ (𝑥 − 1)3 ′′′
𝑓(𝑥) = 𝑓(1) + (𝑥 − 1)𝑓 + 𝑓 (1) + 𝑓 (1) + ⋯
2! 3!
Given:
f(x) = lnx; when x = 1; f(1) = ln1 = 0
1
f ′ (x) = = x −1 ; when x = 1; f ′ (1) = (1)−1 = 1
x
f′′(x) = −x −2 ; when x = 1; f ′′ (1) = −(1)−2 = −1
f ′′′ (x) = 2x −3 ; when x = 1; f ′′′ (1) = 2(1)−3 = 2
(x−1)2 (x−1)3
∴ lnx = (x − 1)1 + (−1) + (2) + ⋯ …
2! 3!
(x−1)2 2(x−1)3
lnx = (x − 1) − + − ⋯ ….
2! 3!
Exercise
1. Obtain the Taylor expansions of:
π
a) f(x) = sinx about a = 2
π
b) f(x) = cosx about a = 4
1
2. Expand 𝑓(𝑥) = 1+𝑥 as a series of ascending powers of (𝑥 − 5).
3
3. Expand 𝑓(𝑥) = √𝑥 as series of ascending powers of (𝑥 − 4).