Study and Productivity

How to Solve a Differential Equation with Laplace Transforms, Step by Step

Use Laplace transforms to solve an initial value problem: key table entries, shift theorems, inverting with partial fractions and checking the result.

Saizul Amin
Saizul Amin3 Nov 2026 · 4 min read
How to Solve a Differential Equation with Laplace Transforms, Step by Step

How to Solve a Differential Equation with Laplace Transforms, Step by Step

The Laplace transform is a trade. You give up the familiar variable t and work with a new variable s, and in return derivatives turn into multiplication and a differential equation turns into ordinary algebra. Engineers use it because initial conditions slot in automatically and switched inputs are easy to handle. This guide gives the essential table entries, a complete solved initial value problem and a set of checks that catch most errors.

The definition and a short table

For a function f(t) defined for t ≥ 0, its transform is F(s), the integral from 0 to infinity of e^(-st) f(t) dt. You rarely compute that integral by hand. Instead you learn a few pairs:

  • 1 transforms to 1/s
  • t^n transforms to n!/s^(n+1), so t^2 gives 2/s^3
  • e^(at) transforms to 1/(s - a)
  • sin(bt) gives b/(s^2 + b^2) and cos(bt) gives s/(s^2 + b^2)

Two rules extend the table. The first shift theorem: multiplying by e^(at) replaces s with s - a. So e^(-t) sin 2t transforms to 2/((s + 1)^2 + 4). The second shift theorem handles delays: a unit step u(t - c) multiplies the transform by e^(-cs), so u(t - 2) transforms to e^(-2s)/s.

Derivatives become algebra

The rule that makes the method useful is:

  • y' transforms to sY - y(0)
  • y'' transforms to s^2 Y - s y(0) - y'(0)

Notice that the initial values appear by themselves. You never need to find arbitrary constants afterwards.

Worked example

Solve y'' - y' - 6y = 0 with y(0) = 1 and y'(0) = 8.

Transform each term:

(s^2 Y - s - 8) - (sY - 1) - 6Y = 0

Collect Y: Y(s^2 - s - 6) - s - 7 = 0, so Y = (s + 7)/(s^2 - s - 6).

Factor the denominator: s^2 - s - 6 = (s - 3)(s + 2).

Split with partial fractions using cover-up. At s = 3: (3 + 7)/(3 + 2) = 2. At s = -2: (-2 + 7)/(-2 - 3) = -1. So Y = 2/(s - 3) - 1/(s + 2).

Invert each piece with the table: y(t) = 2e^(3t) - e^(-2t).

Checking the answer

Always test the initial conditions. At t = 0, y = 2 - 1 = 1, which is correct. The derivative is y' = 6e^(3t) + 2e^(-2t), and at t = 0 that gives 8, also correct.

Then put the solution into the equation. y'' = 18e^(3t) - 4e^(-2t). Compute y'' - y' - 6y term by term. For e^(3t): 18 - 6 - 12 = 0. For e^(-2t): -4 - 2 + 6 = 0. Everything cancels, so the solution satisfies the equation.

A third check is the characteristic equation r^2 - r - 6 = 0, whose roots 3 and -2 match the exponents. If they did not, the algebra in the s-domain went wrong.

Mistakes that cost marks

  • Forgetting the -s y(0) term in the transform of y''. It is the term students drop most often.
  • Mixing up the signs in 1/(s - a): e^(-2t) gives 1/(s + 2), not 1/(s - 2).
  • Trying to invert an improper fraction. If the numerator degree matches the denominator degree, divide first.
  • Treating a complex-root quadratic as if it factored. Complete the square instead and use the shifted sine and cosine entries.
  • Applying the second shift theorem to u(t - c) g(t) without rewriting g in terms of t - c.

Using the calculator

The Laplace Transform Calculator has separate tabs for forward transforms, inverse transforms and differential equations. For an ODE, enter the coefficients, the forcing term and the two initial values; it shows Y(s), the partial fractions and the inverted solution. The graph also overlays a numerical Runge-Kutta solution and reports the largest gap between the two curves, which is an independent confirmation. The Table tab collects the standard pairs so you can match each step with your notes.

A sensible way to revise is to solve one problem by hand, then enter it and compare Y(s) before looking at y(t). If the transform stage agrees, any remaining error is in the inversion.

Limits

Only functions built from constants, powers of t, exponentials, sines, cosines, hyperbolic functions and unit steps are supported. The Dirac delta, periodic inputs, convolution and systems of equations are not handled. The calculator is a study aid for checking and practice; it does not replace the working your course expects you to write out.

Completely freeNo cost, no sign-up
Files stay privateEverything runs in your browser
Easy in your languageAvailable in many languages