Solve ODE With Laplace Transform Calculator

Type the equation in t and its initial conditions at t = 0 to solve the initial-value problem.

Write the equation in t with y' and y'': y' + y = 0 or y'' + y = sin(t). The right side may be built from polynomials, exponentials, sines and cosines.

The conditions at t = 0: y(0) = 1, or y(0) = 0, y'(0) = 1 for a second-order equation. Left empty, they are taken as 0.

Try

Result

You enteredy′−2y=et,y(0)=0y' - 2y = e^{t},\quad y(0) = 0

y(t)=e2t−et\displaystyle y(t) = e^{2t} - e^{t}
Show the work
  1. Laplace transform of a derivative

    Transform both sides. The derivative rules bring in the initial values: L{y′}=sY(s)−y(0)\mathcal{L}\{y'\} = sY(s) - y(0).

    Using L{y(n)}=snY−sn−1y(0)−⋯−y(n−1)(0)\mathcal{L}\{y^{(n)}\} = s^nY - s^{n-1}y(0) - \dots - y^{(n-1)}(0)

    L{y′}=sY−y(0)\mathcal{L}\{y'\} = sY - y(0)
  2. Transform both sides

    The right side g(t)=etg(t) = e^{t} is transformed from the table; the left side uses the rules above with y(0)=0y(0) = 0.

    sY−2Y=1s−1sY - 2Y = \frac{1}{s - 1}
  3. Solve for Y(s)

    Collect the terms in Y(s)Y(s) and divide.

    Y(s)=1(s−1) (s−2)Y(s) = \frac{1}{\left(s - 1\right)\,\left(s - 2\right)}
  4. Partial fractions

    Split F(s)F(s) into pieces that are in the table. The denominator factors as (s−1)(s−2)\left(s - 1\right)\left(s - 2\right), one fraction for each factor.

    F(s)=−1s−1+1s−2F(s) = -\frac{1}{s - 1} +\frac{1}{s - 2}
  5. Table of inverse transforms

    Each piece is a standard transform; the first shifting theorem handles a shift in s.

    Using L−1{1s−a}=eat, L−1{s−α(s−α)2+β2}=eαtcos⁡βt, L−1{β(s−α)2+β2}=eαtsin⁡βt\mathcal{L}^{-1}\left\{\frac{1}{s - a}\right\} = e^{at},\ \mathcal{L}^{-1}\left\{\frac{s - \alpha}{(s - \alpha)^2 + \beta^2}\right\} = e^{\alpha t}\cos\beta t,\ \mathcal{L}^{-1}\left\{\frac{\beta}{(s - \alpha)^2 + \beta^2}\right\} = e^{\alpha t}\sin\beta t

    L−1{1s−1}=et;L−1{1s−2}=e2t\begin{gathered} \mathcal{L}^{-1}\left\{\frac{1}{s - 1}\right\} = e^{t}; \\ \mathcal{L}^{-1}\left\{\frac{1}{s - 2}\right\} = e^{2t} \end{gathered}
  6. Result

    Invert term by term: the solution of the initial-value problem.

    y(t)=e2t−ety(t) = e^{2t} - e^{t}

Worked examples