Differential Equation Solver

Enter your differential equation (e.g. y' = 2x or y'' + y = 0) along with optional initial conditions and equation order, and this Differential Equation Solver will classify your ODE and compute the general or particular solution. Supports first-order separable, linear, and second-order equations with step-by-step output showing the solution function y(x) and solution type.

Select the type of ODE you want to solve

Coefficient of the highest-order derivative

Coefficient of y' (or P(x) for first-order linear)

Coefficient of y (or constant in equation)

The constant value on the right-hand side (set 0 for homogeneous)

The x-value for the initial condition y(x₀) = y₀

The y-value at x₀

Required only for second-order equations

Results

Solution Type

--

Root / Eigenvalue r₁

--

Root / Eigenvalue r₂

--

Constant C₁

--

Constant C₂

--

Discriminant (b²-4ac)

--

System Stability

--

Solution y(x) over x = [0, 5]

Results Table

Frequently Asked Questions

What is an ordinary differential equation (ODE)?

An ordinary differential equation is an equation that relates a function y(x) with one or more of its derivatives (y', y'', etc.) with respect to a single independent variable x. ODEs appear throughout physics, engineering, biology, and economics to model rates of change and dynamic systems.

What is the difference between a general solution and a particular solution?

A general solution contains one or more arbitrary constants (C₁, C₂, etc.) and represents the entire family of solutions to the ODE. A particular solution is obtained by applying initial conditions — known values of y and/or y' at a specific x — to determine the exact constants.

What types of differential equations does this calculator support?

This calculator handles first-order linear, first-order separable, first-order exponential growth/decay, second-order homogeneous, and second-order inhomogeneous (constant-forcing) ordinary differential equations. For more complex equations involving partial derivatives or non-constant coefficients, specialized symbolic solvers are recommended.

What does the discriminant tell us about a second-order ODE solution?

For a second-order linear ODE with characteristic equation ar² + br + c = 0, the discriminant Δ = b² - 4ac determines the nature of the roots: if Δ > 0, two distinct real roots (overdamped); if Δ = 0, one repeated real root (critically damped); if Δ < 0, two complex conjugate roots (underdamped oscillation).

How do I enter initial conditions for a second-order ODE?

For a second-order ODE, you need two initial conditions: y(x₀) = y₀ (the value of the function at x₀) and y'(x₀) = y'₀ (the value of the derivative at x₀). Enter x₀, y₀, and y'₀ in the Initial Conditions section and select 'Yes — find particular solution'.

What is a separable differential equation?

A separable ODE is one that can be written in the form dy/dx = f(x) · g(y), where the variables x and y can be separated to opposite sides of the equation. The solution method involves integrating both sides independently. A classic example is dy/dx = ky, which gives exponential growth or decay.

What does system stability mean in the context of ODEs?

Stability refers to whether solutions to an ODE grow, decay, or oscillate over time. For second-order systems, if both roots of the characteristic equation have negative real parts, the system is stable (solutions decay to zero). Positive real parts indicate instability. Pure imaginary roots produce sustained oscillations.

Can this calculator handle non-constant coefficients or nonlinear ODEs?

This tool is designed for constant-coefficient linear ODEs, which cover a wide range of practical problems. Nonlinear ODEs (e.g., y'' + sin(y) = 0) or equations with variable coefficients generally require numerical methods like Euler's method, Runge-Kutta (RK4), or symbolic solvers like Wolfram Alpha or MATLAB's ode45.

More Math Tools