Laplace Transform ODE Solver Notes

Published on: September 29, 2026

These Laplace Transform ODE Solver Notes explain how to solve an initial value problem by moving it out of the time domain, with the working shown line by line. Transforming both sides turns each derivative into a multiple of s, so the initial conditions are built into the algebra rather than fitted at the end. Solving for the transform and inverting it returns the answer in t. Following the same pattern every time keeps the initial conditions from being forgotten.

Step-by-step method

  1. Set up the problem.
  2. Write the rules.
  3. Transform both sides.
  4. Put in the initial values.
  5. Solve for Y(s).
  6. Invert the transform.
  7. Write the solution.

Formula: Transforms of Derivatives

The transform of a derivative is written using Y(s) and the initial values, which turns the differential equation into an equation for Y(s).

\(\mathcal{L}\{y'\} = sY(s) - y(0),\quad \mathcal{L}\{y''\} = s^{2}Y(s) - sy(0) - y'(0)\)

Useful Tips to Remember

Transform every term on both sides before collecting anything. The initial values go in straight away, so there are no constants to find at the end. Factorise the bottom of Y(s) before inverting, since the partial fractions come from its factors. Leave \(y'(0)\) blank for a first-order equation.

Required knowledge

Where Is the Laplace Transform Method Used?

The Laplace method solves an initial value problem in one go, with the starting conditions built in. Engineers use it for circuits that are switched on, springs that are suddenly pushed and control systems that receive a step input. It handles forcing terms like exponentials and sines neatly, and it is the standard method in electrical and control engineering courses.

  • Circuits switched on at t = 0
  • Springs and dampers with a sudden force
  • Control systems with a step input
  • Heating and cooling problems
  • Initial value problems in engineering courses

Laplace Transform ODE Practice Problems

Example 1 solves \(y'' - y = 0\) with \(y(0) = 0\) and \(y'(0) = 1\), and Example 2 solves \(y' - 3y = 0\) with \(y(0) = 1\). Examples 3 and 4 give you two more problems of the same kind to try. Transform, solve for \(Y(s)\) and invert.

The worked examples below go through the same pattern from start to finish, so you can compare every step with your own working. Try each problem on paper first, then open the example and check your working one step at a time, so you can see exactly which step went wrong if your answer does not match. Use them to check your answers and to understand why each step works.

See Example 1 Hide Example 1

Problem

\(y'' - y = 0,\; y(0) = 0,\; y'(0) = 1\)

Approach

Step-by-step method

  1. Set up the problem.
  2. Write the rules.
  3. Transform both sides.
  4. Put in the initial values.
  5. Solve for Y(s).
  6. Invert the transform.
  7. Write the solution.

Formula

Formula: Transforms of Derivatives

The transform of a derivative is written using Y(s) and the initial values, which turns the differential equation into an equation for Y(s).

\(\mathcal{L}\{y'\} = sY(s) - y(0),\quad \mathcal{L}\{y''\} = s^{2}Y(s) - sy(0) - y'(0)\)

Step 1

Step 1 - Set up the problem.

In this problem: We are solving \(y'' - y = 0\) with \(y(0) = 0\) and \(y'(0) = 1\). The Laplace transform turns the differential equation into an algebra problem for \(Y(s) = \mathcal{L}\{y(t)\}\).

\(y'' - y = 0,\; y(0) = 0,\; y'(0) = 1\)

Step 2

Step 2 - Write the rules.

In this problem: The transform of a derivative is written using \(Y(s)\) and the initial values, so the initial conditions are built in automatically.

\(\mathcal{L}\{y'\} = sY(s) - y(0),\quad \mathcal{L}\{y''\} = s^{2}Y(s) - sy(0) - y'(0)\)

Step 3

Step 3 - Transform both sides.

In this problem: Transforming every term of the left side with these rules gives \(\left(s^{2}Y - sy(0) - y'(0)\right) - Y = 0\).

\(\left(s^{2}Y - sy(0) - y'(0)\right) - Y = 0\)

Step 4

Step 4 - Put in the initial values.

In this problem: Putting in \(y(0) = 0\) and \(y'(0) = 1\) and collecting the \(Y\) terms gives \(\left(s^{2} - 1\right)Y - 1 = 0\).

\(\left(s^{2} - 1\right)Y - 1 = 0\)

Step 5

Step 5 - Solve for Y(s).

In this problem: Moving the other terms to the right and dividing by \(s^{2} - 1\) gives \(Y(s) = \frac{1}{\left(s - 1\right) \left(s + 1\right)}\).

\(Y(s) = \frac{1}{\left(s - 1\right) \left(s + 1\right)}\)

Step 6

Step 6 - Invert the transform.

In this problem: Taking the inverse transform of \(\frac{1}{\left(s - 1\right) \left(s + 1\right)}\), covered in the Inverse Laplace Transform Calculator, gives \(y(t) = \frac{e^{t}}{2} - \frac{e^{- t}}{2}\).

\(y(t) = \mathcal{L}^{-1}\left\{\frac{1}{\left(s - 1\right) \left(s + 1\right)}\right\} = \frac{e^{t}}{2} - \frac{e^{- t}}{2}\)

Step 7

Step 7 - Write the solution.

In this problem: So the solution is \(y(t) = \frac{e^{t}}{2} - \frac{e^{- t}}{2}\).

\(y(t) = \frac{e^{t}}{2} - \frac{e^{- t}}{2}\)

Final Answer

\(y(t) = \frac{e^{t}}{2} - \frac{e^{- t}}{2}\)
See Example 2 Hide Example 2

Problem

\(y' - 3 y = 0,\; y(0) = 1\)

Approach

Step-by-step method

  1. Set up the problem.
  2. Write the rules.
  3. Transform both sides.
  4. Put in the initial values.
  5. Solve for Y(s).
  6. Invert the transform.
  7. Write the solution.

Formula

Formula: Transforms of Derivatives

The transform of a derivative is written using Y(s) and the initial values, which turns the differential equation into an equation for Y(s).

\(\mathcal{L}\{y'\} = sY(s) - y(0),\quad \mathcal{L}\{y''\} = s^{2}Y(s) - sy(0) - y'(0)\)

Step 1

Step 1 - Set up the problem.

In this problem: We are solving \(y' - 3 y = 0\) with \(y(0) = 1\). The Laplace transform turns the differential equation into an algebra problem for \(Y(s) = \mathcal{L}\{y(t)\}\).

\(y' - 3 y = 0,\; y(0) = 1\)

Step 2

Step 2 - Write the rules.

In this problem: The transform of a derivative is written using \(Y(s)\) and the initial values, so the initial conditions are built in automatically.

\(\mathcal{L}\{y'\} = sY(s) - y(0),\quad \mathcal{L}\{y''\} = s^{2}Y(s) - sy(0) - y'(0)\)

Step 3

Step 3 - Transform both sides.

In this problem: Transforming every term of the left side with these rules gives \(\left(sY - y(0)\right) - 3Y = 0\).

\(\left(sY - y(0)\right) - 3Y = 0\)

Step 4

Step 4 - Put in the initial values.

In this problem: Putting in \(y(0) = 1\) and collecting the \(Y\) terms gives \(\left(s - 3\right)Y - 1 = 0\).

\(\left(s - 3\right)Y - 1 = 0\)

Step 5

Step 5 - Solve for Y(s).

In this problem: Moving the other terms to the right and dividing by \(s - 3\) gives \(Y(s) = \frac{1}{s - 3}\).

\(Y(s) = \frac{1}{s - 3}\)

Step 6

Step 6 - Invert the transform.

In this problem: Taking the inverse transform of \(\frac{1}{s - 3}\), covered in the Inverse Laplace Transform Calculator, gives \(y(t) = e^{3 t}\).

\(y(t) = \mathcal{L}^{-1}\left\{\frac{1}{s - 3}\right\} = e^{3 t}\)

Step 7

Step 7 - Write the solution.

In this problem: So the solution is \(y(t) = e^{3 t}\).

\(y(t) = e^{3 t}\)

Final Answer

\(y(t) = e^{3 t}\)
See Example 3 Hide Example 3

Problem

\(y' + 2 y = 0,\; y(0) = 3\)

Approach

Step-by-step method

  1. Set up the problem.
  2. Write the rules.
  3. Transform both sides.
  4. Put in the initial values.
  5. Solve for Y(s).
  6. Invert the transform.
  7. Write the solution.

Formula

Formula: Transforms of Derivatives

The transform of a derivative is written using Y(s) and the initial values, which turns the differential equation into an equation for Y(s).

\(\mathcal{L}\{y'\} = sY(s) - y(0),\quad \mathcal{L}\{y''\} = s^{2}Y(s) - sy(0) - y'(0)\)

Step 1

Step 1 - Set up the problem.

In this problem: We are solving \(y' + 2 y = 0\) with \(y(0) = 3\). The Laplace transform turns the differential equation into an algebra problem for \(Y(s) = \mathcal{L}\{y(t)\}\).

\(y' + 2 y = 0,\; y(0) = 3\)

Step 2

Step 2 - Write the rules.

In this problem: The transform of a derivative is written using \(Y(s)\) and the initial values, so the initial conditions are built in automatically.

\(\mathcal{L}\{y'\} = sY(s) - y(0),\quad \mathcal{L}\{y''\} = s^{2}Y(s) - sy(0) - y'(0)\)

Step 3

Step 3 - Transform both sides.

In this problem: Transforming every term of the left side with these rules gives \(\left(sY - y(0)\right) + 2Y = 0\).

\(\left(sY - y(0)\right) + 2Y = 0\)

Step 4

Step 4 - Put in the initial values.

In this problem: Putting in \(y(0) = 3\) and collecting the \(Y\) terms gives \(\left(s + 2\right)Y - 3 = 0\).

\(\left(s + 2\right)Y - 3 = 0\)

Step 5

Step 5 - Solve for Y(s).

In this problem: Moving the other terms to the right and dividing by \(s + 2\) gives \(Y(s) = \frac{3}{s + 2}\).

\(Y(s) = \frac{3}{s + 2}\)

Step 6

Step 6 - Invert the transform.

In this problem: Taking the inverse transform of \(\frac{3}{s + 2}\), covered in the Inverse Laplace Transform Calculator, gives \(y(t) = 3 e^{- 2 t}\).

\(y(t) = \mathcal{L}^{-1}\left\{\frac{3}{s + 2}\right\} = 3 e^{- 2 t}\)

Step 7

Step 7 - Write the solution.

In this problem: So the solution is \(y(t) = 3 e^{- 2 t}\).

\(y(t) = 3 e^{- 2 t}\)

Final Answer

\(y(t) = 3 e^{- 2 t}\)
See Example 4 Hide Example 4

Problem

\(y'' + 4 y = 0,\; y(0) = 1,\; y'(0) = 0\)

Approach

Step-by-step method

  1. Set up the problem.
  2. Write the rules.
  3. Transform both sides.
  4. Put in the initial values.
  5. Solve for Y(s).
  6. Invert the transform.
  7. Write the solution.

Formula

Formula: Transforms of Derivatives

The transform of a derivative is written using Y(s) and the initial values, which turns the differential equation into an equation for Y(s).

\(\mathcal{L}\{y'\} = sY(s) - y(0),\quad \mathcal{L}\{y''\} = s^{2}Y(s) - sy(0) - y'(0)\)

Step 1

Step 1 - Set up the problem.

In this problem: We are solving \(y'' + 4 y = 0\) with \(y(0) = 1\) and \(y'(0) = 0\). The Laplace transform turns the differential equation into an algebra problem for \(Y(s) = \mathcal{L}\{y(t)\}\).

\(y'' + 4 y = 0,\; y(0) = 1,\; y'(0) = 0\)

Step 2

Step 2 - Write the rules.

In this problem: The transform of a derivative is written using \(Y(s)\) and the initial values, so the initial conditions are built in automatically.

\(\mathcal{L}\{y'\} = sY(s) - y(0),\quad \mathcal{L}\{y''\} = s^{2}Y(s) - sy(0) - y'(0)\)

Step 3

Step 3 - Transform both sides.

In this problem: Transforming every term of the left side with these rules gives \(\left(s^{2}Y - sy(0) - y'(0)\right) + 4Y = 0\).

\(\left(s^{2}Y - sy(0) - y'(0)\right) + 4Y = 0\)

Step 4

Step 4 - Put in the initial values.

In this problem: Putting in \(y(0) = 1\) and \(y'(0) = 0\) and collecting the \(Y\) terms gives \(\left(s^{2} + 4\right)Y - s = 0\).

\(\left(s^{2} + 4\right)Y - s = 0\)

Step 5

Step 5 - Solve for Y(s).

In this problem: Moving the other terms to the right and dividing by \(s^{2} + 4\) gives \(Y(s) = \frac{s}{s^{2} + 4}\).

\(Y(s) = \frac{s}{s^{2} + 4}\)

Step 6

Step 6 - Invert the transform.

In this problem: Taking the inverse transform of \(\frac{s}{s^{2} + 4}\), covered in the Inverse Laplace Transform Calculator, gives \(y(t) = \cos {2 t}\).

\(y(t) = \mathcal{L}^{-1}\left\{\frac{s}{s^{2} + 4}\right\} = \cos {2 t}\)

Step 7

Step 7 - Write the solution.

In this problem: So the solution is \(y(t) = \cos {2 t}\).

\(y(t) = \cos {2 t}\)

Final Answer

\(y(t) = \cos {2 t}\)

Calculator and Practice Mode