Sub topic 9
Checking equations with dimensional homogeneity
This chapter assumes you can already write the dimensions of a quantity as powers of mass (M), length (L) and time (T), as covered in the previous chapter. It also assumes basic algebra with exponents. You will learn the rule that every valid physics equation obeys, a routine for applying it, and the errors it cannot detect.
The principle of dimensional homogeneity
An equation is dimensionally homogeneous if every term has the same dimensions. Three rules follow from this.
- Both sides of an equation have the same dimensions.
- Only quantities with the same dimensions can be added or subtracted. Every term in a sum must match.
- The argument of a function such as sin, cos, exp or ln must be dimensionless. Such functions are power series, such as 1 + x + x²/2 + ..., and a series adds terms with different powers of x. That is only allowed if x has no dimension.
Multiplication and division have no such restriction. Dimensions multiply and divide along with the quantities.
The reason behind the rule is that physical laws cannot depend on the unit system you choose. If you rescale metres to centimetres, every term must rescale by the same factor. Terms with different dimensions would rescale differently, and the equation would break.
Dimensions are written in square brackets. Here [x] means "the dimensions of x", so [v] = L T⁻¹ and [F] = M L T⁻².
A routine for checking an equation
- Write the dimensions of every symbol. Treat pure numbers, such as 2, ½ and π, as dimensionless.
- Reduce each term to a product of powers of M, L and T.
- Compare the terms on both sides, and the terms inside any sum.
- Check that every argument of sin, cos, exp and ln is dimensionless.
Worked examples
Constant-acceleration motion
Check x = x₀ + vt + ½at².
- [x] = L and [x₀] = L.
- [vt] = (L T⁻¹)(T) = L.
- [½at²] = (L T⁻²)(T²) = L.
Every term is a length, so the equation is consistent. Now suppose you misremember the velocity equation as v = at². Then [at²] = L, but [v] = L T⁻¹. The sides differ, so the equation is wrong. The correct form is v = at, since [at] = L T⁻¹.
The pendulum period
Check T = 2π√(ℓ/g).
- [ℓ/g] = L / (L T⁻²) = T².
- [√(ℓ/g)] = T.
The 2π has no dimensions, so the right side has dimension T, matching the period on the left.
Bernoulli's equation
Check P + ½ρv² = constant. Adding a pressure to another term only works if both are pressures.
- [P] = force/area = (M L T⁻²)/L² = M L⁻¹ T⁻².
- [ρv²] = (M L⁻³)(L² T⁻²) = M L⁻¹ T⁻².
The terms match. This also tells you that ½ρv² is a pressure (a "dynamic pressure"), even if you had forgotten what it was called.
Arguments of functions
For a travelling wave y = A sin(kx − ωt), the quantity kx − ωt sits inside a sine, so it must be dimensionless. That forces [k] = L⁻¹ and [ω] = T⁻¹. Both terms must also match each other, and they do. For exponential decay N = N₀e^(−t/τ), the exponent t/τ is dimensionless only if [τ] = T. So the equation itself shows that τ is a time.
Dimensions of derivatives and integrals
Calculus operations also change dimensions in a predictable way.
- A derivative divides by the dimensions of the variable: [dx/dt] = L T⁻¹, and [d²x/dt²] = L T⁻².
- An integral multiplies by them: [∫F dx] = M L T⁻² · L = M L² T⁻², which is energy.
You can use these rules to check equations that contain calculus, such as the work–energy theorem W = ∫F dx.
Automating the check
The program below represents each dimension as an exponent tuple (mass, length, time). It then compares the dimensions of the terms in an equation. The multiplication helper adds exponents and the power helper scales them.
# Dimension exponents are (mass, length, time).
M = (1, 0, 0)
L = (0, 1, 0)
T = (0, 0, 1)
def mul(a, b):
return tuple(x + y for x, y in zip(a, b))
def power(a, p):
return tuple(x * p for x in a)
def div(a, b):
return mul(a, power(b, -1))
velocity = div(L, T)
acceleration = div(velocity, T)
force = mul(M, acceleration)
energy = mul(force, L)
def check(label, *terms):
consistent = all(t == terms[0] for t in terms)
print(label, "consistent" if consistent else "INCONSISTENT")
# x = x0 + v t + (1/2) a t^2
check("position", L, mul(velocity, T), mul(acceleration, power(T, 2)))
# v = a t^2 (wrong)
check("bad velocity", velocity, mul(acceleration, power(T, 2)))
# KE = (1/2) m v^2
check("kinetic energy", energy, mul(M, power(velocity, 2)))The output is:
position consistent
bad velocity INCONSISTENT
kinetic energy consistentThe check function compares only terms that must match. It does not verify function arguments, so you still check those yourself.
What dimensional checks cannot catch
Passing the check is necessary for correctness but not sufficient. These errors survive:
- Missing or wrong numerical factors. Writing x = x₀ + vt + at² passes the check, even though the factor ½ is missing. Dimensions never see dimensionless constants such as 2, ½ or π.
- Wrong signs. x = x₀ − vt has the same dimensions as x = x₀ + vt.
- Different quantities with the same dimensions. Torque and energy are both M L² T⁻². Work and heat are both energy. A frequency in hertz and an angular frequency in rad/s share the dimension T⁻¹. Dimensions will not tell you that you picked the wrong one.
- Wrong functional form among consistent ones. Both v = √(2gh) and v = √(gh) are dimensionally consistent.
- Mistakes in units that share a dimension. If you enter a length in centimetres where metres are expected, the dimensions still match. Only a unit check, not a dimension check, catches that.
Using the check to find mistakes
When a check fails, compare the leftover dimensions on the two sides. They often point to the missing factor.
Suppose you wrote the kinetic energy as KE = ½mv, and the check shows a mismatch of L T⁻¹ on the right side compared with M L² T⁻². The mass matches, so the right side is missing a factor L T⁻¹, which is one more velocity. The corrected form is ½mv². The mismatch tells you what is missing, though not how the missing factor should be justified physically.
You can also use dimensions to find the units of an unknown constant. In F = −kx, the spring constant has [k] = [F]/[x] = M T⁻², so its SI unit is kg s⁻², or N/m.
Exercise
Is the equation v² = v₀² + 2ax dimensionally consistent? Then decide whether the equation v² = v₀² + 2a·t is consistent, and say what the check tells you about the second one.
Show answer
For the first, [v²] = L² T⁻², [v₀²] = L² T⁻², and [ax] = (L T⁻²)(L) = L² T⁻². All three terms match (the 2 is dimensionless), so it is consistent. For the second, [at] = (L T⁻²)(T) = L T⁻¹, which differs from L² T⁻². The equation is inconsistent and therefore wrong. Replacing t with x repairs it.
Exercise
A student claims the period of a mass on a spring is T = 2π√(k/m), where k is the spring constant (units N/m). Use dimensions to test the claim. If it fails, give the corrected form.
Show answer
[k] = M T⁻² and [m] = M, so [k/m] = T⁻² and [√(k/m)] = T⁻¹. The right side has dimension T⁻¹ (a frequency), not T, so the claim is wrong. Inverting the ratio gives T = 2π√(m/k), where [m/k] = T² and the square root has dimension T. The dimensional check cannot confirm the factor 2π, only that the form is consistent.
Exercise
The equation y = A·e^(−bt) is proposed for a decaying signal, where t is a time. What must the dimensions of b be? Can the same equation also include a term like sin(b)?
Show answer
The exponent bt must be dimensionless, so [b] = T⁻¹. A term sin(b) would put a quantity with dimension T⁻¹ inside a sine, which is not allowed, so the term is invalid. Writing sin(bt) would be valid, since bt is dimensionless.