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

y(t)=sin⁡t\displaystyle y(t) = \sin 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) and L{y′′}=s2Y(s)−s y(0)−y′(0)\mathcal{L}\{y''\} = s^2Y(s) - s\,y(0) - 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′′}=s2Y−s y(0)−y′(0)L{y′}=sY−y(0)\begin{gathered} \mathcal{L}\{y''\} = s^2Y - s\,y(0) - y'(0) \\ \mathcal{L}\{y'\} = sY - y(0) \end{gathered}
  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)=0, y′(0)=1y(0) = 0,\ y'(0) = 1.

    s2Y−1+Y=0s^2Y - 1 + Y = 0
  3. Solve for Y(s)

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

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

    The denominator s2+1s^{2} + 1 is a single factor, so F(s)F(s) is already one piece.

    F(s)=1s2+1F(s) = \frac{1}{s^{2} + 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

    1s2+1  ⇒  L−1=sin⁡t\frac{1}{s^{2} + 1}\;\Rightarrow\; \mathcal{L}^{-1} = \sin t
  6. Result

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

    y(t)=sin⁡ty(t) = \sin t

Worked examples