Maclaurin and Taylor Series
Maclaurin Taylor Series KUS objectives BAT Adapt the Maclaurin series to find solutions of differential equations WB16: Given that 𝑦=𝑥 𝑒 𝑥 a) Show that 𝑑 𝑛 𝑦 𝑑 𝑥 𝑛 = 𝑛+𝑥 𝑒 𝑥 b) Find the Taylor expansion of 𝑦=𝑥 𝑒 𝑥 in ascending powers of 𝑥+1 as far as the term in 𝑥+1 4
𝑓 𝑥 =𝑥 𝑒 𝑥 = 1 𝑒 −1+ 1 2 𝑥+1 2 + 1 3 𝑥+1 3 + 1 8 𝑥+1 4 + … WB16 solutions 𝑓 𝑥 =𝑥 𝑒 𝑥 𝒇 −𝟏 =− 𝟏 𝒆 𝑓 ′ 𝑥 =𝑥 𝑒 𝑥 + 𝑒 𝑥 = 1+𝑥 𝑒 𝑥 𝒇 ′ (−𝟏)=𝟎 𝒇 ′′ (−𝟏)= 𝟏 𝒆 𝑓 ′′ 𝑥 = 𝑒 𝑥 + 1+𝑥 𝑒 𝑥 = 2+𝑥 𝑒 𝑥 … … 𝒇 𝒏 (−𝟏)= 𝒏−𝟏 𝒆 𝑓 𝑛 𝑥 = 𝑛+𝑥 𝑒 𝑥 𝒇 𝒙 =𝒇 𝒂 + 𝒇 ′ 𝒂 (𝒙−𝒂)+ 𝒇′′(𝒂) 𝟐! (𝒙−𝒂) 𝟐 + 𝒇′′′(𝒂) 𝟑! (𝒙−𝒂) 𝟑 … 𝑓 𝑥 =𝑥 𝑒 𝑥 =− 1 𝑒 + 𝑥+1 ×0+ 𝑥+1 2 2! × 1 𝑒 + 𝑥+1 3 3! × 2 𝑒 + 𝑥+1 4 4! × 3 𝑒 +… 𝑓 𝑥 =𝑥 𝑒 𝑥 = 1 𝑒 −1+ 1 2 𝑥+1 2 + 1 3 𝑥+1 3 + 1 8 𝑥+1 4 + …
Using the alternative notation for evaluated derivatives : Notes The Maclaurin series for f(x) can be adapted to find solutions of differential equations Maclaurin series: Using the alternative notation for evaluated derivatives : By substituting given values into a differential equation, and differentiating the DE to find higher order derivatives, the coefficients can be found and ‘plugged into’ the standard form above In fact, differential equations that cannot be solved using the methods seen already for 1st and 2nd order DEs can be solved in this way. Also, higher order differential equations involving, say, can also be solved.
given that when 𝑥=0, 𝑦=1 , and 𝑑𝑦 𝑑𝑥 =2 WB17 use the Taylor method to find a series solution, in ascending powers of x, up to and including the term in x3, of 𝑑 2 𝑦 𝑑 𝑥 2 =𝑦− sin 𝑥 (1) given that when 𝑥=0, 𝑦=1 , and 𝑑𝑦 𝑑𝑥 =2 Substitute to (1) 𝑥=0, 𝑦=1 , and 𝑑𝑦 𝑑𝑥 =2 to get 𝑑 2 𝑦 𝑑 𝑥 2 = 1 − sin 0 =1 Differentiate (1) to get 𝑑 3 𝑦 𝑑 𝑥 3 = 𝑑𝑦 𝑑𝑥 − cos 𝑥 (𝟐) Substitute to (2) 𝑥=0, 𝑦=1 , and 𝑑𝑦 𝑑𝑥 =2 to get 𝑑 3 𝑦 𝑑 𝑥 3 = 2 − 𝑐𝑜𝑠 0 =1 𝑓 𝑥 =𝑓 0 + 𝑓 ′ 0 𝑥+ 𝑓′′(0) 2! 𝑥 2 + 𝑓′′′(0) 3! 𝑥 3 … Substitute into the standard form 𝑦=1+2𝑥+ 𝑥 2 2 ×1+ 𝑥 3 6 ×1+… 𝑦=1+2𝑥+ 𝑥 2 2 + 𝑥 3 6 +…
a) Differentiating original equation WB 18 1+2𝑥 𝑑𝑦 𝑑𝑥 =𝑥+4 𝑦 2 (1) a) Show that 1+2𝑥 𝑑 2 𝑦 𝑑 𝑥 2 = 1+2 4𝑦−1 𝑑𝑦 𝑑𝑥 (2) b) Differentiate equation (1) with respect to x to obtain an equation involving 𝑑 2 𝑦 𝑑 𝑥 2 𝑑 2 𝑦 𝑑 𝑥 2 , 𝑑 2 𝑦 𝑑 𝑥 2 , x and y given that when 𝑥=0, 𝑦= 1 2 c) find a series solution for y, in ascending powers of x, up to and including the term in x3 a) Differentiating original equation b) Differentiating again:
b) Differentiating again: WB 18 b) Differentiating again: (3) Sub in (1) Sub in (2) Sub in (3) 𝑓 𝑥 =𝑓 0 + 𝑓 ′ 0 𝑥+ 𝑓′′(0) 2! 𝑥 2 + 𝑓′′′(0) 3! 𝑥 3 … c) Substitute into the standard form 𝑦= 1 2 +𝑥+ 𝑥 2 2 ×3+ 𝑥 3 6 ×8+… 𝑦= 1 2 +𝑥+ 3 2 𝑥 2 + 4 3 𝑥 3 +…
One thing to improve is – KUS objectives BAT Adapt the Maclaurin series to find solutions of differential equations self-assess One thing learned is – One thing to improve is –
END