---
title: Improper integrals and the energy of a decaying signal
heading: Integrating all the way to infinity
eyebrow: A6 · Lesson 7 · Improper integrals
xp: 40
---

::: hook
A capacitor discharging into a resistor never quite finishes: its voltage only approaches zero. So how much energy does the resistor absorb in total? Answering means integrating the power from now until forever. Sometimes such an integral has a finite value and sometimes it runs off to infinity, and telling which is a skill you'll use whenever a signal's energy matters, from radar pulses to communications.

::: play
- The curve is the power a discharging capacitor delivers into a resistor, $p(t) = \frac{V_0^2}{R}e^{-2t/\tau}$, in watts, with $V_0$ = 10 V and $R$ = 100 Ω. The shaded area up to $T$ is the energy delivered so far.
- Push $T$ out to the end. Does the energy keep growing, or level off? Compare it with $\tfrac12CV_0^2$.
- Change τ. How does the total change?
:::
:::

```sim plot
view: graph
x: t = 0..10 ms
y: p = 0..1.2 W
slider: tau = 0.5..4 step 0.1 = 1 ms
slider: T = 0..10 step 0.05 = 2 ms
plot: 1*exp(-2*t/tau) | fill: 0..T | label: p(t)
readout: energy so far in mJ = 1*tau/2*(1 - exp(-2*T/tau))
readout: total in mJ = 1*tau/2
readout: ½CV₀² in mJ = 0.5*(tau/100)*100
```

::: predict
## Two curves: $1/t$ and $1/t^2$, both starting at $t = 1$ and shrinking forever. Which has finite area out to infinity?

- [ ] Both
- [ ] Neither
- [x] Only $1/t^2$
- [ ] Only $1/t$

::: reveal
Only $1/t^2$: its area from 1 to infinity is exactly 1. The area under $1/t$ is $\ln T$, which grows forever, slowly but without limit. Both curves approach zero, but $1/t^2$ does it fast enough for the slivers of area to add up to a finite total. Exponential decays shrink faster than any power, so their areas are always finite.
:::
:::

::: nameit
## Improper integrals are limits

An integral to infinity is defined as a limit of ordinary integrals:

$$\int_a^{\infty} f(t)\,dt = \lim_{T \to \infty}\int_a^T f(t)\,dt$$

If the limit exists, the integral **converges**; otherwise it **diverges**. The two families to know:

$$\int_0^{\infty} e^{-at}\,dt = \frac1a \quad (a > 0) \qquad\qquad \int_1^{\infty}\frac{dt}{t^{p}} = \begin{cases}\dfrac{1}{p - 1} & p > 1\\[4pt] \text{diverges} & p \le 1\end{cases}$$

**The energy of a signal.** A voltage $v(t)$ across a resistor $R$ delivers energy

$$E = \int_{-\infty}^{\infty}\frac{v(t)^2}{R}\,dt$$

For the discharging capacitor, $v = V_0e^{-t/\tau}$ with $\tau = RC$, so

$$E = \frac{V_0^2}{R}\int_0^\infty e^{-2t/\tau}dt = \frac{V_0^2}{R}\cdot\frac{\tau}{2} = \tfrac12 CV_0^2$$

exactly the energy the capacitor stored, however the resistor's value splits it between fast and slow.

**Energy signals and power signals.** A pulse or a decaying transient has finite total energy: an **energy signal**. A steady sinusoid never stops, so its total energy is infinite, but its average power is finite: a **power signal**. Signals and systems (C9) treats the two kinds differently, and this is why.
:::

::: example
## Compare $\int_1^\infty\frac{dt}{t^2}$ and $\int_1^\infty\frac{dt}{t}$.

::: solution
1. **Integrate $1/t^2$.**
   $$\int_1^T t^{-2}\,dt = 1 - \frac{1}{T} \to 1$$
   so its area is finite.
2. **Integrate $1/t$.**
   $$\int_1^T t^{-1}\,dt = \ln T$$
   which grows without limit: the area is infinite.
3. **Compare.** Both curves shrink to zero, but $\frac{1}{t}$ shrinks too slowly.

**Answer:** $\int_1^\infty\frac{dt}{t^2} = 1$, a finite area, while $\int_1^\infty\frac{dt}{t}$ is infinite.
:::
:::

::: example
## A voltage $v = 10e^{-t/(1\text{ ms})}$ V appears across 100 Ω. What total energy does the resistor absorb?

::: solution
1. **Set up the energy integral.**
   $$\begin{aligned} E &= \int_0^\infty\frac{v^2}{R}\,dt \\ &= \frac{100}{100}\int_0^\infty e^{-2t/\tau}\,dt \end{aligned}$$
2. **Integrate.** With $\tau$ = 1 ms:
   $$\begin{aligned} E &= 1\ \text{W} \times \frac{\tau}{2} \\ &= 0.5\ \text{mJ} \end{aligned}$$
   Squaring the exponential halves its time constant, which is where the $\frac{1}{2}$ comes from.

**Answer:** the resistor absorbs 0.5 mJ in all.
:::
:::

::: example
## Is $\displaystyle\int_0^\infty\frac{dt}{1 + t^2}$ finite?

::: solution
1. **Integrate to a finite limit.**
   $$\int_0^b\frac{dt}{1 + t^2} = \tan^{-1}b$$
2. **Let $b \to \infty$.** $\tan^{-1}b$ approaches $\pi/2$. The integrand falls as $1/t^2$, fast enough, so the area is finite:
   $$\frac{\pi}{2} = 1.571$$

**Answer:** yes, the integral is finite: $\pi/2 = 1.571$.
:::
:::

::: check
given: a = 2..9 int
answer: 1/a
tolerance: 0.5%

## Evaluate $\int_0^\infty e^{-\given{a}t}\,dt$.

::: right
Right. $\big[-e^{-\given{a}t}/\given{a}\big]_0^\infty = 0 - (-1/\given{a})$ = {answer}.
:::

::: misses
- [a] Integrating $e^{-at}$ divides by $a$.
- [0] The upper limit gives 0, but the lower limit contributes $1/a$.
- [any] Not yet. The antiderivative is $-e^{-at}/a$; evaluate it at ∞ (where it's 0) and at 0.
:::
:::

::: check
given: V0 = 5..50 int; R = 10..1000 sig 2; tau = 1m..10m sig 2 s
answer: V0^2*tau/(2*R)
unit: J
tolerance: 1%

## A voltage $v = V_0e^{-t/\tau}$ with $V_0$ = {V0} V and $\tau$ = {tau} appears across a {R} Ω resistor. What total energy does the resistor absorb?

::: right
Right. $\frac{V_0^2}{R}\cdot\frac{\tau}{2}$ = {answer}. The power decays twice as fast as the voltage, so the factor is τ/2.
:::

::: misses
- [V0^2*tau/R] The power is $v^2/R$, which decays as $e^{-2t/\tau}$: integrating gives τ/2.
- [V0*tau/(2*R)] Power goes as the voltage squared.
- [any] Not yet. Integrate $\frac{V_0^2}{R}e^{-2t/\tau}$ from 0 to ∞.
:::
:::

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

## Evaluate $\int_1^\infty t^{-\given{p}}\,dt$.

::: right
Right. $\big[t^{1-p}/(1 - p)\big]_1^\infty = 0 - 1/(1 - p) = 1/(p - 1)$ = {answer}.
:::

::: misses
- [1/p] Raise the power by one: $-\given{p} + 1$, then divide by it.
- [any] Not yet. The antiderivative of $t^{-p}$ is $t^{1-p}/(1 - p)$.
:::
:::

::: check
kind: choice

## Which of these is an energy signal, with finite total energy?

- [ ] A steady 1 V DC voltage
- [ ] $\cos(2\pi \cdot 60\,t)$ forever
- [x] $e^{-t}$ for $t \ge 0$, and 0 before
- [ ] $1/\sqrt{t}$ for $t \ge 1$

::: right
Right. Its square, $e^{-2t}$, has area ½. The others never die away fast enough: their squares have infinite area.
:::

::: misses
- [1] A steady voltage delivers the same power forever: infinite energy, finite average power.
- [2] A steady sinusoid is a power signal: infinite total energy, finite average power.
- [4] Its square is $1/t$, whose area out to infinity diverges.
:::
:::

::: check
kind: parts
given: p = 1.5 | 2 | 3; a = 2 | 3

## Decide and evaluate.

::: part
answer: a^(1 - p)/(p - 1)
tolerance: 0.5%

### $\displaystyle\int_{\given{a}}^\infty\frac{dx}{x^{\given{p}}}$

::: misses
- [1/(p - 1)] That's from 1. Start at {a}.
- [any] $\left[\frac{x^{1-p}}{1 - p}\right]_a^\infty$.
:::
:::

::: part
answer: pi/2 - atan(a)
tolerance: 0.5%

### $\displaystyle\int_{\given{a}}^\infty\frac{dx}{1 + x^2}$

::: misses
- [pi/2] That's from 0. Subtract $\tan^{-1}a$.
- [any] $\left[\tan^{-1}x\right]_a^\infty$.
:::
:::
:::

::: check
kind: derivation
vars: k = 0.5..5, b = 1..20

## Evaluate $\displaystyle\int_0^\infty e^{-kt}\,dt$ as a limit.

::: step
answer: (1 - exp(-k*b))/k

### What is $\int_0^b e^{-kt}\,dt$?
:::

::: step
answer: 1/k

### Let $b \to \infty$.
:::

::: right
Right. $\int_0^\infty e^{-kt}dt = 1/k$: the area under an exponential decay is its time constant times its height.
:::
:::

::: explain
## How can a signal that never actually reaches zero deliver only a finite amount of energy?

::: model
The energy is the area under the power curve, and an infinite stretch of time can still hold a finite area if the curve shrinks fast enough. A decaying exponential's power halves every fixed interval, so each interval contributes half as much as the one before, like a geometric series. The total converges, even though every interval contributes something.
:::
:::

::: practice

::: check
given: k = 2..9 int
answer: 1/(2*k)
tolerance: 0.5%

## Evaluate $\int_0^\infty e^{-2\given{k}t}\,dt$.

::: misses
- [1/k] The rate in the exponent is $2\given{k}$.
- [any] $\int_0^\infty e^{-at}dt = 1/a$ with $a = 2\given{k}$.
:::
:::

::: check
given: V = 2..20 int; T = 1µ..1m E3 s; R = 50 | 75 | 100
answer: V^2*T/R
unit: J
tolerance: 1%

## A rectangular pulse of {V} V lasting {T} drives a {R} Ω load. How much energy does it deliver?

::: misses
- [V*T/R] Power is $V^2/R$.
- [any] Energy = power × duration = $V^2T/R$.
:::
:::

::: check
given: T = 10 | 100 | 1000
answer: ln(T)
tolerance: 0.5%

## What is $\int_1^{\given{T}}\frac{dt}{t}$? (Notice how slowly it grows.)

::: misses
- [log10(T)] The antiderivative of $1/t$ is the natural log.
- [any] $\int_1^T dt/t = \ln T$.
:::
:::
:::
