Taylor Series Expansion
2016+Week4
2016+Week4
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Example 1:<br />
Find y(0.5) if y is the solution of IVP y' = -2x-y, y(0) = -1 using Euler's method<br />
with step length 0.1. Also find the error in the approximation.<br />
Solution: f(x, y) = -2x - y,<br />
y 1 = y 0 + h f(x 0 , y 0 ) = -1 + 0.1* (-2*0 - (-1)) = -0.8999<br />
y 2 = y 1 + h f(x 1 , y 1 ) = -0.8999 + 0.1* (-2*0.1 - (-0.8999)) = -0.8299<br />
y 3 = y 2 + h f(x 2 , y 2 ) = -0.8299 + 0.1* (-2*0.2 - (-0.8299)) = -0.7869<br />
y 4 = y 3 + h f(x 3 , y 3 ) = -0.7869 + 0.1* (-2*0.3 - (-0.7869)) = -0.7683<br />
y 5 = y 4 + h f(x 4 , y 4 ) = -0.7683 + 0.1* (-2*0.4 - (-0.7683)) = -0.7715