---
title: Inverse Laplace transforms by residues
heading: Every pole contributes one term to the response
eyebrow: A12 · Lesson 20 · Inverse Laplace transforms by residues
xp: 40
---

::: hook
A10 inverted Laplace transforms with partial fractions and a table. Complex analysis explains why that works and removes the need for the table. The inverse transform is an integral along a vertical line in the s-plane; closing it to the left, around every pole, turns it into a sum of residues of $F(s)e^{st}$, one per pole. Each simple pole $p$ contributes a term $Ae^{pt}$; a pair of complex poles contributes a damped sinusoid; a double pole brings a factor of t. Reading a system's behavior off its pole positions, the habit every control and circuit engineer has, is this theorem.
:::

::: play
- $F(s) = \frac{s + c}{(s + a)^2 + \omega^2}$ has poles at $-a \pm j\omega$. The curve is its inverse transform, the sum of the residues of $F(s)e^{st}$ at the two poles.
- a sets how fast the response decays, ω how fast it oscillates, and c, through the residues' sizes, its amplitude and phase. The readouts give the residue at the upper pole.
- Set ω small: the poles nearly merge, and the response approaches the double-pole form $(1 + (c - a)t)e^{-at}$.
:::
:::

```sim plot
view: graph
x: t = 0..8 s
y: f = -1.5..1.5
slider: a = 0.1..2 step 0.05 = 0.4
slider: w = 0.1..5 step 0.1 = 2 rad/s
slider: c = -2..3 step 0.1 = 1
plot: exp(-a*t)*(cos(w*t) + (c - a)/w*sin(w*t)) | label: f(t)
plot: exp(-a*t) | dashed | label: envelope
plot: -exp(-a*t) | dashed
readout: Re of the residue at −a + jω = 0.5
readout: Im of the residue at −a + jω = -(c - a)/(2*w)
```

::: predict
## $F(s) = \frac{1}{(s + 2)^2}$ has a double pole at −2. What's f(t)?

- [ ] $e^{-2t}$
- [x] $te^{-2t}$
- [ ] $2e^{-2t}$
- [ ] $e^{-4t}$

::: reveal
$te^{-2t}$: the residue of $\frac{e^{st}}{(s + 2)^2}$ at the double pole is $\frac{d}{ds}e^{st} = te^{st}$ at $s = -2$. Repeated poles multiply by powers of t, which is how critically damped systems respond.
:::
:::

::: nameit
## The inversion integral

$$f(t) = \frac{1}{2\pi j}\int_{\gamma - j\infty}^{\gamma + j\infty} F(s)e^{st}\,ds$$

along a vertical line to the right of every pole. For t > 0, $e^{st}$ is tiny far to the left, so closing the line with a large arc to the left adds nothing (by Jordan's lemma, if F falls off), and the residue theorem gives

$$f(t) = \sum_{\text{poles } p_k}\text{Res}\left(F(s)e^{st}, p_k\right), \qquad t > 0$$

## What each pole gives

| Pole | Term in f(t) |
|---|---|
| simple, real, at p | $Ae^{pt}$, with $A = \text{Res}(F, p)$ |
| complex pair $-a \pm j\omega$ | $2\lvert A\rvert e^{-at}\cos(\omega t + \arg A)$, A the residue at the upper pole |
| double, at p | $\frac{d}{ds}\left[(s - p)^2F(s)e^{st}\right]_{s=p}$: terms in $e^{pt}$ and $te^{pt}$ |

Poles in the left half-plane decay; on the imaginary axis they persist; in the right half-plane they grow.

## Checks

The **initial value** $f(0^+) = \lim_{s\to\infty}sF(s)$ and the **final value** $f(\infty) = \lim_{s\to 0}sF(s)$ (when every pole of sF is in the left half-plane) catch most errors.
:::

::: example
## Invert $F(s) = \frac{1}{(s + 1)(s + 3)}$.

::: solution
1. **Residue of $Fe^{st}$ at −1.**
   $$\frac{e^{-t}}{2}$$
2. **Residue at −3.**
   $$\frac{e^{-3t}}{-2}$$
3. **Add them.**
   $$f(t) = \frac12(e^{-t} - e^{-3t})$$
4. **Check.** f(0) = 0, and $\lim sF = 0$ as s → ∞. ✓

**Answer:** $f(t) = \frac12(e^{-t} - e^{-3t})$.
:::
:::

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

::: solution
1. **Poles.** They're at $-1 \pm 2j$.
2. **Residue at $-1 + 2j$.**
   $$\begin{aligned} \text{Res}(F) &= \frac{(-1 + 2j) + 1}{2(-1 + 2j) + 2} \\ &= \frac{2j}{4j} \\ &= \frac12 \end{aligned}$$
3. **Add the conjugate pair.**
   $$\begin{aligned} f(t) &= 2\cdot\frac12 e^{-t}\cos 2t \\ &= e^{-t}\cos 2t \end{aligned}$$

**Answer:** $f(t) = e^{-t}\cos 2t$.
:::
:::

::: example
## Invert $F(s) = \frac{1}{s(s^2 + 4)}$, the step response of an undamped oscillator.

::: solution
1. **Residue at s = 0.** f(t) is the sum of the residues of $e^{st}F(s)$. At $s = 0$:
   $$\frac{1}{0 + 4} = \frac14$$
2. **Residue at s = 2j.**
   $$\begin{aligned} \frac{e^{2jt}}{s\cdot 2s}\Big|_{s=2j} &= \frac{e^{2jt}}{2(2j)^2} \\ &= -\frac{e^{2jt}}{8} \end{aligned}$$
3. **Residue at −2j.** It's the conjugate, so the pair adds to
   $$-\frac{\cos 2t}{4}$$
4. **Add them.**
   $$f(t) = \frac{1 - \cos 2t}{4}$$
   It swings between 0 and ½ forever.
5. **What each pole gave.** The pole at 0 gave the average, and the poles on the imaginary axis gave a steady oscillation that never decays.

**Answer:** $f(t) = \frac{1 - \cos 2t}{4}$, which swings between 0 and ½ forever.
:::
:::

::: check
given: a = 1 | 2; b = 3 | 5; t = 0.5 | 1
answer: (exp(-a*t) - exp(-b*t))/(b - a)
tolerance: 0.5%

## For $F(s) = \frac{1}{(s + \given{a})(s + \given{b})}$, what's f(t) at t = {t} s?

::: right
Right. $\frac{e^{-at} - e^{-bt}}{b - a}$ = {answer}.
:::

::: misses
- [(exp(-a*t) + exp(-b*t))/(b - a)] The residue at $-b$ is $\frac{1}{a - b}$, negative.
- [any] Not yet. Sum the residues of $F(s)e^{st}$.
:::
:::

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

## For $F(s) = \frac{1}{(s + \given{a})^2}$, what's f(t) at t = {t} s?

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

::: misses
- [exp(-a*t)] A double pole brings a factor of t.
- [any] Not yet. Differentiate $e^{st}$ and set $s = -a$.
:::
:::

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

## For $F(s) = \frac{s + \given{a}}{(s + \given{a})^2 + \given{w}^2}$, what's f(t) at t = {t} s?

::: right
Right. $e^{-at}\cos\omega t$ = {answer}.
:::

::: misses
- [exp(-a*t)*sin(w*t)] With $s + a$ on top, it's the cosine.
- [any] Not yet. The upper pole's residue is ½.
:::
:::

::: check
given: k = 2 | 5; a = 2 | 3
answer: k/a
tolerance: 0.5%

## What's the final value of f(t) for $F(s) = \frac{\given{k}}{s(s + \given{a})}$?

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

::: misses
- [k] Divide by the pole's value too: $sF = k/(s + a)$.
- [any] Not yet. $\lim_{s\to 0}sF(s)$.
:::
:::

::: check
given: c = 1 | 2 | 4
answer: c
tolerance: 0.5%

## What's the initial value $f(0^+)$ for $F(s) = \frac{\given{c}s + 7}{s^2 + 3s + 2}$?

::: right
Right. $\lim_{s\to\infty}sF(s) = c$ = {answer}.
:::

::: misses
- [any] Not yet. $\lim_{s\to\infty}sF(s)$: keep the leading terms.
:::
:::

::: check
kind: choice

## A transfer function has poles at −2, −1 ± 5j and +0.1. What does its impulse response do over a long time?

- [ ] Decays to zero
- [ ] Oscillates forever at 5 rad/s with constant amplitude
- [x] Grows without limit
- [ ] Settles to a constant

::: misses
- [1] The pole at +0.1 gives a term $e^{0.1t}$, which grows.
- [2] The pair at −1 ± 5j decays; only an imaginary-axis pair would persist.
- [4] A constant needs a pole at 0, and nothing growing.
:::
:::

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

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

::: part
answer: 1/a^2
tolerance: 0.5%

### What is the residue of $e^{st}F$ at $s = 0$, the final value?

::: misses
- [1/a] The double pole contributes $a^2$.
- [any] $\frac{1}{(0 + a)^2}$.
:::
:::

::: part
answer: (1 - exp(-a*t) - a*t*exp(-a*t))/a^2
tolerance: 0.5%

### What is f(t) at t = {t}?

::: misses
- [(1 - exp(-a*t))/a^2] The double pole adds a $te^{-at}$ term.
- [any] The double pole's residue is $\frac{d}{ds}\frac{e^{st}}{s}$ at $s = -a$.
:::
:::
:::

::: check
kind: derivation
vars: a = 0.5..3, w = 0.5..3, t = 0..3

## $F(s) = \frac{\omega}{(s + a)^2 + \omega^2}$ has poles at $-a \pm j\omega$.

::: step
answer: exp(-a*t)*sin(w*t)

### The residues of $e^{st}F$ are conjugates, so f(t) is twice the real part of one. What is f(t)?
:::

::: step
answer: w

### What is $f'(0^+)$?
:::

::: right
Right. $f = e^{-at}\sin\omega t$, which starts at zero with slope ω.
:::
:::

::: explain
## Why does each pole of F(s) contribute a term like $e^{pt}$ to f(t)?

::: model
The inverse transform is an integral of $F(s)e^{st}$ along a vertical line, and for t > 0 the line can be closed to the left, where $e^{st}$ vanishes, so the integral equals the sum of residues at the enclosed poles. At a simple pole p, the residue of $F(s)e^{st}$ is the residue of F times $e^{pt}$, because $e^{st}$ is smooth there: so each pole contributes its own exponential, with an amplitude set by its residue. A complex pole's term is a growing or decaying rotation, which pairs with its conjugate's to make a real damped sinusoid; a repeated pole's residue involves derivatives of $e^{st}$, bringing powers of t.
:::
:::

::: practice

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

## f(t) for $1/((s + \given{a})(s + \given{b}))$ at t = {t}?

::: misses
- [any] Sum of residues.
:::
:::

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

## f(t) for $1/(s + \given{a})^2$ at t = {t}?

::: misses
- [any] $te^{-at}$.
:::
:::

::: check
given: k = 3 | 8; a = 2 | 4
answer: k/a
tolerance: 0.5%

## Final value for $\given{k}/(s(s + \given{a}))$?

::: misses
- [any] $\lim sF$.
:::
:::
:::
