Dimensional Analysis
You find a formula in old notes: "the time constant of an RC circuit is ". 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 , and 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 , length , time and current (temperature joins them in thermal problems). Square brackets mean "the dimension of":
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 |
|---|---|
| and | |
The rules
- Only like quantities add. In both terms must be volts. If one is a current, the equation is wrong.
- Both sides match. A time constant must come out in seconds, a frequency in .
- Function arguments are dimensionless. In the ratio has no unit; alone would depend on whether is in seconds or milliseconds, which is nonsense. The same holds for : is in , so is in radians, which count as dimensionless.
- Numbers like or are invisible. Dimensional analysis can't check them. A formula can pass and still be off by a factor of .
Worked example: is a time?
Given: with , . Find: the unit of and the value of . Solve:
Check: volts and amperes cancel, leaving seconds; and the "wrong" version has unit , 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 kettle runs for :
Code: a dimension checker in NumPy
Store each unit as a vector of exponents of . Multiplying quantities adds the vectors, dividing subtracts them, and a square root halves them. Then any formula can be checked automatically:
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: is the time constant of an inductor circuit, is the inverse of a resonant angular frequency, is an impedance (the characteristic impedance of a transmission line has this form), and an electric field in is the same thing as a force per charge in .
Guided lab: time an RC circuit
- Hand calculation: , gives . Charging from a supply, the capacitor reaches of the final voltage, , after one .
- Simulation: in this lab the voltage is AC, but the same unit logic holds: with and the average power reads , which is , and is indeed a watt. (The lab writes voltage as .)
- What you would measure: connect the resistor and capacitor in series to a bench supply set to with a current limit, put the multimeter across the capacitor, and start a stopwatch as you connect. Expect somewhere between about 8 and 14 s: aluminium electrolytic capacitors often have a tolerance of , and the meter's own input slightly loads the circuit (it lowers the final voltage by about ). 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 ; reversed or over-voltage electrolytics can vent. Discharge it through the resistor (not a bare wire) before handling. and store only , harmless, but the habit matters for larger parts (stored energy).
Pitfalls
- Mixing prefixes inside a formula. is not 1000 anything; convert to base units first or track the prefixes (, so ).
- Trusting a dimensionally correct formula. passes the check and is still wrong.
- Radians and hertz. in and in have the same dimension but differ by ; writing instead of passes dimensional analysis and fails on the bench.
- Logarithms of quantities with units. Take the log of a ratio: , never .
Practice
- Show that is an energy.
- A student writes the resonant frequency as . What does dimensional analysis say, and what does it miss?
- Convert to coulombs with the factor-label method.
Answer
- .
- is a time, so is in seconds, not hertz: the formula is upside down. The correct one, , has the right unit; dimensional analysis can't confirm the .
- .
Test yourself
What is the unit of ?
- Hertz
- Second
- Ohm
- Farad
Which expression is dimensionally impossible?
- with in seconds
Which unit equals the farad?
has the unit of
- time
- resistance
- frequency
- energy
A heater runs for . How much energy is that?