Press Solve.
Method
One-step methods on a uniform grid: Euler yₙ₊₁ = yₙ + h f; Heun averages two slopes; classical Runge–Kutta 4 uses four slopes (global error O(h⁴)). A second-order equation is rewritten as the system y′ = v, v′ = f(t, y, v). Enter an exact solution to see the error and compare the orders of the methods by halving h.
Computed in your browser with double-precision arithmetic; nothing is sent to a server. Check results by substituting them back.