Runge-Kutta Calculator
Type y' = f(x, y), the starting point, the step size and the end value.
Write y' = f(x, y), such as y' = x + y, or just the right side.
The starting value of x.
The value of y at the start.
The step size, more than 0. The distance from x₀ to the end must be a whole number of steps.
The value of x to stop at, more than x₀. At most 1000 steps.
Result
You entered
Exact solution
Exact value
Error
Show the work
Fourth-order Runge–Kutta
Each step takes four slopes: at the start, twice at the midpoint (using the first two estimates) and at the end, and uses their weighted average .
Using
Step 1
From .
Step 2
From .
Step 3
From .
Table of steps
Every step with its four slopes.
Compare with the exact solution
This equation has an exact solution, so the numerical value can be checked: gives , an error of .
Result
The value after steps.