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
General solution
Show the work
Type of equation
This equation is linear in y, so it can be written y' + P(x)y = Q(x) and solved with an integrating factor.
Linear first-order equation
The equation is linear in , so it has the form with and .
Integrating factor
Multiply the equation by : the left side then becomes .
Integrate both sides
Now , so integrate and divide by .
Solve for y
Divide by : the constant multiplies .
General solution
The solution with arbitrary constants.
Initial conditions
Substitute into the general solution and solve for the constant.
Result
The particular solution that satisfies the initial conditions.
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