Differential Equation Solver
Solve ordinary differential equations with AI-powered step-by-step solutions
Drag & drop or click to add images or PDF
What is a Differential Equation?
A differential equation (DE) is an equation that relates a function to its derivatives. An ordinary differential equation (ODE) involves a function of one variable:
The order of a DE is the highest derivative that appears. The degree is the power of the highest-order derivative (when the equation is polynomial in derivatives).
First-order ODE:
Second-order ODE:
A solution is a function that satisfies the equation on some interval. The general solution contains arbitrary constants (one per order). An initial value problem (IVP) specifies conditions like to determine a unique particular solution.
Differential equations model real-world phenomena: population growth, radioactive decay, spring-mass systems, electrical circuits, heat conduction, and fluid flow.
How to Solve Differential Equations
Method 1: Separation of Variables
For equations of the form :
- Separate:
- Integrate both sides:
Example: → → →
Method 2: Integrating Factor (First-Order Linear)
For , multiply by the integrating factor :
Then integrate both sides to find .
Example: . Here , so . Multiply: . Integrate: , so .
Method 3: Characteristic Equation (Constant Coefficients)
For , solve the characteristic equation :
| Discriminant | Roots | General Solution |
|---|---|---|
| (real) | ||
Method 4: Undetermined Coefficients
For where is a polynomial, exponential, sine, cosine, or combination:
- Find the general solution to the homogeneous equation
- Guess a particular solution form based on
- Substitute and solve for coefficients
- General solution = homogeneous + particular
Method 5: Variation of Parameters
A general method for when the homogeneous solutions are known:
where is the Wronskian.
Comparison of Methods
| Method | Applies To | Key Indicator |
|---|---|---|
| Separation | Variables can be separated | |
| Integrating Factor | First-order linear | |
| Characteristic Eq. | Constant-coefficient homogeneous | |
| Undetermined Coeff. | Constant-coeff. with special | RHS is polynomial/exp/trig |
| Variation of Params | Any second-order linear | General non-homogeneous |
Common Mistakes to Avoid
- Forgetting the constant of integration: In separation of variables, the constant must be included before solving for , as it affects the final form of the solution.
- Incorrect integrating factor: The integrating factor for is . Make sure the equation is in standard form (coefficient of must be 1) before identifying .
- Missing the repeated-root case: When the characteristic equation has a repeated root , the second solution is , not just again.
- Wrong particular solution guess: If your guess for is already a solution to the homogeneous equation, multiply by (or if needed) to get a valid form.
- Ignoring initial conditions: The general solution has arbitrary constants. Apply initial conditions only after finding the complete general solution.
Examples
Frequently Asked Questions
An ordinary differential equation (ODE) involves derivatives with respect to one independent variable. A partial differential equation (PDE) involves partial derivatives with respect to two or more independent variables, such as the heat equation or wave equation.
The order is the highest derivative present in the equation. A first-order DE contains y' but not y'' or higher. A second-order DE contains y'' but not y''' or higher. Higher order means more arbitrary constants in the general solution.
An initial value problem (IVP) is a differential equation together with conditions specifying the value of the solution (and possibly its derivatives) at a particular point. These conditions determine the arbitrary constants, giving a unique particular solution.
No. Most differential equations cannot be solved in closed form. Only special classes have explicit analytical solutions. For others, numerical methods like Euler's method or Runge-Kutta are used to approximate solutions.
Related Solvers
Related Guides
Try AI-Math for Free
Get step-by-step solutions to any math problem. Upload a photo or type your question.
Start Solving