Differential Equation Calculator
CalculusFreeNo sign-up
Type an ODE such as y′′ + 3y′ + 2y = eˣ. The characteristic equation has roots −1 and −2, so . Add initial conditions to get the one particular solution, and every answer is checked by substitution.
Write derivatives as y’, y”, y”’ or dy/dx. Use x (or t) as the variable.
One condition per order of the equation.
Several solutions from the general solution.
| Type | Linear, constant coefficients, order 2 (non-homogeneous) |
| Characteristic equation | |
| Roots | |
| Particular solution | |
| Check | Substituting y back into the equation gives 0 = 0 ✓ |
Show steps
- This is a linear equation with constant coefficients of order 2:
- Characteristic equation (replace by ):
- Roots:
- Homogeneous solution:
- Find a particular solution yₚ for the right side (undetermined coefficients, checked with the Laplace transform):
How to use the differential equation calculator
- Type the equation with y′ written as y’ (and y′′ as y”), or use dy/dx.
- Add initial conditions like y(0) = 1, y'(0) = 0 to solve an initial value problem, or leave them blank for the general solution.
- Press Solve. The method, each step, a check by substitution and a graph appear below.
Supported exactly: separable and linear first-order equations, and linear equations of any order up to 4 with constant coefficients whose right side is built from polynomials, exponentials, sines and cosines. Other first-order equations with an initial condition are solved numerically.
Linear equations with constant coefficients
For :
- Solve the characteristic equation .
- Build the homogeneous solution from the roots (table below).
- Find a particular solution for g(x) by undetermined coefficients.
- General solution: . Use initial conditions to find the constants.
| Roots | Homogeneous solution |
|---|---|
| Real, different: | |
| Repeated: | |
| Complex: |
First-order equations
Separable: . Separate and integrate: . Example: gives , so .
Linear: . Multiply by the integrating factor : , so . Example: gives .
Worked example: initial value problem
, , . The general solution is . The conditions give and , so and :
Resonance and repeated terms
If g(x) already solves the homogeneous equation, the usual guess fails and must be multiplied by x. For , the particular solution is , whose amplitude grows: this is resonance.
Differential equations practice quiz: 10 questions
Test yourself with 10 multiple-choice questions. Choose an answer and press Submit to see if you are right and why. Your score appears at the end.
Quiz complete
Frequently asked questions
What types of differential equations can this solve?
Separable and linear first-order equations; linear equations up to order 4 with constant coefficients and right sides made of polynomials, exponentials, sines and cosines; and, with an initial condition, other first-order equations numerically.
How do I enter derivatives?
Type y' for the first derivative, y'' for the second and y''' for the third, or use dy/dx and d^2y/dx^2.
What is the difference between the general and the particular solution?
The general solution contains arbitrary constants (C₁, C₂, …) and describes every solution. Initial conditions pick out one particular solution.
How do I know the solution is right?
The calculator substitutes the solution back into the equation symbolically and checks that both sides agree at many points.
What if there is no formula?
For a first-order equation with an initial condition, the calculator uses the fourth-order Runge–Kutta method and shows a table of values and the curve over the slope field.
Sources
- Paul’s Online Math Notes: Second Order Differential Equations
- Paul’s Online Math Notes: Linear First Order Equations
- Paul’s Online Math Notes: Separable Equations
- Paul’s Online Math Notes: Undetermined Coefficients
- MIT OpenCourseWare 18.03: Differential Equations
Related calculators
- Laplace Transform Calculator
- Inverse Laplace Transform Calculator
- Integral Calculator
- Derivative Calculator
- Exponential Growth Calculator
More calculus calculators
Related to This Article
More math articles
- 4th Grade OST Math FREE Sample Practice Questions
- 6th Grade M-STEP Math Worksheets: FREE & Printable
- ACT Aspire Grade 6 Math Free Worksheets: Free Printable Practice Worksheets with Worked Keys
- Overcoming Mental Blocks in Algebra: A Student’s Guide
- How to Decide Between the ACT and SAT?
- Calculate a marginal value from a table
- R0 Explained: How Diseases Spread (With Math)
- Reproduction and Development
- The Best Grade 7 ELA Practice Tests for Washington Students
- How to Pass the STAAR Math Test (Texas): The 2027 Parent & Student Playbook












What people say about "Differential Equation Calculator (ODE Solver) with Steps"?
No one replied yet.