Differential Equation Solver
Solve first-order and second-order ordinary differential equations numerically using the fourth-order Runge-Kutta method. Enter your equation, initial conditions, interval and number of steps.
Calculate a Differential Equation
Examples
Supported Functions
sin(x), cos(x), tan(x), sqrt(x), abs(x), exp(x), ln(x), log(x), log10(x), asin(x), acos(x), atan(x), floor(x), ceil(x)
Variables
First order:
x, y
Second order:
x, y,
yp
What Is a Differential Equation?
A differential equation contains an unknown function and one or more derivatives of that function. Differential equations are used throughout mathematics, physics, engineering, biology and economics.
First-Order Differential Equation
A first-order initial-value problem can be written as:
y(x₀) = y₀
Second-Order Differential Equation
A second-order initial-value problem can be written as:
y(x₀) = y₀
y′(x₀) = y′₀
How RK4 Works
The fourth-order Runge-Kutta method calculates several estimates of the derivative during every numerical step and combines them to obtain a more accurate approximation of the next solution value.
Example
For the equation y' = x + y with y(0) = 1, enter:
Initial x₀: 0
Initial y₀: 1
End x: 5
Steps: 100