Euler's Method
Euler's method approximates the solution of by taking small straight steps along the slope field. It is the simplest numerical method for differential equations; its error shrinks roughly in proportion to the step size . It is used to sketch solutions and to introduce better methods such as Runge–Kutta.
LaTeX
y_{n+1}=y_n+h\,f(x_n,y_n),\qquad x_{n+1}=x_n+hVariables
- step size
- right-hand side of the ODE
- current approximation
Example
Approximate for , with .
- Each step multiplies by .
- After steps: .
- The exact value is .
Answer: .