Lecture-1 2
Lecture-1 2
𝒇𝒏 (𝒄)(𝒙 − 𝒄)𝒏
𝒇(𝒙) =
𝒏!
𝒏 𝟎
𝑓(𝑥) = 𝑎 + 𝑎 (𝑥 − 𝑐) + 𝑎 (𝑥 − 𝑐) + 𝑎 (𝑥 − 𝑐) + . . . ..
Where a0, a1… are coefficients on each polynomial term and c is a constant
that represents where along the x-axis we want to start our approximation
(if we don’t care where we start, just let c = 0, which is technically known as
Maclaurin Series). This series known as “power series” can be written in
closed form as the following:
(𝒙 − 𝒄)𝒏
𝒇(𝒙) = 𝒂𝒏
𝒏!
𝒏 𝟎
𝑓 (𝑥) = 𝑎 + 2𝑎 (𝑥 − 𝑐) + 3𝑎 (𝑥 − 𝑐) + 4𝑎 (𝑥 − 𝑐) + . . ..
This is the key step, notice that if we evaluate them at x=c, most of
their terms will go to zero. That will leave behind only the coefficients
a1, a2,… multiplied by some constant.:
𝑓(𝑐) = 𝑎 = 𝑎 0!
𝑓 (𝑐) = 𝑎 = 𝑎 1!
𝑓 (𝑐) = 2𝑎 = 𝑎 2!
𝑓 (𝑐) = 3 . 2 𝑎 = 𝑎 3!
𝑓 (𝑐) = 4 . 3 . 2 𝑎 = 𝑎 4!
𝑓(𝑐)
𝑎 =
0!
𝑓′(𝑐)
𝑎 =
1!
𝑓′′(𝑐)
𝑎 =
2!
𝑓′′′(𝑐)
𝑎 =
3!
𝑓′′′′(𝑐)
𝑎 =
4!
Next step is to plug them back into our beginning expression for a
general nth-degree polynomial:
𝒇𝒏 (𝒄)(𝒙 − 𝒄)𝒏
𝒇(𝒙) =
𝒏!
𝒏 𝟎
Examples:
1. Find a taylor series for the function 𝑓(𝑥) = 𝑒 centered at c=3.
𝑓(𝑥) = 𝑒
𝑓 (𝑥) = 𝑒 = 𝑓 (𝑥) = 𝑓 (𝑥) = 𝑓 ( ) (𝑥)
𝑒 (𝑥 − 3) 𝑒 (𝑥 − 3) 𝑒 (𝑥 − 3)
𝑒 = 𝑒 + 𝑒 (𝑥 − 3) + + + +. . .
2! 3! 4!
𝒆𝟑 (𝒙 − 𝟑)𝒏
𝒆𝒙 =
𝒏!
𝒏 𝟎
(𝑥 − 0) (𝑥 − 0) (𝑥 − 0)
𝑒 = 1 − (𝑥 − 0) + − + −. . . .
2! 3! 4!
𝑥 𝑥 𝑥
𝑒 = 1−𝑥+ − + −. . . .
2! 3! 4!
𝒙
(−𝟏)𝒏 (𝒙𝒏 )
𝒆 =
𝒏!
𝒏 𝟎
3. Find the Maclaurin series for the function f(x) = sin x , c=0
𝑓(𝑥) = 𝑠𝑖𝑛𝑥
𝑓′(𝑥) = 𝑐𝑜𝑠𝑥
( )
𝑓 = −𝑠𝑖𝑛𝑥
𝑓′′′(𝑥) = −𝑐𝑜𝑠𝑥
𝑓 (𝑥) = 𝑠𝑖𝑛𝑥
𝑓 (𝑥) = 𝑐𝑜𝑠𝑥
𝑓 (𝑥) = −𝑠𝑖𝑛𝑥
𝑓 (𝑥) = −𝑐𝑜𝑠𝑥
𝑓 (𝑥) = −1 = 𝑓 ( ) (0)
𝑥 𝑥 𝑥
𝑠𝑖𝑛𝑥 = 0 + 𝑥 + 0 − +0+ +0− + . . . .
3! 5! 7!
𝑥 𝑥 𝑥
𝑠𝑖𝑛𝑥 = 𝑥 − + − +. . . . .
3! 5! 7!
(−𝟏)𝒏 𝒙𝟐𝒏 𝟏
𝒔𝒊𝒏𝒙 =
(𝟐𝒏 + 𝟏)!
𝒏 𝟎
𝑓(𝑥) = 𝑙𝑛𝑥
1
𝑓′(𝑥) =
𝑥
1
𝑓 (𝑥) = −
𝑥
2
𝑓′′′(𝑥) =
𝑥
6
𝑓 (𝑥) = −
𝑥
24
𝑓 (𝑥) =
𝑥
𝑓(2) = 𝑙𝑛2
1
𝑓′(2) =
2
( ) 1
𝑓 =−
2
2
𝑓′′′(𝑥) =
2
6
𝑓 (𝑥) = −
2
24
𝑓 (𝑥) =
2
(−1) (𝑛 − 1)!
𝑓 (2) =
2
(−1) (𝑛 − 1)!
𝑙𝑛𝑥 = 𝑙𝑛2 + (𝑥 − 2)
2 (𝑛!)
( 𝟏)𝒏 𝟏
𝒍𝒏𝒙 = 𝒍𝒏𝟐 + ∑𝒏 𝟏 𝟐𝒏 (𝒏) (𝒙 − 𝟐)𝒏
𝑓 (𝑥) = 3𝑥 − 20𝑥
𝑓 (𝑥) = 6𝑥 − 20
𝑓 (𝑥) = 6
𝑓 (𝑥) = 0
𝑓(3) = −57
𝑓 (3) = −33
𝑓 ′(3) = −2
𝑓′′ (3) = 6
𝑓 (3) = 0
2(𝑥 − 3) 6(𝑥 − 3)
𝑥 − 10𝑥 + 6 = −57 − 33(𝑥 − 3) − + +0+0+ . . . . .
2! 3!
(−𝟏)𝒏 𝒙𝟒𝒏 𝟐
𝑥 cos (𝑥 )
𝟐𝒏!
𝒏 𝟎