TExcelTAD

Dimensional Analysis

You find a formula in old notes: "the time constant of an RC circuit is τ=R/C\tau = R/C". Is it right? You don't need to re-derive anything to find out. An ohm divided by a farad is not a second, so the formula is wrong, and the check took ten seconds. Dimensional analysis is this check, done systematically: every term of a correct equation has the same dimension, and the arguments of sin⁡\sin, exp⁡\exp and log⁡\log have none. It catches most algebra slips, tells you how to convert units without guessing, and sometimes even predicts the shape of a formula you don't know.

Dimensions and units

A dimension is the kind of quantity (length, time, current); a unit is a chosen size of it (metre, millisecond, milliampere). In mechanics and electricity four base dimensions are enough: mass M\mathsf{M}, length L\mathsf{L}, time T\mathsf{T} and current I\mathsf{I} (temperature Θ\Theta joins them in thermal problems). Square brackets mean "the dimension of":

[P]=[energy][time]=ML2T−3[V]=[P][I]=ML2T−3I−1[R]=[V][I]=ML2T−3I−2\begin{aligned} [P] &= \frac{[\text{energy}]}{[\text{time}]} = \mathsf{M}\mathsf{L}^2\mathsf{T}^{-3} \\ [V] &= \frac{[P]}{[I]} = \mathsf{M}\mathsf{L}^2\mathsf{T}^{-3}\mathsf{I}^{-1} \\ [R] &= \frac{[V]}{[I]} = \mathsf{M}\mathsf{L}^2\mathsf{T}^{-3}\mathsf{I}^{-2} \end{aligned}

Every unit in the SI table can be built this way. In practice you rarely go down to base dimensions: it is quicker to remember a few unit identities that follow from the defining equations:

From Identity
V=IRV = IR Ω=V/A\Omega = \text{V/A}
Q=CVQ = CV and Q=ItQ = It F=C/V=A⋅s/V\text{F} = \text{C/V} = \text{A} \cdot \text{s/V}
v=L di/dtv = L\,di/dt H=V⋅s/A\text{H} = \text{V} \cdot \text{s/A}
P=VIP = VI W=V⋅A\text{W} = \text{V} \cdot \text{A}
W=PtW = Pt J=W⋅s\text{J} = \text{W} \cdot \text{s}

The rules

  1. Only like quantities add. In V=IR+EV = IR + \mathcal{E} both terms must be volts. If one is a current, the equation is wrong.
  2. Both sides match. A time constant must come out in seconds, a frequency in s−1\text{s}^{-1}.
  3. Function arguments are dimensionless. In e−t/τe^{-t/\tau} the ratio t/τt/\tau has no unit; e−te^{-t} alone would depend on whether tt is in seconds or milliseconds, which is nonsense. The same holds for sin⁡(ωt)\sin(\omega t): ω\omega is in rad/s\text{rad/s}, so ωt\omega t is in radians, which count as dimensionless.
  4. Numbers like 2π2\pi or 12\tfrac{1}{2} are invisible. Dimensional analysis can't check them. A formula can pass and still be off by a factor of 2π2\pi.

Worked example: is τ=RC\tau = RC a time?

Given: τ=RC\tau = RC with R=10 kΩR = 10\ \text{k}\Omega, C=100 μFC = 100\ \mu\text{F}. Find: the unit of RCRC and the value of τ\tau. Solve:

[RC]=Ω⋅F=VA⋅A⋅sV=sτ=10×103 Ω×100×10−6 F=1.0 s\begin{aligned} [RC] &= \Omega \cdot \text{F} = \frac{\text{V}}{\text{A}} \cdot \frac{\text{A} \cdot \text{s}}{\text{V}} = \text{s} \\ \tau &= 10 \times 10^{3}\ \Omega \times 100 \times 10^{-6}\ \text{F} = 1.0\ \text{s} \end{aligned}

Check: volts and amperes cancel, leaving seconds; and the "wrong" version R/CR/C has unit V2/(A2 s)\text{V}^2/(\text{A}^2\,\text{s}), clearly not a time. One second is a sensible, watchable time constant, which is why the guided lab below uses values close to it.

A conversion by the same method (the factor-label method): multiply by fractions equal to one, written so that the unwanted units cancel. A 2.0 kW2.0\ \text{kW} kettle runs for 3.0 min3.0\ \text{min}:

E=2.0 kW×3.0 min×1 h60 min=0.10 kWh=0.10×3.6 MJ=0.36 MJE = 2.0\ \text{kW} \times 3.0\ \text{min} \times \frac{1\ \text{h}}{60\ \text{min}} = 0.10\ \text{kWh} = 0.10 \times 3.6\ \text{MJ} = 0.36\ \text{MJ}

Code: a dimension checker in NumPy

Store each unit as a vector of exponents of (kg,m,s,A)(\text{kg}, \text{m}, \text{s}, \text{A}). Multiplying quantities adds the vectors, dividing subtracts them, and a square root halves them. Then any formula can be checked automatically:

python · try it yourself
import numpy as np

# exponents of (kg, m, s, A)
U = {"s": np.array([0, 0, 1, 0]), "A": np.array([0, 0, 0, 1]), "m": np.array([0, 1, 0, 0]),
     "J": np.array([1, 2, -2, 0]), "N": np.array([1, 1, -2, 0])}
U["C"] = U["A"] + U["s"]
U["W"] = U["J"] - U["s"]
U["V"] = U["W"] - U["A"]
U["ohm"] = U["V"] - U["A"]
U["F"] = U["C"] - U["V"]
U["H"] = U["V"] + U["s"] - U["A"]

def name(d):
    d = np.asarray(d, dtype=float)
    if not d.any():
        return "dimensionless"
    for k, v in U.items():
        if np.array_equal(v, d):
            return k
    return "kg^{:g} m^{:g} s^{:g} A^{:g}".format(*d)

checks = {
    "R*C": U["ohm"] + U["F"],
    "L/R": U["H"] - U["ohm"],
    "sqrt(L*C)": (U["H"] + U["F"]) / 2,
    "sqrt(L/C)": (U["H"] - U["F"]) / 2,
    "C*V^2/2": U["F"] + 2 * U["V"],
    "V^2/R": 2 * U["V"] - U["ohm"],
    "(V/m)/(N/C)": (U["V"] - U["m"]) - (U["N"] - U["C"]),
    "R/C (wrong)": U["ohm"] - U["F"],
}
for expr, d in checks.items():
    print(f"{expr:12s} -> {name(d)}")
print("volt in base units (kg, m, s, A):", U["V"].tolist())
R*C          -> s
L/R          -> s
sqrt(L*C)    -> s
sqrt(L/C)    -> ohm
C*V^2/2      -> J
V^2/R        -> W
(V/m)/(N/C)  -> dimensionless
R/C (wrong)  -> kg^2 m^4 s^-7 A^-4
volt in base units (kg, m, s, A): [1, 2, -3, -1]

Read the results as facts you will use all through the track: L/RL/R is the time constant of an inductor circuit, LC\sqrt{LC} is the inverse of a resonant angular frequency, L/C\sqrt{L/C} is an impedance (the characteristic impedance of a transmission line has this form), and an electric field in V/m\text{V/m} is the same thing as a force per charge in N/C\text{N/C}.

Guided lab: time an RC circuit

  1. Hand calculation: R=100 kΩR = 100\ \text{k}\Omega, C=100 μFC = 100\ \mu\text{F} gives τ=RC=10 s\tau = RC = 10\ \text{s}. Charging from a 5.0 V5.0\ \text{V} supply, the capacitor reaches 63 %63\ \% of the final voltage, 3.2 V3.2\ \text{V}, after one τ\tau.
  2. Simulation: in this lab the voltage is AC, but the same unit logic holds: with U0=12 VU_0 = 12\ \text{V} and R=24 ΩR = 24\ \Omega the average power reads 3.00 W3.00\ \text{W}, which is U02/(2R)=144 V2/48 ΩU_0^2/(2R) = 144\ \text{V}^2/48\ \Omega, and V2/Ω\text{V}^2/\Omega is indeed a watt. (The lab writes voltage as UU.)
U0rotating phasoru (V)tUrms = 8.49 V12.0−12.0T = 2.00 sp = u²/R (W)average P = 3.00 W6.00R = 24 Ωi = 0.00 A
  1. What you would measure: connect the resistor and capacitor in series to a bench supply set to 5.0 V5.0\ \text{V} with a 10 mA10\ \text{mA} current limit, put the multimeter across the capacitor, and start a stopwatch as you connect. Expect 3.2 V3.2\ \text{V} somewhere between about 8 and 14 s: aluminium electrolytic capacitors often have a tolerance of ±20 %\pm 20\ \%, and the meter's own 10 MΩ10\ \text{M}\Omega input slightly loads the circuit (it lowers the final voltage by about 1 %1\ \%). Your reaction time adds a few tenths of a second.

Hazards and safe setup: an electrolytic capacitor is polarised: connect its marked negative lead to the supply's negative and use a part rated at least 10 V10\ \text{V}; reversed or over-voltage electrolytics can vent. Discharge it through the resistor (not a bare wire) before handling. 5 V5\ \text{V} and 100 μF100\ \mu\text{F} store only 1.25 mJ1.25\ \text{mJ}, harmless, but the habit matters for larger parts (stored energy).

Pitfalls

  • Mixing prefixes inside a formula. τ=10 kΩ×100 μF\tau = 10\ \text{k}\Omega \times 100\ \mu\text{F} is not 1000 anything; convert to base units first or track the prefixes (k×μ=m\text{k} \times \mu = \text{m}, so 1000 ms=1 s1000\ \text{ms} = 1\ \text{s}).
  • Trusting a dimensionally correct formula. τ=2RC\tau = 2RC passes the check and is still wrong.
  • Radians and hertz. ω\omega in rad/s\text{rad/s} and ff in Hz\text{Hz} have the same dimension but differ by 2π2\pi; writing sin⁡(ft)\sin(ft) instead of sin⁡(2πft)\sin(2\pi f t) passes dimensional analysis and fails on the bench.
  • Logarithms of quantities with units. Take the log of a ratio: 20log⁡10(V2/V1)20\log_{10}(V_2/V_1), never log⁡(V)\log(V).

Practice

  1. Show that 12LI2\tfrac{1}{2}LI^2 is an energy.
  2. A student writes the resonant frequency as f=2πLCf = 2\pi\sqrt{LC}. What does dimensional analysis say, and what does it miss?
  3. Convert 250 mAh250\ \text{mAh} to coulombs with the factor-label method.
Answer
  1. H⋅A2=V⋅sA⋅A2=V⋅A⋅s=W⋅s=J\text{H} \cdot \text{A}^2 = \frac{\text{V} \cdot \text{s}}{\text{A}} \cdot \text{A}^2 = \text{V} \cdot \text{A} \cdot \text{s} = \text{W} \cdot \text{s} = \text{J}.
  2. LC\sqrt{LC} is a time, so 2πLC2\pi\sqrt{LC} is in seconds, not hertz: the formula is upside down. The correct one, f=1/(2πLC)f = 1/(2\pi\sqrt{LC}), has the right unit; dimensional analysis can't confirm the 2π2\pi.
  3. 250 mAh×1 A1000 mA×3600 s1 h=900 A⋅s=900 C250\ \text{mAh} \times \frac{1\ \text{A}}{1000\ \text{mA}} \times \frac{3600\ \text{s}}{1\ \text{h}} = 900\ \text{A} \cdot \text{s} = 900\ \text{C}.

Test yourself

What is the unit of L/RL/R?

  1. Hertz
  2. Second
  3. Ohm
  4. Farad

Which expression is dimensionally impossible?

  1. V0e−t/RCV_0 e^{-t/RC}
  2. V0sin⁡(2πft)V_0 \sin(2\pi f t)
  3. V0e−tV_0 e^{-t} with tt in seconds
  4. 12CV2\tfrac{1}{2}CV^2

Which unit equals the farad?

  1. V/A\text{V/A}
  2. A⋅s/V\text{A} \cdot \text{s/V}
  3. V⋅s/A\text{V} \cdot \text{s/A}
  4. W/A\text{W/A}

L/C\sqrt{L/C} has the unit of

  1. time
  2. resistance
  3. frequency
  4. energy

A 1.5 kW1.5\ \text{kW} heater runs for 40 min40\ \text{min}. How much energy is that?

  1. 60 kWh60\ \text{kWh}
  2. 1.0 kWh1.0\ \text{kWh}
  3. 0.6 kWh0.6\ \text{kWh}
  4. 2.4 MJ2.4\ \text{MJ}