Skip to main content

Solve Differential Equations with the Laplace Transform

Type an initial value problem and see every step: transform both sides, use the initial conditions, solve for Y(s), partial fractions. Then check your own y(t), free.

ODE Solver (Laplace method)

Linear equations with constant coefficients, up to 6th order

Like y(0)=1, y'(0)=0. Missing values are taken as 0. The right side may use t, exp, sin, cos, heaviside(t-a) and dirac(t-a).

Examples:

The method in five steps

  1. Transform each term: ℒ{y'} = sY(s) − y(0), ℒ{y''} = s²Y(s) − s·y(0) − y'(0).
  2. Put in the initial conditions.
  3. Transform the right-hand side with the table (steps and impulses give factors e^(−as)).
  4. Solve the algebraic equation for Y(s).
  5. Split Y(s) into partial fractions and invert each term to get y(t).

Worked examples

Type any of these into the solver above to see every step. u(t) is the unit step.

EquationInitial conditionsSolution y(t)
y' + 2y = 0y(0) = 33e^(−2t)
y' + y = ty(0) = 1t − 1 + 2e^(−t)
y'' + 3y' + 2y = 1y(0) = 0, y'(0) = 01/2 − e^(−t) + e^(−2t)/2
y'' + 2y' + 5y = 0y(0) = 1, y'(0) = 0e^(−t)(cos 2t + ½ sin 2t)
y'' + 4y = sin ty(0) = 0, y'(0) = 0sin(t)/3 − sin(2t)/6
y'' + 4y' + 4y = e^(−2t)y(0) = 0, y'(0) = 0t²e^(−2t)/2
y'' + y = u(t − 2)y(0) = 0, y'(0) = 0(1 − cos(t − 2))·u(t − 2)
y'' − y = 0y(0) = 1, y'(0) = 1e^t

Common questions

How do you solve a differential equation with the Laplace transform?

Take the Laplace transform of every term, using L{y'} = sY − y(0) and L{y''} = s²Y − s·y(0) − y'(0). This turns the equation into algebra: solve for Y(s), split it into partial fractions and invert each term with the transform table to get y(t).

Why use the Laplace transform for ODEs?

The initial conditions go in at the start, so there is no separate step to find constants, and step or impulse inputs such as u(t − a) and δ(t − a) are handled directly with the shift theorems.

Which equations can LapCalc solve?

Linear ODEs with constant coefficients up to 6th order, with right-hand sides built from t, exp, sin, cos, sinh, cosh, heaviside(t − a) and dirac(t − a).

Is the ODE solver free?

The steps up to Y(s) and its partial fractions are free, and so is checking your own y(t). The final y(t), with a plot and an AI explanation, is part of LapCalc Premium ($9.99 a month or $39.99 a year with a 7-day free trial, or $19.99 for a 4-month semester pass).

Learn more

Laplace Transform Calculator · Partial Fraction Calculator · Inverse Laplace Transform Calculator