---
title: Linear, power and exponential growth and decay
heading: Adding the same amount, or multiplying by the same factor
eyebrow: A2 · Lesson 8 · Linear, power and exponential growth and decay
xp: 40
---

::: hook
Disconnect a charged capacitor from its supply and connect it across a resistor. Its voltage falls fast at first and then ever more slowly, and in principle it never quite reaches zero. Yet engineers will tell you it's "gone" after a definite time. Which time, and why that one?

::: play
- The curve is a capacitor's voltage as it discharges, starting from $V_0$. The first marker sits at the time constant $\tau$.
- Change $\tau$. How much of the voltage is left at the first marker, whatever $\tau$ is? Read it in the strip.
- Look at each marker in turn: one, two, three time constants. What happens to the voltage from each one to the next?
:::
:::

```sim plot
view: graph
x: t = 0..5 s
y: v = 0..10 V
slider: V0 = 1..10 step 0.5 = 8 V
slider: tau = 0.2..2 step 0.05 = 1 s
plot: V0*exp(-t/tau) | label: v(t)
marker: x = tau | label: τ
marker: x = 2*tau | label: 2τ
marker: x = 3*tau | label: 3τ
readout: v at τ = V0*exp(-1) V
readout: share left at τ = 100*exp(-1) %
readout: half-life = tau*ln(2) s
```

::: predict
## After one time constant, about 37% of the starting voltage is left. How much is left after two time constants?

- [ ] About 0%: it drops by 37 points again
- [ ] About 18%
- [x] About 14%
- [ ] About 74%

::: reveal
About 14%. Each time constant multiplies what's left by the same factor, 0.37. So after two it's 0.37 × 0.37 ≈ 0.135 of the start, after three about 0.05, and after five less than 0.007. A falling curve that keeps multiplying by the same factor never reaches zero, but after five time constants it's under 1%, and engineers call that settled.
:::
:::

::: nameit
## Three ways to change

How a quantity changes with each equal step of its input sorts most simple functions into three families:

| Family | Formula | Each step of 1 in $x$ |
|---|---|---|
| linear | $y = mx + b$ | adds the same amount, $m$ |
| power | $y = k x^{n}$ | depends on where you are |
| exponential | $y = A\, b^{x}$ | multiplies by the same factor, $b$ |

To tell them apart from data, look at a table of values taken at equal steps: if the **differences** between neighbors are constant the function is linear, and if the **ratios** are constant it's exponential.

Exponentials in engineering are usually written with $e \approx 2.718$, the base that calculus prefers, and the decay of a capacitor or an inductor's current looks like this:

$$v(t) = V_0\, e^{-t/\tau}$$

- **$V_0$** is the starting value, at $t = 0$.
- **$\tau$**, the **time constant**, sets the pace. At $t = \tau$ the exponent is $-1$ and $e^{-1} = 0.368$, so 36.8% is left. Every further $\tau$ multiplies what's left by 0.368 again.
- The **half-life**, the time to fall to half, is $t_{1/2} = \tau \ln 2 \approx 0.693\,\tau$, from solving $e^{-t/\tau} = \tfrac12$.
- After $5\tau$ the share left is $e^{-5} = 0.0067$, less than 1%. That's the engineer's "settled".

Charging is the mirror image: a capacitor charging toward $V_0$ has $v(t) = V_0\,(1 - e^{-t/\tau})$, which reaches 63.2% at $t = \tau$.

Exponential growth eventually overtakes any power, however large. The second graph compares $100x$, $x^3$ and $2^x$: the exponential is smallest for a while, then passes the cube just before $x = 10$ and leaves it behind.

```sim plot
view: graph
x: x = 0..14
y: y = 0..3000
slider: b = 1.5..2.5 step 0.1 = 2
plot: 100*x | label: 100x
plot: x^3 | label: x³
plot: b^x | label: bˣ
```

**Finding a time.** To find when $V_0 e^{-t/\tau}$ reaches some value $v$, divide by $V_0$ and take the natural log of both sides: $-t/\tau = \ln(v/V_0)$, so $t = \tau \ln(V_0 / v)$. Logarithms undo exponentials, which is most of what they're for.
:::

::: example
## A capacitor discharges from 12 V with a time constant of 2 ms. What is its voltage after 5 ms?

::: solution
1. **Put in the numbers.**
   $$\begin{aligned} v &= 12e^{-t/\tau} \\ &= 12e^{-5/2} \\ &= 12 \times 0.0821 \\ &= 0.985\ \text{V} \end{aligned}$$
2. **Check.** 5 ms is 2.5 time constants. After two it's at $e^{-2} = 13.5\%$ (1.6 V) and after three at 5.0% (0.6 V), so just under 1 V is right.

**Answer:** the capacitor is at 0.985 V after 5 ms.
:::
:::

::: example
## A signal decays exponentially and halves every 3 ms. What is its time constant?

::: solution
1. **Write what halving means.**
   $$e^{-t_{1/2}/\tau} = \frac{1}{2}$$
   so $t_{1/2}/\tau = \ln 2$.
2. **Solve for the time constant.**
   $$\begin{aligned} \tau &= \frac{t_{1/2}}{\ln 2} \\ &= \frac{3\ \text{ms}}{0.693} \\ &= 4.33\ \text{ms} \end{aligned}$$
3. **Compare with the half-life.** The time constant is always a bit longer than the half-life, since in one time constant the signal falls to 37%, below half.

**Answer:** the time constant is 4.33 ms.
:::
:::

::: example
## An oscillator starting up grows its amplitude by 10% each cycle. It starts from 1 mV of noise at 1 kHz. How big is it after 50 cycles, and how long until it reaches 1 V?

::: solution
1. **Growth over 50 cycles.** Each cycle multiplies the amplitude by 1.1:
   $$\begin{aligned} v &= 1\ \text{mV} \times 1.1^{50} \\ &= 1\ \text{mV} \times 117.4 \\ &= 117\ \text{mV} \end{aligned}$$
2. **Cycles to reach 1 V.** That means growing by 1000, so $1.1^n = 1000$ and
   $$\begin{aligned} n &= \frac{\ln 1000}{\ln 1.1} \\ &= 72.5\ \text{cycles} \end{aligned}$$
3. **Time.** At 1 kHz that's 72.5 ms.
4. **Why it bursts into life.** Growth by a fixed factor each cycle is exponential, which is why an oscillator seems to burst into life once it gets going.

**Answer:** it's 117 mV after 50 cycles, and it reaches 1 V after 72.5 cycles, or 72.5 ms.
:::
:::

::: check
given: V0 = 2..12 int V; n = 2..4 int
answer: V0*exp(-n)
unit: V
tolerance: 1%

## A capacitor starts at {V0} and discharges with time constant $\tau$. What is its voltage after {n} time constants?

::: right
Right. Each time constant multiplies the voltage by $e^{-1}$, so after {n} it's {V0} × $e^{-\given{n}}$ = {answer}.
:::

::: misses
- [V0*(1 - exp(-n))] That's the charging curve. A discharging capacitor loses voltage, starting from {V0}.
- [V0*exp(-1)/n] Each time constant multiplies by 0.368 again. Dividing by {n} isn't the same.
- [V0*(1 - 0.37*n)] Each time constant multiplies what's left by 0.37. Subtracting the same amount each time gives a straight line.
- [any] Not yet. Use $v = V_0 e^{-t/\tau}$ with $t = \given{n}\tau$.
:::
:::

::: check
given: th = 1..20 int
answer: th/ln(2)
unit: ms
tolerance: 1%

## A signal halves every {th} ms as it decays exponentially. What is its time constant, in ms?

::: right
Right. The half-life is $\tau \ln 2$, so $\tau = \given{th} / \ln 2$ = {answer}.
:::

::: misses
- [th*ln(2)] The half-life is $\tau \ln 2$. To find $\tau$, divide by $\ln 2$.
- [th/2] At $t = \tau$, 37% is left, so the half-life is shorter than one time constant: $t_{1/2} = \tau \ln 2$.
- [any] Not yet. Use $t_{1/2} = \tau \ln 2$.
:::
:::

::: check
given: tau = 1..9 int; p = 50 | 10 | 5 | 1
answer: tau*ln(100/p)
tolerance: 1%

## A voltage decays as $e^{-t/\tau}$ with $\tau$ = {tau} ms. How many milliseconds until it's down to {p}% of where it started?

::: right
Right. Solve $e^{-t/\tau} = \given{p}/100$: $t = \tau \ln(100/\given{p})$ = {answer} ms.
:::

::: misses
- [tau*p/100] The decay isn't a straight line. Take the natural log to undo the exponential.
- [tau*log10(100/p)] Use the natural logarithm, ln, since the exponential is $e^{x}$.
- [any] Not yet. Set $e^{-t/\tau} = \given{p}/100$ and take the natural log of both sides.
:::
:::

::: check
kind: choice

## A quantity measured once a second reads 3, 6, 12, 24, 48. What kind of function is it?

- [ ] Linear
- [x] Exponential
- [ ] A power of t
- [ ] None of these

::: right
Right. Each value is twice the one before: a constant ratio, which is exponential growth, $3 \times 2^{t}$.
:::

::: misses
- [1] The differences are 3, 6, 12, 24, which aren't constant, so it isn't linear. Look at the ratios.
- [3] A power law $kt^n$ would give 0 at $t = 0$. Look at the ratio between neighbors.
- [any] Compare each value with the one before it: what do you multiply by?
:::
:::

::: check
kind: expression
answer: A*2^(t/T)
vars: A = 1..5, T = 1..3, t = 0..5

## A quantity starts at $A$ and doubles every $T$ seconds. Write it as a function of time $t$.

::: right
Right. After $t$ seconds it has doubled $t/T$ times, so it's multiplied by $2^{t/T}$.
:::

::: misses
- [A*2*t/T] That grows by the same amount each step. Doubling is the same factor each step, so t belongs in the exponent.
- [A*2^(T*t)] The number of doublings is $t/T$, how many doubling times fit in t.
- [A*exp(t/T)] That multiplies by $e$ every $T$ seconds. Here the factor is 2.
- [any] Count how many doublings happen in time t, and put that in the exponent of 2.
:::
:::

::: check
kind: parts
given: p = 2 | 3 | 5; n = 4 | 8

## A battery loses {p}% of its remaining capacity each year.

::: part
answer: 100*(1 - p/100)^n
tolerance: 0.2%

### What percentage of its original capacity is left after {n} years?

::: misses
- [100 - p*n] That's losing {p} percentage points a year. Each year's loss is a share of what's left.
- [any] Each year multiplies the capacity by $1 - \given{p}/100$.
:::
:::

::: part
answer: ln(0.8)/ln(1 - p/100)
tolerance: 0.5%

### After how many years is it down to 80%?

::: misses
- [20/p] That's for a straight-line loss of {p} points a year.
- [any] Solve $(1 - \given{p}/100)^t = 0.8$ with logarithms.
:::
:::
:::

::: check
kind: derivation
vars: tau = 0.1..10, f = 0.01..0.9

## A quantity decays as $e^{-t/\tau}$. Derive how long it takes to fall to a fraction $f$, and the half-life.

::: step
answer: -tau*ln(f)

### Solve $e^{-t/\tau} = f$ for $t$.

::: misses
- [tau*ln(f)] That's negative for $f < 1$. Check the sign.
:::
:::

::: step
answer: tau*ln(2)

### Put $f = \tfrac12$ to get the half-life.
:::

::: right
Right. The half-life is $\tau\ln 2 = 0.693\,\tau$, so a quantity halves a little faster than one time constant.
:::
:::

::: explain
## Why can a capacitor's voltage get closer and closer to zero without ever reaching it, and why do engineers still say it has settled after five time constants?

::: model
Each time constant multiplies the remaining voltage by the same factor, 0.37. Multiplying a positive number by 0.37 gives a smaller positive number, never zero, so the voltage keeps shrinking forever without reaching it. But it shrinks fast: after five time constants only $e^{-5}$, under 1%, is left, which is smaller than most measurements or tolerances care about. So for practical purposes the change is over.
:::
:::

::: practice

::: check
given: n = 1..6 int
answer: 100*exp(-n)
unit: %
tolerance: 1%

## What percentage of its starting value does $e^{-t/\tau}$ have left after {n} time constants?

::: misses
- [100*(1 - exp(-n))] That's how much has gone. The question asks what's left.
- [any] Work out $e^{-\given{n}}$ and turn it into a percentage.
:::
:::

::: check
given: V0 = 3..15 int V; tau = 1..9 int; t = 1..12 int
answer: V0*(1 - exp(-t/tau))
unit: V
tolerance: 1%

## A capacitor charges toward {V0} from 0 V with $\tau$ = {tau} ms. What is its voltage {t} ms later?

::: misses
- [V0*exp(-t/tau)] That's what's left of the gap. The voltage itself is {V0} minus that.
- [V0*t/tau] Charging slows down as it goes; it isn't a straight line.
- [any] Use $v = V_0(1 - e^{-t/\tau})$.
:::
:::

::: check
given: x1 = 0..3 int; dx = 1..4 int; y1 = -5..5 int; m = -4 | -3 | -2 | 2 | 3 | 4 | 5; let x2 = x1 + dx; let y2 = y1 + m*dx
answer: m
tolerance: 0.5%

## A straight line passes through $(\given{x1}, \given{y1})$ and $(\given{x2}, \given{y2})$. What is its slope?

::: misses
- [1/m] Slope is rise over run: the change in y divided by the change in x.
- [any] Divide the change in y by the change in x.
:::
:::

::: check
given: A = 2..9 int; b = 2 | 3 | 1.5 | 0.5; n = 2..4 int; let Y = A*b^n
answer: b
tolerance: 0.5%

## An exponential $y = A b^{x}$ has $y = \given{A}$ at $x = 0$ and $y = \given{Y}$ at $x = \given{n}$. What is $b$, the factor per step?

::: misses
- [b^n] That's the factor over all {n} steps. Take the {n}th root to get the factor for one.
- [any] Divide the two values, then take the {n}th root.
:::
:::

::: check
given: k = 0.02..0.5 sig 2
answer: ln(2)/k
unit: s
tolerance: 1%

## A quantity grows as $e^{\given{k} t}$, with t in seconds. How long does it take to double?

::: misses
- [k*ln(2)] Solve $e^{\given{k} t} = 2$: $t = \ln 2 / \given{k}$.
- [2/k] The doubling time uses the natural log of 2: $t = \ln 2 / \given{k}$.
- [any] Set $e^{\given{k}t} = 2$ and take the natural log of both sides.
:::
:::

::: check
given: tau = 2..20 int
answer: 5*tau
tolerance: 0.5%

## A circuit's time constant is {tau} µs. By the five-time-constant rule, after how many microseconds has it settled?

::: misses
- [tau] After one time constant 37% of the change is still to come.
- [any] Settled means within 1%, which takes five time constants.
:::
:::

::: check
kind: choice

## Which of these is biggest when x is very large?

- [ ] $1000x$
- [ ] $x^{10}$
- [x] $1.01^{x}$
- [ ] $x^{2} + 10^{6}$

::: right
Right. Any exponential with a base above 1 eventually beats every power of x, however slowly it starts.
:::

::: misses
- [2] $x^{10}$ is huge for a long time, but $1.01^x$ multiplies by the same factor at every step and eventually wins.
- [any] Compare how each one grows: adding, a fixed power, or multiplying by a fixed factor each step.
:::
:::
:::
