Ctrl K
Percentage
Arithmetic & Algebra
Fraction
Arithmetic & Algebra
Ratio
Arithmetic & Algebra
Average
Arithmetic & Algebra
Exponent & Root
Arithmetic & Algebra
Square Root & N-th Root
Arithmetic & Algebra
Linear Equation
Arithmetic & Algebra
Area & Perimeter
Geometry
Pythagorean Theorem
Geometry
Triangle Solver
Geometry
Circle Calculator
Geometry
Distance & Midpoint
Geometry
Prime Number
Number Theory
Factorial
Number Theory
GCD / HCF
Number Theory
LCM
Number Theory
Random Number
Number Theory
Number Base
Number Theory
Complex Numbers
Engineering Math
Vector Math
Engineering Math
Matrix Calculator
Engineering Math
Laplace Transform
Engineering Math
Scientific
Advanced
Logarithm
Advanced
Limit Calculator
Advanced
Percentile Calculator
Advanced
Differential Equation Solver
Advanced
Unit Converter
Utilities
Data Storage
Utilities
Speed Converter
Utilities
Fuel Efficiency
Utilities
Compound Interest
Utilities
Password Generator
Utilities
Function Transformations
Graphing
No tools found.
Differential Equation Solver calculator →
Differential Equation Solver guide
The ODE Solver numerically approximates solutions to first-order differential equations using the 4th-order Runge-Kutta (RK4) method. It plots the solution curve and outputs the final value.
Worked examples
Solve an exponential growth ODE
- Select the equation dy/dx = y.
- Set initial conditions: x₀ = 0, y₀ = 1.
- Set x_end = 3.
- Click Calculate.
Result: y(3) ≈ 20.0855
The exact analytical solution is y = e^x. At x=3, e^3 ≈ 20.0855. RK4 approximates this closely.
Solve a decay ODE
- Select the equation dy/dx = -y.
- Set y₀ = 5.
- Set x_end = 2.
Result: y(2) ≈ 0.6767
The solution to dy/dx = -y is y = 5e^(-x). At x=2, y = 5 * e^(-2) ≈ 0.6767.
Solve a logistic growth ODE
- Select the equation dy/dx = y(1-y).
- Set y₀ = 0.1.
- Set x_end = 10.
Result: y(10) ≈ 0.9999
The logistic curve approaches a carrying capacity of 1 asymptotically. As x gets large, y approaches 1.
Tips
- •A smaller step size (h) generally increases accuracy but takes longer to compute.
- •The tool supports backward integration (if x_end < x₀).
- •The analytical solution is shown for the presets so you can compare it to the numerical approximation.
Frequently asked questions
What is an ODE?
An Ordinary Differential Equation is an equation that contains one or more functions of one independent variable and its derivatives.
What is the Runge-Kutta 4th order (RK4) method?
It is a numerical technique used to solve ODEs. It evaluates the slope at four different points within each step to achieve high accuracy.
Why use RK4 instead of the Euler method?
Euler’s method uses only one slope estimate per step and accumulates error quickly. RK4 uses four weighted estimates, achieving vastly better accuracy for the same step size.
What are initial conditions?
The starting point of the system, typically given as x₀ and y₀. Without an initial condition, a differential equation has infinite solutions.
What is a step size (h)?
The incremental value added to x at each iteration of the solver. Smaller step sizes yield more accurate results but require more computation.
What is a first-order ODE?
A differential equation that contains only the first derivative (dy/dx). This tool does not solve second-order ODEs (like y″).
Can I solve any equation?
No, this tool is limited to the preset first-order ODEs provided in the dropdown menu (like dy/dx = y, or dy/dx = sin(x)).
What happens if the solution blows up?
Some ODEs (like dy/dx = y²) have finite-time blow-ups. The solver will stop if the value reaches infinity.
What is backward integration?
Setting x_end to a value smaller than x₀. The solver will step backward in time to find the previous state of the system.
What does the graph show?
It plots the solution curve y(x) from the initial condition to the endpoint.
How accurate is the numerical approximation?
RK4 has a global error of O(h⁴). If you halve the step size, the error decreases by a factor of 16.
Can the step size be negative?
The step size itself must be positive. The direction of integration is determined automatically by whether x_end is greater or less than x₀.
What are ODEs used for?
Modeling population growth, radioactive decay, chemical reactions, electrical circuits, and fluid dynamics.
Can I use this for partial differential equations (PDEs)?
No. PDEs involve multiple independent variables (like x and t) and require different numerical methods (like finite differences).
What is the logistic equation?
dy/dx = y(1-y). It models population growth that is limited by a carrying capacity.
What happens if I set h to a very large number?
The numerical approximation will become highly inaccurate and may become unstable, diverging from the true solution.
What is the Euler method?
The simplest numerical solver. It assumes the slope remains constant across the entire step size.
How many steps does the solver take?
The number of steps is approximately (x_end - x₀) / h. The calculator limits the maximum steps to prevent browser crashing.