ODE Solver: Euler & Improved Euler

This was made for MA331 class Differential Equations in Washburn University. No login required.

Euler's method uses the slope at the current point to step forward: yn+1 = yn + h Β· f(xn, yn). Improved Euler (Heun's method) uses the average of two slopes for better accuracy: k₁ = f(xn, yn), kβ‚‚ = f(xn + h, yn + hΒ·k₁), and yn+1 = yn + (h/2)(k₁ + kβ‚‚).

1. Differential equation

dy/dx = f(x, y). Type or use the keypad below. x and y are numbers (current point); don't write x(...) or y(...).
dy/dx =

Note: Trig is in radians. Use √ for square root (symbol, not "sqrt"). Use a/b for fractions (numerator over denominator).

2. Initial conditions & step

Results

Euler's method

nxyβ‚™f(xβ‚™,yβ‚™)yβ‚™β‚Šβ‚

Improved Euler (Heun)

nxyβ‚™f(xβ‚™,yβ‚™)k₁kβ‚‚yβ‚™β‚Šβ‚

Graph

Both methods on the same plot. Drag to pan, scroll to zoom.