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′+y=0,y(0)=1y' + y = 0,\quad y(0) = 1

y(t)=e−t\displaystyle y(t) = 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)=0g(t) = 0 is transformed from the table; the left side uses the rules above with y(0)=1y(0) = 1.

    sY−1+Y=0sY - 1 + Y = 0
  3. Solve for Y(s)

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

    Y(s)=1s+1Y(s) = \frac{1}{s + 1}
  4. Read F(s)

    The denominator s+1s + 1 is a single factor, so F(s)F(s) is already one piece.

    F(s)=1s+1F(s) = \frac{1}{s + 1}
  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}=e−t\mathcal{L}^{-1}\left\{\frac{1}{s + 1}\right\} = e^{-t}
  6. Result

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

    y(t)=e−ty(t) = e^{-t}

Worked examples