Sub topic 8
Dimensions and dimensional formulas
This chapter assumes you can work with exponents and basic algebra, and that you know the SI base units from earlier chapters. It defines dimension, shows how to write a dimensional formula, and covers the edge cases that cause errors. The next chapter uses these formulas to check equations.
Dimension versus unit
A unit is a specific standard used to measure a quantity, such as the metre, the foot, or the light-year. A dimension is the kind of quantity being measured: length, mass, time, and so on. The metre, foot, and light-year are different units of the same dimension, length.
This distinction matters because dimensions do not depend on the unit system. A speed is a length divided by a time whether you state it in m/s, km/h, or miles per hour. Conversion factors change the number and the unit. They never change the dimension.
We write the dimension of a quantity Q as [Q], with square brackets. For example, [length] = L.
The base dimensions
SI has seven base quantities, and each has one base dimension symbol.
| Base quantity | Dimension symbol | SI base unit |
|---|---|---|
| Length | L | metre (m) |
| Mass | M | kilogram (kg) |
| Time | T | second (s) |
| Electric current | I | ampere (A) |
| Thermodynamic temperature | Θ | kelvin (K) |
| Amount of substance | N | mole (mol) |
| Luminous intensity | J | candela (cd) |
Most mechanics problems need only M, L, and T. This chapter works mainly in those three. The other four appear when you handle electricity, heat, and chemistry.
Dimensional formulas
Every other quantity is a combination of the base dimensions. Its dimensional formula is a product of powers of the base symbols, written as M^a L^b T^c. The exponents are the dimensional exponents. They are usually integers, but they can be fractions.
To find a formula, start from a defining equation and substitute the dimensions of each factor.
- Velocity is displacement divided by time, so [v] = L / T = L T^-1.
- Acceleration is velocity divided by time, so [a] = L T^-1 / T = L T^-2.
- Force comes from F = ma, so [F] = M L T^-2. This is the newton.
- Energy comes from work = force × distance, so [E] = M L T^-2 × L = M L^2 T^-2. This is the joule.
- Power is energy per time, so [P] = M L^2 T^-3. This is the watt.
- Pressure is force per area, so [p] = M L T^-2 / L^2 = M L^-1 T^-2. This is the pascal.
The table collects common results.
| Quantity | Defining relation | Dimensional formula | SI unit |
|---|---|---|---|
| Area | length × length | L^2 | m^2 |
| Volume | length^3 | L^3 | m^3 |
| Density | mass / volume | M L^-3 | kg/m^3 |
| Velocity | length / time | L T^-1 | m/s |
| Acceleration | velocity / time | L T^-2 | m/s^2 |
| Momentum | mass × velocity | M L T^-1 | kg m/s |
| Force | mass × acceleration | M L T^-2 | N |
| Energy, work | force × length | M L^2 T^-2 | J |
| Power | energy / time | M L^2 T^-3 | W |
| Pressure | force / area | M L^-1 T^-2 | Pa |
| Frequency | 1 / time | T^-1 | Hz |
| Electric charge | current × time | I T | C |
The unit of a derived quantity follows the same pattern. The newton is kg m s^-2 because force is M L T^-2. If you know one, you can write the other.
Rules for combining dimensions
Dimensions follow the rules of exponents.
- Multiplication adds exponents. [AB] = [A][B]. Force times length gives M L T^-2 × L = M L^2 T^-2.
- Division subtracts exponents. [A/B] = [A]/[B].
- Powers multiply exponents. [A^n] = [A]^n. So [v^2] = L^2 T^-2.
- Addition and subtraction require matching dimensions. You can add 3 m to 5 m, but 3 m plus 5 s has no meaning. The result of a valid sum has the same dimension as each term.
The addition rule is the basis of the equation check in the next chapter.
Computing exponents with code
You can treat a dimension as a tuple of exponents and let a program do the bookkeeping. The example below uses (mass, length, time) and checks that sqrt(length / g) has the dimension of time. This is the first step toward the pendulum result later in the tutorial.
from fractions import Fraction as F
# Dimension exponents are (mass, length, time).
def dim_mul(a, b):
return tuple(x + y for x, y in zip(a, b))
def dim_pow(a, p):
return tuple(x * p for x in a)
length = (0, 1, 0)
acceleration = (0, 1, -2)
time = (0, 0, 1)
# Candidate pendulum period: sqrt(length / g)
candidate = dim_mul(dim_pow(length, F(1, 2)), dim_pow(acceleration, F(-1, 2)))
print(candidate == time) # TrueMultiplication adds tuples element by element, and raising to a power scales every exponent. Using Fraction keeps exponents like 1/2 exact. With floats, a check such as 0.5 * -2 == -1 would usually pass, but == comparisons on floats are fragile in general. Exact fractions remove that risk.
Dimensionless quantities
A quantity whose exponents are all zero is dimensionless. Its dimensional formula is 1, also written M^0 L^0 T^0. Examples:
- Ratios of like quantities, such as strain (change in length / original length) or the refractive index.
- Angles in radians, because an angle is arc length divided by radius, which is L / L.
- Pure numbers such as 2, π, and ½.
- Arguments of functions such as sin, exp, and ln.
A dimensionless quantity can still have a unit name, such as the radian or the degree. These are labels and scale factors. They do not carry a dimension. A decibel is also dimensionless, because it is a logarithm of a power ratio.
Functions like sin(x), e^x, and ln(x) are defined through power series. Those series add terms of different powers of x: x, x^3, x^5, and so on. Because addition requires matching dimensions, x itself must be dimensionless. An expression like sin(3 m) is not valid. An expression like sin(kx), with k a wave number in m^-1, is valid because [kx] = L^-1 × L = 1.
Same dimensions, different physics
Two quantities with the same dimensional formula are not necessarily the same kind of quantity. Dimensions are a coarse label.
- Torque and energy both have dimension M L^2 T^-2, but torque is a vector-like rotational effect and energy is a scalar. Torque is quoted in N m, not J, to avoid confusion.
- Frequency in hertz and angular velocity in rad/s both have dimension T^-1, but they differ by a factor of 2π.
- Work and heat have the same dimension, and both are forms of energy transfer.
Dimensional analysis can reject a wrong equation. It cannot confirm that a right-looking one is correct. A dimensionally consistent equation can still have a wrong numerical factor, a wrong sign, or the wrong physical quantity on one side.
Fractional and negative exponents
Exponents can be negative, as in T^-1, or fractional, as in the L^(1/2) that arises when taking a square root. Fractional exponents appear in some constants and empirical laws. For example, in a diffusion process the root-mean-square distance grows as the square root of time, and a diffusion coefficient D has dimension L^2 T^-1. Then [sqrt(D t)] = (L^2 T^-1 × T)^(1/2) = L, which is a length. The fractional power of the product is what makes the result a length.
A worked example: finding the dimension of a constant
Newton's law of gravitation is F = G m1 m2 / r^2. Find the dimension of G.
- Solve for G: G = F r^2 / (m1 m2).
- Substitute: [G] = (M L T^-2)(L^2) / (M × M).
- Simplify the numerator: M L^3 T^-2.
- Divide by M^2: [G] = M^-1 L^3 T^-2.
The SI unit is therefore m^3 kg^-1 s^-2. The same method works for any constant in any law. You solve for the unknown and substitute the known dimensions.
Common errors
- Taking the dimension of a number's unit prefix. [km] and [m] are both L. Prefixes change scale, not dimension.
- Giving angles a dimension. Radians are dimensionless. Treating them as L or as an independent base dimension produces false failures in equation checks.
- Adding exponents when you should subtract. Dividing by time lowers the power of T. A velocity is T^-1, not T^+1.
- Applying a function to a dimensional argument. Taking ln(5 m) or exp(2 s) is invalid. Divide by a reference first, as in ln(x / x0).
- Mixing up dimension and unit in notation. Write [F] = M L T^-2, not [F] = kg m s^-2. The first is a dimension. The second is a unit expression.
Exercise
Find the dimensional formula of the spring constant k in Hooke's law F = kx, and give its SI unit in base units.
Show answer
Solve for k: k = F / x. The dimension of F is M L T^-2 and of x is L, so [k] = M L T^-2 / L = M T^-2. The SI unit is kg s^-2, which is the same as N/m.
Exercise
The kinetic energy of a body is E = (1/2) m v^2. Show that its dimensional formula is M L^2 T^-2. Then say why the factor 1/2 does not appear in the dimensional formula.
Show answer
[m] = M and [v^2] = (L T^-1)^2 = L^2 T^-2, so [E] = M L^2 T^-2. The factor 1/2 is a pure number, which is dimensionless, so it contributes nothing to the exponents.
Exercise
A student writes the period of a wave as T = 2π sqrt(λ g). Here λ is a wavelength and g is gravitational acceleration. Use dimensions to decide whether this can be right.
Show answer
[λ g] = L × L T^-2 = L^2 T^-2, so [sqrt(λ g)] = L T^-1, which is a velocity. A period must have dimension T, so the expression is wrong. The form sqrt(λ / g) has dimension (L / L T^-2)^(1/2) = T, so that one is dimensionally consistent.