Differential Equations

Runge-Kutta (RK4) — Numerical ODE Solver

4th-order method: yₙ₊₁ = yₙ + (h/6)(k₁ + 2k₂ + 2k₃ + k₄). Each step uses four slope estimates for superior accuracy. Compare against Euler and the exact solution.

Live Calculator · Step-by-Step · Differential Equations
Inputs
Result
RK4 Formula
yₙ₊₁ = yₙ + (h/6)(k₁+2k₂+2k₃+k₄)
RK4 Approx y(x_end)
Exact y(x_end)
RK4 Error

RK4 Iteration Table

Configure inputs above.

RK4 vs Euler vs Exact