Inputs
Result
RK4 Formula
yₙ₊₁ = yₙ + (h/6)(k₁+2k₂+2k₃+k₄)
RK4 Approx y(x_end)
—
Exact y(x_end)
—
RK4 Error
—
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.
Configure inputs above.