---
title: Inverting Laplace transforms
heading: From a fraction in s back to a signal in time
eyebrow: A10 · Lesson 19 · Inverting the transform
xp: 40
---

::: hook
Solving a circuit with Laplace turns calculus into algebra and leaves you with a fraction such as $\frac{3s + 5}{(s + 1)(s + 2)}$. To see what the circuit actually does in time, you have to turn that fraction back into a signal. Nobody does it with the inverse-transform integral. You split the fraction into simple pieces (A6's partial fractions), recognize each piece from a short table, and read off a sum of exponentials and sinusoids. Two theorems even give the starting and final values without inverting anything.
:::

::: play
- The transform is $F(s) = \frac{1}{(s + a)(s + b)}$, and the curve is its inverse, $f(t) = \frac{e^{-at} - e^{-bt}}{b - a}$.
- Each pole contributes one exponential. Move the poles and see which one sets the rise and which the fall.
- The readouts are the partial-fraction coefficients.
:::
:::

```sim plot
view: graph
x: t = 0..6 s
y: f = -0.05..0.6
slider: a = 0.2..2 step 0.1 = 0.5
slider: b = 2.5..6 step 0.1 = 3
plot: (exp(-a*t) - exp(-b*t))/(b - a) | label: f(t)
plot: exp(-a*t)/(b - a) | label: slow pole's term | dashed | color: ch2
plot: -exp(-b*t)/(b - a) | label: fast pole's term | dashed | color: ch3
readout: coefficient of the slow pole = 1/(b - a) | digits: 3
readout: coefficient of the fast pole = -1/(b - a) | digits: 3
```

::: predict
## What signal has the transform $\dfrac{2}{s + 1} + \dfrac{1}{s + 2}$?

- [x] $2e^{-t} + e^{-2t}$
- [ ] $2e^{t} + e^{2t}$
- [ ] $2\cos t + \cos 2t$
- [ ] $3e^{-t}$

::: reveal
$2e^{-t} + e^{-2t}$. Each term $\frac{A}{s + a}$ is the transform of $Ae^{-at}$, and the transform is linear, so a sum of terms is a sum of exponentials. A pole at $s = -a$ always means a component $e^{-at}$.
:::
:::

::: nameit
## The table

| $f(t)$, for $t \ge 0$ | $F(s)$ |
|---|---|
| step, 1 | $\frac{1}{s}$ |
| $t$ | $\frac{1}{s^2}$ |
| $e^{-at}$ | $\frac{1}{s + a}$ |
| $te^{-at}$ | $\frac{1}{(s + a)^2}$ |
| $\sin\omega t$ | $\frac{\omega}{s^2 + \omega^2}$ |
| $\cos\omega t$ | $\frac{s}{s^2 + \omega^2}$ |
| $e^{-at}\sin\omega t$ | $\frac{\omega}{(s + a)^2 + \omega^2}$ |
| $e^{-at}\cos\omega t$ | $\frac{s + a}{(s + a)^2 + \omega^2}$ |

And the derivative rule, $\mathcal{L}\{f'\} = sF(s) - f(0)$, which is how starting values enter.

## Inverting

1. If the numerator's degree isn't below the denominator's, divide first.
2. Factor the denominator: its roots are the **poles**.
3. Split into partial fractions: distinct real poles give $\frac{A}{s + a}$ (cover-up), repeated poles add $\frac{B}{(s + a)^2}$, complex pairs give the damped sinusoid terms (complete the square).
4. Read each term from the table.

## Initial and final values

Without inverting:

$$f(0^+) = \lim_{s\to\infty}sF(s) \qquad f(\infty) = \lim_{s\to 0}sF(s)$$

The final value theorem only applies if $f$ actually settles: every pole of $sF(s)$ must be in the left half-plane. A system with a pole on the axis or to its right oscillates or grows forever, and the formula gives nonsense.
:::

::: example
## Invert $F(s) = \dfrac{3s + 5}{(s + 1)(s + 2)}$, and check with the two theorems.

::: solution
1. **Partial fractions by cover-up.**
   $$\begin{aligned} A &= \frac{-3 + 5}{-1 + 2} \\ &= 2 \end{aligned}$$
   $$\begin{aligned} B &= \frac{-6 + 5}{-2 + 1} \\ &= 1 \end{aligned}$$
2. **Invert.**
   $$f(t) = 2e^{-t} + e^{-2t}$$
3. **Check the initial value.**
   $$\begin{aligned} sF(s) &= \frac{3s^2 + 5s}{s^2 + 3s + 2} \\ &\to 3 \end{aligned}$$
   as $s \to \infty$, and $f(0) = 2 + 1 = 3$.
4. **Check the final value.** $sF(s) \to 0$ as $s \to 0$, and $f(\infty) = 0$.

**Answer:** $f(t) = 2e^{-t} + e^{-2t}$, and both theorems agree with it: it starts at 3 and settles at 0.
:::
:::

::: example
## A system's step response is $Y(s) = \dfrac{4}{s(s + 2)}$. Find $y(t)$.

::: solution
1. **Partial fractions.**
   $$\frac{4}{s(s + 2)} = \frac{2}{s} - \frac{2}{s + 2}$$
2. **Invert.**
   $$y = 2 - 2e^{-2t}$$
3. **Check the final value.** The final value theorem agrees:
   $$\begin{aligned} sY(s) &= \frac{4}{s + 2} \\ &\to 2 \end{aligned}$$

**Answer:** $y(t) = 2 - 2e^{-2t}$, settling at 2.
:::
:::

::: example
## Invert $F(s) = \dfrac{1}{s^2 + 2s + 5}$.

::: solution
1. **Complete the square.**
   $$s^2 + 2s + 5 = (s + 1)^2 + 4$$
2. **Match a shifted sine.**
   $$\begin{aligned} F(s) &= \frac{1}{(s + 1)^2 + 2^2} \\ &= \frac12 \cdot \frac{2}{(s + 1)^2 + 2^2} \end{aligned}$$
3. **Invert.**
   $$f(t) = \tfrac12e^{-t}\sin 2t$$
4. **Evaluate at $t = 1$.**
   $$\begin{aligned} f(1) &= 0.5 \times 0.368 \times 0.909 \\ &= 0.167 \end{aligned}$$
5. **Read it from the poles.** The poles at $-1 \pm 2j$ say directly: ringing at 2 rad/s inside an $e^{-t}$ envelope.

**Answer:** $f(t) = \tfrac12e^{-t}\sin 2t$, which is 0.167 at $t = 1$.
:::
:::

::: check
given: a = 2 | 5; t = 0.2 | 0.5
answer: exp(-a*t)
tolerance: 0.5%

## What is the inverse transform of $\dfrac{1}{s + \given{a}}$ at $t$ = {t}?

::: right
Right. $e^{-at}$ = {answer}.
:::

::: misses
- [exp(a*t)] A pole at $s = -a$ gives a decaying exponential.
- [any] Not yet. Look it up in the table.
:::
:::

::: check
given: p = 2 | 5; q = 7 | 9
answer: (q - p)/2

## $\dfrac{\given{p}s + \given{q}}{(s + 1)(s + 3)} = \dfrac{A}{s + 1} + \dfrac{B}{s + 3}$. What is $A$, the coefficient of $e^{-t}$ in the inverse?

::: right
Right. Cover up and set $s = -1$: $\frac{q - p}{2}$ = {answer}.
:::

::: misses
- [(q - 3*p)/(-2)] That's $B$.
- [any] Not yet. Cover-up at $s = -1$.
:::
:::

::: check
given: K = 4 | 10; a = 2 | 5
answer: K/a
tolerance: 0.5%

## What does the signal with transform $\dfrac{\given{K}}{s(s + \given{a})}$ settle to?

::: right
Right. $\lim_{s\to 0}sF(s) = \frac{K}{a}$ = {answer}.
:::

::: misses
- [K] The final value theorem: $sF(s) = \frac{K}{s + a}$ at $s = 0$.
- [0] The pole at $s = 0$ is a step, which doesn't decay.
- [any] Not yet. The final value theorem.
:::
:::

::: check
given: p = 3 | 6; q = 5 | 8
answer: p

## What is $f(0^+)$ for $F(s) = \dfrac{\given{p}s + \given{q}}{(s + 1)(s + 2)}$?

::: right
Right. $sF(s) \to p$ as $s \to \infty$: {answer}.
:::

::: misses
- [q/2] That's $F(0)$, not the initial value.
- [any] Not yet. $\lim_{s\to\infty}sF(s)$.
:::
:::

::: check
given: w = 2 | 5; t = 0.2 | 0.4
answer: sin(w*t)
tolerance: 0.5%

## What is the inverse transform of $\dfrac{\given{w}}{s^2 + \given{w}^2}$ at $t$ = {t}?

::: right
Right. $\sin\omega t$ = {answer}.
:::

::: misses
- [cos(w*t)] The cosine has $s$ on top; $\omega$ on top is the sine.
- [any] Not yet. Look it up in the table.
:::
:::

::: check
given: a = 2 | 3; t = 0.5 | 1.5
answer: t*exp(-a*t)
tolerance: 0.5%

## What is the inverse transform of $\dfrac{1}{(s + \given{a})^2}$ at $t$ = {t}?

::: right
Right. $te^{-at}$ = {answer}: a double pole brings a factor of $t$.
:::

::: misses
- [exp(-a*t)] That's a single pole. A double pole gives $te^{-at}$.
- [any] Not yet. Look it up in the table.
:::
:::

::: check
kind: parts
given: a = 1 | 2; w = 2 | 3; t = 0.5 | 1

## Invert $F(s) = \dfrac{1}{(s + \given{a})^2 + \given{w}^2}$.

::: part
answer: exp(-a*t)*sin(w*t)/w
tolerance: 0.5%

### What is $f$ at $t$ = {t}?

::: misses
- [exp(-a*t)*sin(w*t)] The sine's transform has $w$ on top: divide by $w$.
- [any] $\frac1we^{-at}\sin wt$.
:::
:::
:::

::: check
kind: derivation
vars: a = 0.5..3, b = 4..8, t = 0..3

## Invert $\frac{1}{(s + a)(s + b)}$ by partial fractions.

::: step
answer: 1/(b - a)

### What is the coefficient of $\frac{1}{s + a}$?
:::

::: step
answer: (exp(-a*t) - exp(-b*t))/(b - a)

### What is $f(t)$?
:::

::: right
Right. Cover up each factor in turn; the two coefficients are equal and opposite.
:::
:::

::: explain
## Why can't the final value theorem be used on $F(s) = \dfrac{1}{s^2 + 4}$?

::: model
$F(s)$ has poles at $s = \pm 2j$, on the imaginary axis, so its inverse is $\frac{1}{2}\sin 2t$, which oscillates forever and never settles. The theorem assumes there is a final value to find, which needs every pole of $sF(s)$ in the left half-plane. Applying it anyway would give $\lim_{s\to 0}\frac{s}{s^2 + 4} = 0$, a value the signal never approaches.
:::
:::

::: practice

::: check
given: a = 1 | 4; b = 6 | 8
answer: 1/(b - a)
tolerance: 0.5%

## In $\dfrac{1}{(s + \given{a})(s + \given{b})}$, what is the coefficient of $\frac{1}{s + \given{a}}$?

::: misses
- [-1/(b - a)] That's the other one.
- [any] Cover-up at $s = -a$.
:::
:::

::: check
given: K = 6 | 12; a = 3 | 4
answer: K/a
tolerance: 0.5%

## What is the step response's final value for a system with transfer function $\dfrac{\given{K}}{s + \given{a}}$?

::: misses
- [any] $Y = \frac{K}{s(s + a)}$; final value $K/a$.
:::
:::

::: check
given: a = 1 | 2; w = 3 | 4; t = 0.5 | 1
answer: exp(-a*t)*cos(w*t)
tolerance: 0.5%

## What is the inverse transform of $\dfrac{s + \given{a}}{(s + \given{a})^2 + \given{w}^2}$ at $t$ = {t}?

::: misses
- [any] $e^{-at}\cos\omega t$.
:::
:::
:::
