Differential Equation Calculator
Type the equation, with y', y'' (up to y''''), and optionally initial conditions to get the solution.
Write y' and y'' (or dy/dx and d^2y/dx^2): y' + 2y = 4 or y'' - 3y' + 2y = 0. Type powers with ^ and functions with brackets: e^x, sin(x), ln(x).
Optional: y(0) = 2 for a first-order equation, or y(0) = 0, y'(0) = 1 for a second-order one. Leave empty for the general solution.
Result
You entered
Show the work
Type of equation
This is a linear equation of order 3 with constant coefficients and a zero right side, solved through its characteristic equation.
Linear equation with constant coefficients
Every derivative is multiplied by a constant and the right side is 0, so the equation is solved through its characteristic equation, of degree 3.
Characteristic equation
Try : each derivative brings down a factor , so is a solution exactly when is a root of the characteristic equation.
Using
Roots of the characteristic equation
Factor the polynomial (rational roots first, then what is left) and read off every root with how many times it repeats.
Solutions from the roots
Each real root gives ; a root repeated times also gives ; a complex pair gives and . That is 3 independent solutions, one for each constant.
General solution
Every solution is a combination of these.
Result
The general solution, with arbitrary constants.
Worked examples
Type of equation, Linear first-order equation
Type of equation, Linear first-order equation
Type of equation, Second-order linear equation
Type of equation, Linear first-order equation
Type of equation, Linear equation with constant coefficients
Type of equation, Linear equation with constant coefficients