Laplace Transform ODE Solver Calculator
This Laplace Transform ODE Solver Calculator solves an initial value problem by moving it out of the time domain, and shows the working 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
- Set up the problem.
- Write the rules.
- Transform both sides.
- Put in the initial values.
- Solve for Y(s).
- Invert the transform.
- 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).
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
- How to transform the right side, covered in the Laplace Transform Calculator.
- How to invert Y(s), covered in the Inverse Laplace Transform Calculator.
- How to split into partial fractions, covered in the Partial Fraction Decomposition Calculator.
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\). Transform, solve for \(Y(s)\) and invert. For two more free worked examples, check out the Laplace Transform ODE Solver Notes.
The worked examples below go through the same pattern from start to finish, so you can compare every step with your own working. For more practice, the notes page goes further with extra worked examples and fuller explanations of the ideas behind each step. Use them together to check your answers and to understand why each step works.
See Example 1 Hide Example 1
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the rules.
- Transform both sides.
- Put in the initial values.
- Solve for Y(s).
- Invert the transform.
- 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).
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)\}\).
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.
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\).
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\).
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)}\).
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}\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the rules.
- Split into partial fractions.
- Invert each fraction.
- Write the inverse transform.
Formula
Formula: Inverse Laplace Transform
The inverse transform finds the function of t that has the given transform, by reading the table of transforms backwards.
Step 1
Step 1 - Set up the problem.
In this problem: We are finding the function \(f(t)\) whose Laplace transform is \(F(s) = \frac{1}{\left(s - 1\right) \left(s + 1\right)}\).
Step 2
Step 2 - Write the rules.
In this problem: The inverse transform is found by writing \(F(s)\) as a sum of simple fractions and reading each one backwards from the table of transforms. The inverse is linear, so each fraction is inverted on its own.
Step 3
Step 3 - Split into partial fractions.
In this problem: Splitting into partial fractions, covered in the Partial Fraction Decomposition Calculator, gives \(\frac{1}{\left(s - 1\right) \left(s + 1\right)} = - \frac{1}{2 \left(s + 1\right)} + \frac{1}{2 \left(s - 1\right)}\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the form of the answer.
- Divide if the top is not smaller.
- Factorise the denominator.
- Write the fractions with unknown numbers.
- Multiply through by the denominator.
- Find the unknown numbers.
- Write the answer.
Formula
Formula: Partial Fractions for Linear Factors
Each linear factor of the denominator gets its own fraction with a number on top. Repeated factors get one fraction for each power, and quadratic factors that cannot be factorised get Ax + B on top.
Step 1
Step 1 - Set up the problem.
In this problem: We are writing \(\frac{1}{s^{2} - 1}\) as a sum of simpler fractions, one for each factor of the denominator.
Step 2
Step 2 - Write the form of the answer.
In this problem: Each factor of the denominator gives its own fraction. A linear factor \(s - a\) gives \(\frac{A}{s - a}\), a repeated factor \((s - a)^{2}\) gives \(\frac{A}{s - a} + \frac{B}{(s - a)^{2}}\), and a quadratic that cannot be factorised gives \(\frac{Ax + B}{s^{2} + px + q}\). The top must have a lower degree than the bottom.
Step 3
Step 3 - Divide if the top is not smaller.
In this problem: The top has degree 0, which is lower than the degree 2 of the bottom, so no division is needed.
Step 4
Step 4 - Factorise the denominator.
In this problem: Factorising the denominator, covered in the Factoring Higher Degree Polynomials Calculator, gives \(s^{2} - 1 = \left(s + 1\right) \left(s - 1\right)\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Take out the common factor.
- Break the polynomial down: list the numbers to try, test them, turn the root into a bracket and divide.
- Do the same again on what is left, until it cannot be broken down.
- Factor what is left.
- Write the polynomial as a product of its factors.
Depending on the polynomial, some of these steps are not needed, so they are skipped.
Step 1
Step 1 - Set up the problem.
In this problem: The polynomial to factor is \(s^{2} - 1\). Factoring means writing it as a product of simpler polynomials.
Step 2
Step 2 - Break the polynomial down: list the numbers to try, test them, turn the root into a bracket and divide.
In this problem: Look for a bracket that comes out of \(s^{2} - 1\).
Step 2a
Step 2a - List the numbers to try.
In this problem: Look at the last number, \(-1\). The numbers that go into \(1\), both positive and negative, are \(\pm 1\). Try them in order until one gives \(0\).
Step 2b
Step 2b - Try \(s = 1\).
In this problem: Set \(s = 1\) in \(s^{2} - 1\). It gives \(0\), so \(s = 1\) is a root. One root is enough to carry on, so the rest of the list is not tested here.
Step 2c
Step 2c - Use the root to find a factor.
In this problem: Start from the root \(s = 1\) found in the test. Take \(1\) away from both sides so that one side becomes \(0\). That leaves \(s - 1 = 0\), so the bracket \((s - 1)\) is \(0\) exactly at the root. A bracket like that always divides \(s^{2} - 1\) exactly (the Factor Theorem), so \((s - 1)\) is a factor.
Step 2d
Step 2d - Divide by the factor.
In this problem: Divide \(s^{2} - 1\) by \((s - 1)\). It gives \(s + 1\) with no remainder, so \(s^{2} - 1 = (s - 1)(s + 1)\), which splits it into two brackets.
Problem
Approach
Step-by-step method
- Set up the problem.
- Bring down the leading coefficient.
- Multiply by the divisor's number and add down each column.
- Read off the quotient and the remainder.
Step 1
Step 1 - Set up the problem.
In this problem: The table needs two things: a number for the corner, which comes from the divisor, and the coefficients of the dividend, which go along the top.
Step 1a
Step 1a - Find the number for the corner.
In this problem: The corner number is the value of \(s\) that makes the divisor zero: \(s - 1 = 0\) gives \(s = 1\). So \(1\) goes in the corner.
Step 1b
Step 1b - Write down the coefficients of the dividend.
In this problem: Every power from \(s^{2}\) down to the number needs a place, so a missing power is written with a \(0\): \(s^{2} - 1 = s^{2} + 0s - 1\). The numbers in front of each power, in order, are \(1\), \(0\) and \(-1\).
Step 1c
Step 1c - Draw the table.
In this problem: The corner number \(1\) goes on the left, and the coefficients \(1\), \(0\) and \(-1\) go along the top row. The row under them stays empty for now, it is where the multiplied numbers will go. The answers are written under the line, and the last column is fenced off because the number that ends up there is the remainder.
| \(1\) | \(1\) | \(0\) | \(-1\) |
Step 2
Step 2 - Bring down the leading coefficient.
In this problem: The leading coefficient \(1\) comes straight down to the bottom row.
| \(1\) | \(1\) | \(0\) | \(-1\) |
| \(1\) |
Step 3
Step 3 - Multiply by the divisor's number and add down each column.
In this problem: There are \(2\) columns left. For each one, the last number on the bottom row is multiplied by \(1\), written in the next column, and added to the number above it.
Step 3a
Step 3a - Work through the second column.
In this problem: \(1 \times 1 = 1\) goes under \(0\), and \(0 + 1 = 1\) goes on the bottom row.
| \(1\) | \(1\) | \(0\) | \(-1\) |
| \(1\) | |||
| \(1\) | \(1\) |
Step 3b
Step 3b - Work through the third column.
In this problem: \(1 \times 1 = 1\) goes under \(-1\), and \(-1 + 1 = 0\) goes on the bottom row.
| \(1\) | \(1\) | \(0\) | \(-1\) |
| \(1\) | \(1\) | ||
| \(1\) | \(1\) | \(0\) |
Step 4
Step 4 - Read off the quotient and the remainder.
In this problem: The last number on the bottom row, \(0\), is the remainder, and \(1\) and \(1\) are the coefficients of the quotient. Dividing by \(s - 1\) lowers every power by one, so the quotient starts at \(s\) instead of \(s^{2}\), giving \(s + 1\).
Final Answer
Step 3
Step 3 - Write the polynomial as a product of its factors.
In this problem: Putting all the factors together gives \((s - 1)(s + 1)\).
Final Answer
Step 5
Step 5 - Write the fractions with unknown numbers.
In this problem: Each factor gives its own fraction: \(\left(s + 1\right)\) is linear, so it gives one fraction and \(\left(s - 1\right)\) is linear, so it gives one fraction. This gives \(\frac{1}{\left(s + 1\right) \left(s - 1\right)} = \frac{A}{s + 1} + \frac{B}{s - 1}\).
Step 6
Step 6 - Multiply through by the denominator.
In this problem: Multiplying both sides by \(\left(s + 1\right) \left(s - 1\right)\) clears every fraction and leaves \(1 = A \left(s - 1\right) + B \left(s + 1\right)\). This must be true for every value of \(s\).
Step 7
Step 7 - Find the unknown numbers.
In this problem: The unknown numbers are found by choosing useful values of \(s\) and by matching coefficients, which gives \(A = - \frac{1}{2},\; B = \frac{1}{2}\).
Step 7a
Step 7a - Put s = -1.
In this problem: Putting \(s = -1\) makes \(s + 1\) zero, so every term with that factor disappears and leaves \(1 = -2 A \;\Rightarrow\; A = - \frac{1}{2}\).
Step 7b
Step 7b - Put s = 1.
In this problem: Putting \(s = 1\) makes \(s - 1\) zero, so every term with that factor disappears and leaves \(1 = 2 B \;\Rightarrow\; B = \frac{1}{2}\).
Step 8
Step 8 - Write the answer.
In this problem: Putting the numbers into the fractions gives \(\frac{1}{s^{2} - 1} = - \frac{1}{2 \left(s + 1\right)} + \frac{1}{2 \left(s - 1\right)}\).
Final Answer
Step 4
Step 4 - Invert each fraction.
In this problem: Each fraction is inverted on its own.
Step 4a
Step 4a - Invert \(- \frac{1}{2 \left(s + 1\right)}\).
In this problem: From the table and the shift rule, \(\mathcal{L}\{t^{n}e^{at}\} = \frac{n!}{(s - a)^{n+1}}\), so \(\mathcal{L}^{-1}\left\{\frac{1}{s + 1}\right\} = e^{- t}\), and multiplying by \(- \frac{1}{2}\) gives \(- \frac{e^{- t}}{2}\).
Step 4b
Step 4b - Invert \(\frac{1}{2 \left(s - 1\right)}\).
In this problem: From the table and the shift rule, \(\mathcal{L}\{t^{n}e^{at}\} = \frac{n!}{(s - a)^{n+1}}\), so \(\mathcal{L}^{-1}\left\{\frac{1}{s - 1}\right\} = e^{t}\), and multiplying by \(\frac{1}{2}\) gives \(\frac{e^{t}}{2}\).
Step 5
Step 5 - Write the inverse transform.
In this problem: Adding the results gives \(f(t) = \frac{e^{t}}{2} - \frac{e^{- t}}{2}\).
Final Answer
Step 7
Step 7 - Write the solution.
In this problem: So the solution is \(y(t) = \frac{e^{t}}{2} - \frac{e^{- t}}{2}\).
Final Answer
See Example 2 Hide Example 2
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the rules.
- Transform both sides.
- Put in the initial values.
- Solve for Y(s).
- Invert the transform.
- 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).
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)\}\).
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.
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\).
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\).
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}\).
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}\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the rules.
- Split into partial fractions.
- Invert each fraction.
- Write the inverse transform.
Formula
Formula: Inverse Laplace Transform
The inverse transform finds the function of t that has the given transform, by reading the table of transforms backwards.
Step 1
Step 1 - Set up the problem.
In this problem: We are finding the function \(f(t)\) whose Laplace transform is \(F(s) = \frac{1}{s - 3}\).
Step 2
Step 2 - Write the rules.
In this problem: The inverse transform is found by writing \(F(s)\) as a sum of simple fractions and reading each one backwards from the table of transforms. The inverse is linear, so each fraction is inverted on its own.
Step 3
Step 3 - Split into partial fractions.
In this problem: The denominator has only one factor, so \(\frac{1}{s - 3}\) is already a single simple fraction and does not need splitting.
Step 4
Step 4 - Invert each fraction.
In this problem: From the table and the shift rule, \(\mathcal{L}\{t^{n}e^{at}\} = \frac{n!}{(s - a)^{n+1}}\), so \(\mathcal{L}^{-1}\left\{\frac{1}{s - 3}\right\} = e^{3 t}\).
Step 5
Step 5 - Write the inverse transform.
In this problem: Adding the results gives \(f(t) = e^{3 t}\).
Final Answer
Step 7
Step 7 - Write the solution.
In this problem: So the solution is \(y(t) = e^{3 t}\).
Final Answer
Notes and Practice Mode
Want to understand the method more deeply? The Laplace Transform ODE Solver Notes go through the same pattern with extra worked examples and fuller explanations of the ideas behind each step, so you can see why every step works and not just what to do. When you are ready to test yourself, Laplace Transform ODE Solver Practice gives you a new problem at Easy, Medium or Hard level, checks your answer and shows the full working whenever you get one wrong. Practice Mode for this calculator is available on the Pro plan.
Login and upgrade to Pro to unlock the full step solution.
Example Problems
Click one to load it into the box and solve it.