Find y(0.2) for `y'=-y`, `x_0=0, y_0=1`, with step length 0.1 using Euler method (1st order derivative) Solution:Given `y'=-y, y(0)=1, h=0.1, y(0.2)=?`
Euler method
`y_1=y_0+hf(x_0,y_0)=1+(0.1)f(0,1)=1+(0.1)*(-1)=1+(-0.1)=0.9`
`y_2=y_1+hf(x_1,y_1)=0.9+(0.1)f(0.1,0.9)=0.9+(0.1)*(-0.9)=0.9+(-0.09)=0.81`
`:.y(0.2)=0.81`
| `n` | `x_n` | `y_n` | `x_(n+1)` | `y_(n+1)` |
| 0 | 0 | 1 | 0.1 | 0.9 |
| 1 | 0.1 | 0.9 | 0.2 | 0.81 |
This material is intended as a summary. Use your textbook for detail explanation.
Any bug, improvement, feedback then