---
title: The Laplace integral
heading: An improper integral that turns calculus into algebra
eyebrow: A6 · Lesson 8 · The Laplace integral
xp: 50
---

::: hook
Circuit engineers rarely solve differential equations the way a calculus class does. They multiply the signal by $e^{-st}$ and integrate from 0 to infinity. That improper integral, the Laplace transform, turns derivatives into multiplication by $s$, so a circuit's equation becomes algebra. A10 develops it fully; this lesson shows where it comes from, using only the improper integrals and integration by parts you already know.
:::

::: play
- The solid curve is $e^{-st}\sin 3t$, the integrand of the Laplace transform of $\sin 3t$. The shaded area is its integral from 0 to infinity.
- Increase $s$. The exponential squeezes the sine harder, and the area shrinks.
- The readout is the area, which the lesson shows equals $\frac{3}{s^2 + 9}$.
:::

```sim plot
view: graph
x: t = 0..5
y: y = -1..1
slider: s = 0.5..6 = 2
plot: exp(-s*t)*sin(3*t) | samples: 500 | fill: 0..5 | label: e^(-st) sin 3t
plot: exp(-s*t) | dashed | color: ch2 | label: envelope
readout: area, 3/(s² + 9) = 3/(s^2 + 9) | digits: 4
```

::: predict
## What is $\displaystyle\int_0^\infty e^{-st}\,dt$ for $s > 0$?

- [x] $1/s$
- [ ] $s$
- [ ] $e^{-s}$
- [ ] It diverges

::: reveal
It's $1/s$: $\left[-\frac{e^{-st}}{s}\right]_0^\infty = 0 - \left(-\frac1s\right)$. That's the Laplace transform of the constant 1. For $s \le 0$ the integral diverges, which is why transforms come with a condition like $s > 0$.
:::
:::

::: nameit
## The transform

For a function $f(t)$ defined for $t \ge 0$,

$$F(s) = \int_0^\infty e^{-st}f(t)\,dt$$

whenever the integral converges. The factor $e^{-st}$ damps $f$ so the improper integral is finite, provided $f$ doesn't grow faster than an exponential.

## A short table, each from one integral

| $f(t)$ | $F(s)$ | needs |
|---|---|---|
| $1$ | $\frac1s$ | $s > 0$ |
| $e^{at}$ | $\frac{1}{s - a}$ | $s > a$ |
| $t$ | $\frac{1}{s^2}$ | $s > 0$ |
| $\sin\omega t$ | $\frac{\omega}{s^2 + \omega^2}$ | $s > 0$ |
| $\cos\omega t$ | $\frac{s}{s^2 + \omega^2}$ | $s > 0$ |

The row for $t$ is one integration by parts; the sine and cosine rows come from $e^{at}$ with $a = j\omega$, or from parts twice.

## Derivatives become multiplication

Integrating by parts with $u = e^{-st}$ and $dv = f'(t)\,dt$:

$$\int_0^\infty e^{-st}f'(t)\,dt = \left[e^{-st}f(t)\right]_0^\infty + s\int_0^\infty e^{-st}f(t)\,dt = sF(s) - f(0)$$

So the transform of $f'$ is $sF(s) - f(0)$. A differential equation in $t$ becomes an algebraic equation in $s$, and the starting value comes along automatically.

## An RC circuit in two lines

$RC\,v' + v = V$ for $t > 0$, with $v(0) = 0$. Transforming: $RC\,sV(s) + V(s) = \frac Vs$, so $V(s) = \frac{V}{s(RCs + 1)} = V\left(\frac1s - \frac{1}{s + 1/RC}\right)$ by partial fractions. Reading the table backward: $v(t) = V(1 - e^{-t/RC})$.
:::

::: example
## Find the Laplace transform of $e^{-2t}$ and evaluate it at $s = 3$.

::: solution
1. **Combine the exponentials.**
   $$\begin{aligned} &\int_0^\infty e^{-st}e^{-2t}\,dt \\ &= \int_0^\infty e^{-(s + 2)t}\,dt \\ &= \frac{1}{s + 2} \end{aligned}$$
   for $s > -2$.
2. **Evaluate at $s = 3$.**
   $$\begin{aligned} \frac{1}{3 + 2} &= \frac15 \\ &= 0.2 \end{aligned}$$

**Answer:** the transform is $\frac{1}{s + 2}$ for $s > -2$, and at $s = 3$ it's 0.2.
:::
:::

::: example
## Show that $\int_0^\infty e^{-st}t\,dt = \frac{1}{s^2}$.

::: solution
1. **Integrate by parts.** Take $u = t$ and $dv = e^{-st}dt$, so $v = -\frac{e^{-st}}{s}$:
   $$\begin{aligned} \int_0^\infty e^{-st}t\,dt &= \left[-\frac{te^{-st}}{s}\right]_0^\infty \\ &\quad + \frac1s\int_0^\infty e^{-st}\,dt \end{aligned}$$
2. **The bracket.** It is 0 at both ends, because the exponential beats $t$.
3. **The remaining integral.** It is $\frac1s$, so
   $$\begin{aligned} \int_0^\infty e^{-st}t\,dt &= \frac1s\cdot\frac1s \\ &= \frac{1}{s^2} \end{aligned}$$

**Answer:** $\int_0^\infty e^{-st}t\,dt = \frac{1}{s^2}$, as claimed.
:::
:::

::: example
## Evaluate $\int_0^\infty e^{-4t}\sin 3t\,dt$.

::: solution
1. **Recognize the transform.** It's the transform of $\sin 3t$ at $s = 4$:
   $$\begin{aligned} \frac{3}{4^2 + 9} &= \frac{3}{25} \\ &= 0.12 \end{aligned}$$
2. **Check numerically.** A numerical integration to $t = 40$ with a fine step agrees to seven digits.

**Answer:** the integral is $\frac{3}{25} = 0.12$.
:::
:::

::: check
given: a = -3 | -1 | 2; s = 4 | 5
answer: 1/(s - a)
tolerance: 0.5%

## What is the Laplace transform of $e^{\given{a}t}$ at $s$ = {s}?

::: right
Right. $\frac{1}{s - a}$ = {answer}.
:::

::: misses
- [1/(s + a)] The exponents combine as $e^{-(s - a)t}$.
- [any] Not yet. Combine the exponentials and integrate.
:::
:::

::: check
given: w = 1 | 3 | 10; s = 2 | 4
answer: w/(s^2 + w^2)
tolerance: 0.5%

## What is $\int_0^\infty e^{-\given{s}t}\sin \given{w}t\,dt$?

::: right
Right. $\frac{\omega}{s^2 + \omega^2}$ = {answer}.
:::

::: misses
- [s/(s^2 + w^2)] That's the cosine's transform.
- [any] Not yet. Use the table row for $\sin\omega t$.
:::
:::

::: check
given: s = 0.5 | 2 | 5
answer: 1/s^2
tolerance: 0.5%

## What is $\int_0^\infty te^{-\given{s}t}\,dt$?

::: right
Right. $\frac{1}{s^2}$ = {answer}.
:::

::: misses
- [1/s] That's for the constant 1. With $t$ it's $1/s^2$.
- [any] Not yet. Integrate by parts with $u = t$.
:::
:::

::: check
given: f0 = 1 | 2 | 5; F = 0.5 | 1; s = 2 | 3
answer: s*F - f0
tolerance: 0.5%

## A function has transform $F(s)$ = {F} at $s$ = {s}, and $f(0)$ = {f0}. What is the transform of $f'$ there?

::: right
Right. $sF(s) - f(0)$ = {answer}.
:::

::: misses
- [s*F] Subtract the starting value $f(0)$.
- [F/s] That's the transform of an integral, not a derivative.
- [any] Not yet. Differentiation becomes multiplication by $s$, minus $f(0)$.
:::
:::

::: check
kind: parts
given: R = 1 | 10; C = 1 | 10; V = 5 | 12; t = 2 | 10

## An RC circuit ($R$ = {R} kΩ, $C$ = {C} µF) is switched onto {V} V at $t = 0$, starting uncharged. Its transform is $V(s) = \frac{\given{V}}{s(\tau s + 1)}$ with $\tau = RC$.

::: part
answer: R*C
unit: ms
tolerance: 0.5%

### What is $\tau$?

::: misses
- [any] kΩ × µF = ms.
:::
:::

::: part
answer: V*(1 - exp(-t/(R*C)))
unit: V
tolerance: 0.5%

### Splitting $\frac{1}{s(\tau s + 1)} = \frac1s - \frac{1}{s + 1/\tau}$, what is $v$ at $t$ = {t} ms?

::: misses
- [V*exp(-t/(R*C))] The $\frac1s$ term gives the constant $V$; subtract the decaying part.
- [any] Read each term back from the table.
:::
:::
:::

::: check
kind: derivation
vars: s = 0.5..5, a = -2..0.4, t = 0..3

## Derive the transform of $e^{at}$.

::: step
answer: exp(-(s - a)*t)

### Combine $e^{-st}e^{at}$ into one exponential. (Use $t$ as the variable.)
:::

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

### Integrate from 0 to $\infty$, for $s > a$.
:::

::: right
Right. $\mathcal L\{e^{at}\} = \frac{1}{s - a}$; with $a = j\omega$ it gives the sine and cosine rows at once.
:::
:::

::: explain
## Why does the Laplace transform turn a differential equation into algebra?

::: model
Integration by parts moves the derivative off $f$ and onto $e^{-st}$, and the derivative of $e^{-st}$ is just $-s$ times itself. So the transform of $f'$ is $s$ times the transform of $f$, minus the boundary term $f(0)$ left over from the parts. Every derivative in a linear equation becomes a power of $s$, and the equation for the unknown function becomes a polynomial equation for its transform, which is solved by division. Partial fractions then split the answer into simple pieces whose original functions are in the table. The starting values ride along in the $f(0)$ terms, so the method gives the full solution, not just its general form.
:::
:::

::: practice

::: check
given: a = -5..2; s = 3..10
answer: 1/(s - a)
tolerance: 0.5%

## $\mathcal L\{e^{\given{a}t}\}$ at $s$ = {s}?

::: misses
- [any] $\frac{1}{s - a}$.
:::
:::

::: check
given: w = 0.5..20; s = 0.5..20
answer: s/(s^2 + w^2)
tolerance: 0.5%

## $\mathcal L\{\cos \given{w}t\}$ at $s$ = {s}?

::: misses
- [any] $\frac{s}{s^2 + \omega^2}$.
:::
:::
:::
