Need a fast way to solve common ordinary differential equations online? This calculator helps you compute closed-form solutions and evaluate them at any point. It is ideal for students in calculus, physics, and engineering who want to verify homework steps or quickly explore model behavior.
Interactive Differential Equation Solver
Choose an equation type, enter coefficients and initial conditions, then click Calculate Solution.
Model form: y' = a y + b
What this calculator solves
Differential equations appear whenever a rate of change depends on the current state. Instead of manual algebra each time, this page gives you an immediate symbolic form and a numeric value.
- First-order linear constant model:
y' = a y + b - Second-order homogeneous constant model:
y'' + a y' + b y = 0 - Built-in initial-value handling: solve for constants using your starting conditions
- Point evaluation: compute
y(x)at a specific target x
How the math works
1) First-order equation: y' = a y + b
This model includes exponential growth/decay with an offset. If a ≠ 0, the equilibrium is
y* = -b/a and the solution with initial condition y(x₀)=y₀ is:
y(x) = y* + (y₀ - y*)e^{a(x - x₀)}
If a = 0, then the equation becomes y' = b, a constant slope line:
y(x) = y₀ + b(x - x₀)
2) Second-order equation: y'' + a y' + b y = 0
Here we solve the characteristic polynomial r² + a r + b = 0. The discriminant
D = a² - 4b determines the shape of the solution:
- D > 0: two real roots, sum of two exponentials
- D = 0: repeated root, critically damped form
- D < 0: complex roots, oscillatory sine/cosine with exponential envelope
Initial conditions y(0) and y'(0) are used to compute constants automatically.
How to use this differential equation calculator
- Select equation type from the dropdown.
- Enter model coefficients and initial conditions.
- Choose the x value where you want the solution evaluated.
- Click Calculate Solution.
- Read the closed-form expression and computed numeric value.
Practical interpretation tips
For first-order models
- If
a < 0, solutions move toward equilibrium (stable). - If
a > 0, solutions move away from equilibrium (unstable). - The magnitude of
|a|controls how quickly the response changes.
For second-order models
- Negative real parts imply damping and long-run decay.
- Complex roots imply oscillation (waves, circuits, vibrations).
- Repeated roots indicate a boundary between oscillatory and non-oscillatory behavior.
Limitations
This tool focuses on constant-coefficient ODE forms. It does not currently solve arbitrary nonlinear equations,
forcing terms like sin(x) in second-order systems, or coupled systems of equations. For those,
use a symbolic engine or numerical integrator (Runge-Kutta, finite difference, etc.).
Final note
A good differential equation solver should give both numbers and insight. Use the calculator result as a checkpoint, then connect it to the physical meaning of your problem: growth, damping, oscillation, equilibrium, and stability.