Differential Equation Solver
Solve a scalar first-order ODE numerically with fourth-order Runge-Kutta and watch the solution curve draw itself.
Runge-Kutta on one equation
Pick one of three presets — exponential decay −k·y, logistic growth k·y·(1 − y/K) with K = 10, or the driven decay cos(t) − k·y — set the rate k and the initial value y(0). The page marches classical fourth-order Runge-Kutta over t ∈ [0, 10] in 400 steps of h = 0.025, drawing the trajectory on a canvas as the steps run. Stop cancels the pending animation frame.
This is one scalar first-order equation with a value at a single point, not a general ODE toolkit. It does not accept a typed formula, a system of equations, boundary conditions or a stiff solver, and it reports a number rather than a proof of stability. Near a discontinuity of the slope, a fixed step can still be too coarse, and the page does not estimate its own error.
The steps run in this tab and the curve is drawn locally. Nothing is uploaded, no equation is stored, and reloading returns to the same preset with the same parameters.
Solve one of three first-order equations — dy/dt = −k·y, k·y·(1 − y/K) or cos t − k·y — with fourth-order Runge-Kutta at a fixed step and draw the solution over t ∈ [0, 10].
It is 400 fixed steps of RK4 in this tab: no adaptive stepping, no system of equations and no exported data.
How to use it
Choose a preset, set the rate k and the initial value y(0), then press Solve. The same button reads Stop while the curve is being drawn, and the plot shows the trajectory from the initial value over the fixed interval.
The step size
h = 0.025 over t ∈ [0, 10] is 400 steps. RK4 is fourth order, so the plotted curve stays within a fraction of a step of the exact solution where one exists; the fixed step is stated rather than hidden because it is the accuracy.
Where it stops
Three equations with one state variable, one fixed step and one interval. A non-numeric initial value is refused, and there is no stiff solver, no event detection and no CSV export.
What to Expect
Best for
- seeing how a rate constant changes a decay or a logistic curve
- checking a hand integration against a plotted solution
What this tool keeps
- The Runge-Kutta steps run in the browser, so the page works offline and keeps no equation and no solution.
Frequently asked questions
Which integrator is used?
Classical fourth-order Runge-Kutta with a fixed step of 0.025 over t ∈ [0, 10], which is 400 steps. Accuracy is a property of that step and is printed on the page.
Can I enter my own equation?
No. There are three presets — exponential decay, logistic growth and a driven decay — with the rate k and y(0) as the inputs. A different equation is outside what this page evaluates.
Is anything uploaded?
No. The steps and the drawing happen in this tab, nothing is posted, and no solution is stored.
Build custom tools for your store
Join the SDK program to create useful ecommerce utilities for your store.