DIFFERENTIAL EQUATIONS WORKBENCH
A little orientation
Choose an example or type your own equations. Click the field to start a solution. Change a parameter and watch every trajectory respond. The colored curves show solutions; the moving dots follow increasing time.
Direction field: enter y′ = f(t,y). The horizontal axis is time. A click sets both t₀ and y₀.Phase plane: enter an autonomous system x′ = f(x,y), y′ = g(x,y). Each click sets (x₀,y₀) at time zero. The linked plot shows its coordinates over time. In direction-field mode, Δt on the animation control is time elapsed from each initial condition; the plot axes use actual time.
y′ = f(t,y)
t₀
y₀
x′ = f(x,y)
y′ = g(x,y)
(x₀,y₀)
-x^2
-(x^2)
2x
x*y
log
ln
Use parentheses for function arguments: sin(t), max(0,y). Equations are parsed as mathematics; JavaScript is not accepted.
sin(t)
max(0,y)
Nullclines mark where one derivative vanishes. Their intersections can be equilibria. Select an equilibrium for its numerical Jacobian, eigenvalues, and linear stability classification. For a saddle, trace the four local branches along its eigenvectors. Purely imaginary or zero eigenvalues require nonlinear analysis.
Trajectories use adaptive Dormand–Prince 5(4), with your relative tolerance and absolute tolerance equal to one hundredth of it. The maximum time step also controls resolution. Equilibria are found by a finite numerical search, so some may be missed. Nullclines are sampled contours. Stiff equations and behavior near singularities may need a smaller step, tighter tolerance, or a specialized solver.
Export a vector SVG, a high resolution PNG, or all trajectories as CSV. Save an experiment as JSON to reopen it here. Download the HTML app to keep this whole workbench, including the current experiment, and run it offline. Work is also saved automatically in this browser when local storage is available.