---
title: Dimensional analysis
heading: Using units to catch mistakes
eyebrow: A1 · Lesson 16 · Dimensional analysis
xp: 40
---

::: hook
Suppose you've worked out that a capacitor $C$ charging through a resistor $R$ takes a time of about $R/C$. Before you build anything or run a single number, there's a ten-second check that tells you the formula is wrong. It only needs the units.

::: play
- The curve is the voltage across a capacitor discharging through a resistor. The marker is at the time $RC$.
- Change R and C. Watch how far along the time axis the curve reaches before it flattens out.
- Double R, then halve C. Does the curve change? Compare the two readouts.
:::
:::

```sim plot
view: graph
x: t = 0..10m s
y: v = 0..10 V
slider: R = 100..10k = 2.2k Ω log
slider: C = 100n..10µ = 1µ F log
plot: 10*exp(-t/(R*C)) | label: v(t)
marker: x = R*C | label: RC
readout: RC = R*C s
readout: R/C in Ω/F = R/C | format: sci
```

::: predict
## You double R and halve C. What happens to how quickly the capacitor discharges?

- [x] Nothing changes
- [ ] It takes four times as long
- [ ] It takes a quarter as long
- [ ] It takes twice as long

::: reveal
Nothing changes. The curve depends on R and C only through their product $RC$, and doubling one while halving the other leaves the product alone. $R/C$ went up four times, but the curve didn't notice, so $R/C$ can't be the time. The units say the same thing: $R \times C$ comes out in seconds, and $R/C$ doesn't.
:::
:::

::: nameit
## Units multiply and divide like numbers

Every unit in electrical engineering can be written in terms of a few others. These are the ones you'll use most:

| Quantity | Unit | The same unit, written another way |
|---|---|---|
| charge | coulomb, C | A·s (an amp for a second) |
| voltage | volt, V | J/C (energy per charge) |
| resistance | ohm, Ω | V/A |
| capacitance | farad, F | C/V |
| inductance | henry, H | V·s/A |
| power | watt, W | J/s, or V·A |
| energy | joule, J | W·s, or V·C |
| frequency | hertz, Hz | 1/s |

To find the units of a formula, replace each symbol with its unit and simplify. For the time constant:

$$\text{Ω} \cdot \text{F} = \frac{\text{V}}{\text{A}} \cdot \frac{\text{C}}{\text{V}} = \frac{\text{C}}{\text{A}} = \frac{\text{A} \cdot \text{s}}{\text{A}} = \text{s}$$

$RC$ is a time. $R/C$ comes out in Ω/F, which simplifies to $\text{V}^2/(\text{A}^2\,\text{s})$, and that isn't a time at all.

Three rules catch most mistakes:

1. **Both sides of an equation have the same units.** If one side is in seconds, so is the other.
2. **You can only add things with the same units.** Adding a voltage to a current is meaningless, so a formula that does it is wrong.
3. **Whatever goes inside $e^{x}$, $\sin x$ or $\log x$ has no units.** That's why the curve is $e^{-t/RC}$: seconds divided by seconds.

What units can't catch is a pure number. $\tfrac12 CV^2$ and $CV^2$ are both energies, and $2\pi f$ and $f$ both come out in 1/s. For those you still need the derivation, or a check against a case you know.
:::

::: example
## Check that $P = I^2R$ gives watts.

::: solution
1. **Write each unit in volts and amps.** An ohm is V/A, so
   $$\begin{aligned} \text{A}^2 \cdot \Omega &= \text{A}^2 \cdot \frac{\text{V}}{\text{A}} \\ &= \text{V} \cdot \text{A} \\ &= \text{W} \end{aligned}$$
2. **What the check shows.** The units agree. That doesn't prove the formula is right, but it's a check that takes seconds.

**Answer:** $I^2R$ comes out in watts, as it should.
:::
:::

::: example
## A note says the corner frequency of an RL filter is $f = \dfrac{L}{2\pi R}$. Is that possible?

::: solution
1. **Units of L/R.** A henry is V·s/A and an ohm is V/A, so
   $$\begin{aligned} \frac{\text{H}}{\Omega} &= \frac{\text{V·s/A}}{\text{V/A}} \\ &= \text{s} \end{aligned}$$
2. **Compare with a frequency.** That's a time, and a frequency must be 1/s.
3. **Fix the formula.** The note has it upside down: the corner is $f = \dfrac{R}{2\pi L}$, which comes out in 1/s as it should.

**Answer:** no. $L/(2\pi R)$ comes out in seconds, so the corner frequency must be $f = R/(2\pi L)$.
:::
:::

::: check
kind: unit
answer: s

## An inductor $L$ in series with a resistor $R$ has a time constant. What unit does $L/R$ come out in?

::: right
Right. A henry is V·s/A and an ohm is V/A. Dividing, the V/A cancels and leaves seconds, so $L/R$ is a time, just like $RC$.
:::

::: misses
- [H*Ω] That's $L$ times $R$. Divide instead: write each one in volts, amps and seconds first.
- [any] Write the henry as V·s/A and the ohm as V/A, then divide.
:::
:::

::: check
kind: unit
answer: W

## What unit does $V^2/R$ come out in?

::: right
Right. V²/Ω is V² ÷ (V/A), which is V·A, a watt. It's the power a resistor turns into heat, from lesson 4.
:::

::: misses
- [V^2/A] Check the resistance: an ohm is V/A, so dividing by it multiplies by A/V.
- [V*A^2] Close, but one A too many. V² ÷ (V/A) is V·A.
- [any] Write the ohm as V/A and simplify.
:::
:::

::: check
kind: unit
answer: s

## What unit does $\sqrt{LC}$ come out in?

::: right
Right. H·F is (V·s/A)(A·s/V), which is s², and its square root is seconds. That's why a circuit with an inductor and a capacitor rings at a frequency of $1/(2\pi\sqrt{LC})$.
:::

::: misses
- [s^2] That's $LC$ before the square root. Take the root of the units too.
- [1/s] That's the unit of $1/\sqrt{LC}$, a frequency. The question asks about $\sqrt{LC}$ itself.
- [any] Write H as V·s/A and F as A·s/V, multiply, and take the square root.
:::
:::

::: check
kind: choice

## Which formula for the energy stored in an inductor could be right? Here $L$ is in henries and $I$ in amps.

- [x] $\tfrac12 L I^2$
- [ ] $\tfrac12 L I$
- [ ] $\tfrac12 L^2 I$
- [ ] $\tfrac12 L I^2 / R$

::: right
Right. H·A² is (V·s/A)·A² = V·A·s, and V·A is a watt, so this is W·s: joules. Units can't confirm the ½, though. That comes from the derivation.
:::

::: misses
- [2] H·A is V·s, the weber, which measures magnetic flux. An energy needs another factor of amps.
- [3] H²·A doesn't simplify to joules. Check it in volts, amps and seconds.
- [4] H·A²/Ω is a joule divided by an ohm, so it isn't an energy.
:::
:::

::: check
kind: choice

## Which mistake can dimensional analysis never catch?

- [ ] Adding a voltage to a current
- [ ] Writing $R/C$ where $RC$ belongs
- [x] Leaving out a factor of $2\pi$
- [ ] Putting a quantity in seconds inside $e^{x}$

::: right
Right. $2\pi$ has no units, so a formula with it and without it have the same units. Catch those by checking a case you know.
:::

::: misses
- [1] Volts and amps are different units, so adding them shows up straight away.
- [2] $R/C$ and $RC$ have different units, Ω/F against seconds, so units catch this one.
- [4] The exponent must have no units, so seconds inside $e^{x}$ is caught.
:::
:::

::: check
kind: unit
answer: J

## A capacitor $C$ is charged to a voltage $V$. What unit does $\frac{1}{2}CV^2$ come out in?

::: right
Right. A farad is a coulomb per volt, so $CV^2$ is coulombs times volts, and a coulomb times a volt is a joule.
:::

::: misses
- [C] That's $CV$, the charge. The extra factor of $V$ turns charge into energy.
- [W] A watt is a joule per second. Nothing in $\frac{1}{2}CV^2$ divides by time.
- [any] Write the farad as C/V, multiply by V², and see what's left.
:::
:::

::: explain
## Why must the $x$ in $e^{x}$ have no units?

::: model
$e^{x}$ can be written as $1 + x + x^2/2 + x^3/6 + \dots$, which adds a pure number, $x$, $x^2$ and so on. If $x$ had units, say seconds, that sum would add seconds to square seconds to plain numbers, which means nothing. It also wouldn't give the same answer when you change units: $e^{1\ \text{s}}$ and $e^{1000\ \text{ms}}$ would differ. So the exponent has to be a ratio whose units cancel, like $t/RC$.
:::
:::

::: practice

::: check
kind: unit
answer: V

## What unit does $I \times R$ come out in, with $I$ in amps and $R$ in ohms?

::: misses
- [A/Ω] Multiply the units, and remember an ohm is a volt per amp.
- [any] An ohm is V/A. Multiply it by A.
:::
:::

::: check
kind: unit
answer: C

## What unit does $C \times V$ come out in, with $C$ in farads and $V$ in volts?

::: misses
- [F/V] Multiply the units. A farad is a coulomb per volt.
- [any] A farad is C/V. Multiply it by V.
:::
:::

::: check
kind: unit
answer: W

## What unit does $I^2 R$ come out in?

::: misses
- [V] That's $IR$. There's one more factor of amps.
- [any] Write the ohm as V/A, then multiply by A².
:::
:::

::: check
kind: unit
answer: J

## What unit does $P \times t$ come out in, with $P$ in watts and $t$ in seconds?

::: misses
- [W/s] Multiply the units. A watt is a joule per second.
- [any] A watt is J/s. Multiply by seconds.
:::
:::
:::
