← All text tools

Numerical ODE Solver

Solve dy/dx = f(x, y) from an initial value with Euler, improved Euler or Runge-Kutta 4, with a step table, a chart and a comparison with a high-accuracy reference.

  • Free
  • No sign-up
  • Works on any device

About Numerical ODE Solver

Solve dy/dx = f(x, y) from an initial value step by step. Euler's method follows the slope at the start of each step, improved Euler (Heun) averages two slopes and the classic Runge-Kutta 4 combines four. For dy/dx = y with y(0) = 1, Euler with 10 steps reaches 2.5937424601 at x = 1, while the true answer is e = 2.71828. The page tabulates every step with its slopes, draws the solution, compares all three methods with a high-accuracy reference and reports each error.

How to use Numerical ODE Solver

  1. Choose the method and type dy/dx as a formula in x and y, for example x + y.
  2. Enter the starting x and y, the end x and the number of steps.
  3. Read the final value, the step table with the slopes, the chart and the comparison of methods.

Why use this tool?

Also known as

Frequently asked questions

How many steps should I use?

More steps mean smaller errors. Euler's error shrinks in proportion to the step size, Heun's with its square and Runge-Kutta 4 with its fourth power, so RK4 with 20 steps often beats Euler with thousands.

What does the reference value mean?

It is the same Runge-Kutta 4 method run with 50 times more steps, at least 2000 in all. It is a very accurate check but not an exact solution, so the errors shown are estimates.

What if the solution blows up?

If y becomes infinite or undefined the page stops and says near which x it happened. The true solution may genuinely blow up there, as for dy/dx = y^2, or the step may be too large.

Is Numerical ODE Solver free?

Yes. Numerical ODE Solver on Toolipedia is free to use, with no sign-up and no watermark.

Is it safe to use?

Yes. Everything is worked out in your browser, and nothing you enter is sent to our server.

Does it work on my phone?

Yes. It works in any modern browser on Android and iPhone, as well as on tablets and computers. There's nothing to install.

Do I need an account?

No. Just open the page and use the tool. There's no sign-up and no email needed.

Can I put Numerical ODE Solver on my own website?

Yes. Use the Embed on your site button under the tool to copy a short piece of code and paste it into your page. It is free, needs no account, and the tool keeps working inside your page.