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.

Try

Result

You enteredy′′′−y′=0y''' - y' = 0

y=C1+C2 ex+C3 e−x\displaystyle y = C_{1} + C_{2}\,e^{x} + C_{3}\,e^{-x}
Show the work
  1. Type of equation

    This is a linear equation of order 3 with constant coefficients and a zero right side, solved through its characteristic equation.

  2. 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.

    y′′′−y′=0y''' - y' = 0
  3. Characteristic equation

    Try y=erxy = e^{rx}: each derivative brings down a factor rr, so erxe^{rx} is a solution exactly when rr is a root of the characteristic equation.

    Using anrn+⋯+a1r+a0=0a_nr^n + \dots + a_1r + a_0 = 0

    r3−r=0r^{3} - r = 0
  4. 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.

    r=0, 1, −1r = 0,\ 1,\ -1
  5. Solutions from the roots

    Each real root rr gives erxe^{rx}; a root repeated mm times also gives xerx,…,xm−1erxxe^{rx}, \dots, x^{m-1}e^{rx}; a complex pair α±βi\alpha \pm \beta i gives eαxcos⁡βxe^{\alpha x}\cos\beta x and eαxsin⁡βxe^{\alpha x}\sin\beta x. That is 3 independent solutions, one for each constant.

    y1=1y2=exy3=e−x\begin{gathered} y_{1} = 1 \\ y_{2} = e^{x} \\ y_{3} = e^{-x} \end{gathered}
  6. General solution

    Every solution is a combination of these.

    y=C1+C2 ex+C3 e−xy = C_{1} + C_{2}\,e^{x} + C_{3}\,e^{-x}
  7. Result

    The general solution, with arbitrary constants.

Worked examples