How Mathematics Works

Dimensional Analysis as a Check on Any Formula

Track length, mass and time through a formula to catch errors in seconds, and even predict how answers must depend on the inputs.

Key takeaways

  • Every term that is added, subtracted or set equal must have the same dimensions.
  • The inputs to functions such as sine, the exponential and the logarithm must be dimensionless.
  • Passing the check does not prove a formula, because pure numbers and signs are invisible to it.
  • When few quantities are involved, matching dimensions can determine how the answer depends on each of them.

Dimensional analysis checks a formula by asking what kind of quantity each part is, such as a length, a time or a mass. Both sides of an equation must be the same kind, and only quantities of the same kind can be added. A formula that breaks either rule is wrong, whatever numbers you put in.

The test takes seconds and needs little more than the laws of exponents. It can also do something more surprising: in favorable cases it predicts the shape of an answer before you have solved the problem.

Dimensions and units

A dimension is the kind of quantity: length, written L, mass M, or time T. A unit is a particular size used to measure it, such as meters or feet for length. Changing units changes the numbers but never the dimension.

Other quantities are built from these by multiplying and dividing.

Quantity Dimensions Typical metric unit
Area L² square meter
Volume L³ cubic meter
Speed L T⁻¹ meter per second
Acceleration L T⁻² meter per second squared
Force M L T⁻² newton
Energy M L² T⁻² joule
Density M L⁻³ kilogram per cubic meter

Pure numbers, such as 2 or π, have no dimension. So does any ratio of two like quantities, including an angle in radians, which is an arc length divided by a radius.

The two rules

First, you may add, subtract or compare only quantities with identical dimensions. Three meters plus two seconds has no meaning. Second, multiplication and division combine dimensions by the laws of exponents.

Take the formula for distance traveled with constant acceleration, d = vt + ½at², where v is the initial speed, a the acceleration and t the time.

d          L
v t        (L T⁻¹)(T)   = L
½ a t²     (L T⁻²)(T²)  = L
every term is a length, so the formula passes

Now suppose you misremember it as d = vt + ½at. The last term has dimensions L T⁻¹, a speed, which cannot be added to a length. The error is exposed without any physics.

Catching slips in geometry

Geometry is a fine place to practice, since only L appears. A circle's circumference must be a length, so it is 2πr and not πr². An area must be L², and a volume L³.

Say you derive the surface area of a closed cylinder as 2πr² + 2πrh. Both terms are L², as required. If your algebra had produced 2πr² + 2πh, the second term would be a length, and you would know to go back a step.

The same reasoning explains scaling. Double every length of a solid shape and each area is multiplied by 4, each volume by 8. A model built at one tenth scale needs one hundredth of the paint and has one thousandth of the volume.

Checking algebra

You can invent dimensions for a purely algebraic problem. In the equation ax² + bx + c = 0, imagine that x is a length and a is a pure number. Then b must be a length and c an area, so that all three terms are L².

The quadratic formula passes: b² and 4ac are both L², so their difference has a square root that is a length, which can be added to −b. If you had written √(b² − 4a), you would be subtracting a pure number from an area, and the mistake shows.

Integrals can be tested the same way. Which of these is right?

∫ dx / (x² + a²)  =  arctan(x/a) + C
∫ dx / (x² + a²)  =  (1/a) arctan(x/a) + C

let x and a be lengths:
left side:        L / L² = L⁻¹
arctan(x/a):      dimensionless
(1/a) arctan:     L⁻¹      so the second form is the right one

Inside functions

The exponential, logarithm and trigonometric functions need dimensionless inputs. One way to see why is the series eˣ = 1 + x + x²/2 + ... . If x were a time, you would be adding a pure number to a time and to a time squared.

So in an expression such as e^(−kt), where t is time, the constant k must have dimension T⁻¹. In sin(ωt), the quantity ω must also be T⁻¹. If your answer contains sin(t) where t is measured in seconds, a constant has probably been lost or silently set to 1.

Predicting the shape of an answer

Consider a simple pendulum: a small heavy bob on a light string of length ℓ, swinging through a small angle. What sets its period? Suppose the candidates are the length ℓ, the bob's mass m and the strength of gravity g, an acceleration.

period = C × ℓ^a × g^b × m^c        (C is a pure number)

T¹ = L^a × (L T⁻²)^b × M^c

mass:     c = 0
time:     −2b = 1          so b = −1/2
length:   a + b = 0        so a = 1/2

period = C × √(ℓ/g)

Without solving any differential equation, you learn that mass does not matter under these assumptions, and that making the string four times longer doubles the period. Dimensions cannot supply C. A fuller treatment gives C = 2π for small swings. For larger swings the period also depends on the starting angle, which is dimensionless and therefore invisible to this argument.

A second case: the speed of a small wave on a stretched string depends on the tension F, a force, and the mass per unit length μ. The ratio F/μ has dimensions (M L T⁻²)/(M L⁻¹) = L² T⁻². So the speed must be a pure number times √(F/μ), and the standard theory shows the number is 1.

Rates of change and totals

Calculus fits the system neatly. A derivative dy/dx is a ratio of small changes, so its dimensions are those of y divided by those of x. An integral of y with respect to x is a sum of products, so it has the dimensions of y times those of x. A second derivative d²y/dx² divides by x twice.

If s is position and t is time, then ds/dt is L T⁻¹, a speed, and d²s/dt² is L T⁻², an acceleration. The integral of a speed over time is a length.

This gives a check on any differential equation. In Newton's law of cooling, dθ/dt = −k θ, where θ is the temperature difference between an object and its surroundings, the left side is a temperature divided by a time. So k must have dimension T⁻¹. Temperature counts as a further dimension alongside L, M and T. The solution θ = θ₀ e^(−kt) then has a pure number in the exponent, as required.

Practice: which formula survives?

A ball is thrown at speed v at angle θ above flat ground, and air resistance is ignored. Three students offer formulas for the horizontal range.

Proposed range Dimensions Verdict
v sin 2θ / g T rejected, it is a time
v² sin 2θ / g L passes
v² g sin 2θ L³ T⁻⁴ rejected

The survivor is the standard result. Test it further: at θ = 0° the ball is thrown along the ground and the formula gives 0, and at θ = 90° it goes straight up and again lands with range 0. The maximum, at 45°, sits between.

A similar one-line argument covers dropping an object from height h with no air resistance. The only combination of h and g that makes a time is √(h/g). So the fall time is a pure number times that, and the pure number turns out to be √2.

A step-by-step routine

Checking a formula by dimensions
1 Label each symbol Write its dimensions in L, M and T 2 Reduce each term Combine exponents for products and quotients 3 Compare terms Added and equated terms must match 4 Check functions Inputs to exp, log and sine are pure numbers 5 Test further Try extreme values to catch pure-number errors Label each symbol Write its dimensions in L, M and T 1 Reduce each term Combine exponents for products and quotients 2 Compare terms Added and equated terms must match 3 Check functions Inputs to exp, log and sine are pure numbers 4 Test further Try extreme values to catch pure-number errors 5

What the check misses

Dimensional analysis is a filter. A formula that fails it is wrong. A formula that passes may still be wrong in several ways.

  • A missing or incorrect pure number, such as dropping the ½ in kinetic energy ½mv².
  • A wrong sign, since vt − ½at² has the same dimensions as vt + ½at².
  • A wrong dimensionless factor, such as sine in place of cosine.
  • A swap of two quantities with identical dimensions, such as radius and height.

For these, turn to extreme cases. Setting the acceleration to 0, or an angle to 90°, often catches exactly what dimensions cannot.

It also depends on listing the right variables. If you leave out a quantity that matters, the method may return a confident and wrong form, or no solution at all. When there are more variables than dimensions can pin down, you get dimensionless combinations, and the answer can depend on them in any way. A general result known as the Buckingham π theorem describes how many such combinations to expect.

Units in practical work

Keeping units attached to numbers is the same discipline at work. To convert 90 kilometers per hour, multiply by factors that each equal 1.

90 km/h × (1000 m / 1 km) × (1 h / 3600 s) = 25 m/s

The unwanted units cancel like algebraic factors. If they do not cancel, a factor is upside down. In 1999 NASA lost the Mars Climate Orbiter after one piece of software supplied thruster data in imperial units while another expected metric units. Costly unit mix-ups tells more such stories.

In estimation work, units are also the scaffold for building the calculation itself, as shown in Fermi estimation.

Written for 4Mathematics with AI writing tools and not reviewed line by line by a person. Check anything you rely on against a textbook or primary source. Report an error.

Keep reading

All 32 articles in How Mathematics Works →

Latest news on this topic