Mathematicians study a variety of different mathematical structures, but perhaps the structures that are most commonly associated with mathematics are the number systems, such as the integers or the real numbers
. Indeed, the use of number systems is so closely identified with the practice of mathematics that one sometimes forgets that it is possible to do mathematics without explicit reference to any concept of number. For instance, the ancient Greeks were able to prove many theorems in Euclidean geometry, well before the development of Cartesian coordinates and analytic geometry in the seventeenth century, or the formal constructions or axiomatisations of the real number system that emerged in the nineteenth century (not to mention precursor concepts such as zero or negative numbers, whose very existence was highly controversial, if entertained at all, to the ancient Greeks). To do this, the Greeks used geometric operations as substitutes for the arithmetic operations that would be more familiar to modern mathematicians. For instance, concatenation of line segments or planar regions serves as a substitute for addition; the operation of forming a rectangle out of two line segments would serve as a substitute for multiplication; the concept of similarity can be used as a substitute for ratios or division; and so forth.
A similar situation exists in modern physics. Physical quantities such as length, mass, momentum, charge, and so forth are routinely measured and manipulated using the real number system (or related systems, such as
if one wishes to measure a vector-valued physical quantity such as velocity). Much as analytic geometry allows one to use the laws of algebra and trigonometry to calculate and prove theorems in geometry, the identification of physical quantities with numbers allows one to express physical laws and relationships (such as Einstein’s famous mass-energy equivalence
) as algebraic (or differential) equations, which can then be solved and otherwise manipulated through the extensive mathematical toolbox that has been developed over the centuries to deal with such equations.
However, as any student of physics is aware, most physical quantities are not represented purely by one or more numbers, but instead by a combination of a number and some sort of unit. For instance, it would be a category error to assert that the length of some object was a number such as ; instead, one has to say something like “the length of this object is
yards”, combining both a number
and a unit (in this case, the yard). Changing the unit leads to a change in the numerical value assigned to this physical quantity, even though no physical change to the object being measured has occurred. For instance, if one decides to use feet as the unit of length instead of yards, then the length of the object is now
feet; if one instead uses metres, the length is now
metres; and so forth. But nothing physical has changed when performing this change of units, and these lengths are considered all equal to each other:
It is then common to declare that while physical quantities and units are not, strictly speaking, numbers, they should be manipulated using the laws of algebra as if they were numerical quantities. For instance, if an object travels metres in
seconds, then its speed should be
where we use the usual abbreviations of and
for metres and seconds respectively. Similarly, if the speed of light
is
and an object has mass
, then Einstein’s mass-energy equivalence
then tells us that the energy-content of this object is
Note that the symbols are being manipulated algebraically as if they were mathematical variables such as
and
. By collecting all these units together, we see that every physical quantity gets assigned a unit of a certain dimension: for instance, we see here that the energy
of an object can be given the unit of
(more commonly known as a Joule), which has the dimension of
where
are the dimensions of mass, length, and time respectively.
There is however one important limitation to the ability to manipulate “dimensionful” quantities as if they were numbers: one is not supposed to add, subtract, or compare two physical quantities if they have different dimensions, although it is acceptable to multiply or divide two such quantities. For instance, if is a mass (having the units
) and
is a speed (having the units
), then it is physically “legitimate” to form an expression such as
, but not an expression such as
or
; in a similar spirit, statements such as
or
are physically meaningless. This combines well with the mathematical distinction between vector, scalar, and matrix quantities, which among other things prohibits one from adding together two such quantities if their vector or matrix type are different (e.g. one cannot add a scalar to a vector, or a vector to a matrix), and also places limitations on when two such quantities can be multiplied together. A related limitation, which is not always made explicit in physics texts, is that transcendental mathematical functions such as
or
should only be applied to arguments that are dimensionless; thus, for instance, if
is a speed, then
is not physically meaningful, but
is (this particular quantity is known as the rapidity associated to this speed).
These limitations may seem like a weakness in the mathematical modeling of physical quantities; one may think that one could get a more “powerful” mathematical framework if one were allowed to perform dimensionally inconsistent operations, such as add together a mass and a velocity, add together a vector and a scalar, exponentiate a length, etc. Certainly there is some precedent for this in mathematics; for instance, the formalism of Clifford algebras does in fact allow one to (among other things) add vectors with scalars, and in differential geometry it is quite common to formally apply transcendental functions (such as the exponential function) to a differential form (for instance, the Liouville measure of a symplectic manifold can be usefully thought of as a component of the exponential
of the symplectic form
).
However, there are several reasons why it is advantageous to retain the limitation to only perform dimensionally consistent operations. One is that of error correction: one can often catch (and correct for) errors in one’s calculations by discovering a dimensional inconsistency, and tracing it back to the first step where it occurs. Also, by performing dimensional analysis, one can often identify the form of a physical law before one has fully derived it. For instance, if one postulates the existence of a mass-energy relationship involving only the mass of an object , the energy content
, and the speed of light
, dimensional analysis is already sufficient to deduce that the relationship must be of the form
for some dimensionless absolute constant
; the only remaining task is then to work out the constant of proportionality
, which requires physical arguments beyond that provided by dimensional analysis. (This is a simple instance of a more general application of dimensional analysis known as the Buckingham
theorem.)
The use of units and dimensional analysis has certainly been proven to be very effective tools in physics. But one can pose the question of whether it has a properly grounded mathematical foundation, in order to settle any lingering unease about using such tools in physics, and also in order to rigorously develop such tools for purely mathematical purposes (such as analysing identities and inequalities in such fields of mathematics as harmonic analysis or partial differential equations).
The example of Euclidean geometry mentioned previously offers one possible approach to formalising the use of dimensions. For instance, one could model the length of a line segment not by a number, but rather by the equivalence class of all line segments congruent to the original line segment (cf. the Frege-Russell definition of a number). Similarly, the area of a planar region can be modeled not by a number, but by the equivalence class of all regions that are equidecomposable with the original region (one can, if one wishes, restrict attention here to measurable sets in order to avoid Banach-Tarski-type paradoxes, though that particular paradox actually only arises in three and higher dimensions). As mentioned before, it is then geometrically natural to multiply two lengths to form an area, by taking a rectangle whose line segments have the stated lengths, and using the area of that rectangle as a product. This geometric picture works well for units such as length and volume that have a spatial geometric interpretation, but it is less clear how to apply it for more general units. For instance, it does not seem geometrically natural (or, for that matter, conceptually helpful) to envision the equation as the assertion that the energy
is the volume of a rectangular box whose height is the mass
and whose length and width is given by the speed of light
.
But there are at least two other ways to formalise dimensionful quantities in mathematics, which I will discuss below the fold. The first is a “parametric” model in which dimensionful objects are modeled as numbers (or vectors, matrices, etc.) depending on some base dimensional parameters (such as units of length, mass, and time, or perhaps a coordinate system for space or spacetime), and transforming according to some representation of a structure group that encodes the range of these parameters; this type of “coordinate-heavy” model is often used (either implicitly or explicitly) by physicists in order to efficiently perform calculations, particularly when manipulating vector or tensor-valued quantities. The second is an “abstract” model in which dimensionful objects now live in an abstract mathematical space (e.g. an abstract vector space), in which only a subset of the operations available to general-purpose number systems such as or
are available, namely those operations which are “dimensionally consistent” or invariant (or more precisely, equivariant) with respect to the action of the underlying structure group. This sort of “coordinate-free” approach tends to be the one which is preferred by pure mathematicians, particularly in the various branches of modern geometry, in part because it can lead to greater conceptual clarity, as well as results of great generality; it is also close to the more informal practice of treating mathematical manipulations that do not preserve dimensional consistency as being physically meaningless.
— 1. The parametric approach —
In the parametric approach to formalising units and dimension, we postulate the existence of one or more dimensional parameters; for sake of discussion, let us initially use (representing the mass unit, length unit, and time unit respectively) for the dimensional parameters, though later in this discussion we will consider other sets of dimensional parameters. We will allow these parameters
to range freely and independently among the positive real numbers
, thus the parameter space (or structure group) here is given by the multiplicative group
. Later on, we will consider more general situations in which the parameter space is given by more general structure groups. (Actually, it would be slightly more natural to use a parameter space which was a torsor of the structure group, rather than the structure group itself; we discuss this at the very end of the post.)
We then distinguish two types of mathematical object in the “dimensionful universe”:
- Dimensionless objects
, which do not depend on the dimensional parameters
;
- Dimensionful objects
, which depend on the dimensional parameters
.
Similarly with “object” replaced by “number”, “vector”, or any other mathematical object. (Strictly speaking, with this convention, a dimensionless object is a degenerate special case of a dimensionful object; one could, if one wished, talk about strictly dimensionful objects in which the dependence of on
is non-constant.) Our conventions will be slightly different when we turn to dimensionful sets rather than dimensionful objects, but we postpone discussion of this subtlety until later.
The distinction between dimensionless and dimensionful objects is analogous to the distinction between standard and (cheap) nonstandard objects in (cheap) nonstandard analysis. However, whereas in nonstandard analysis the underlying parameter is usually thought of as an infinitely large parameter, in dimensional analysis the dimensional parameters
are usually thought of as neither being infinitesimally small or infinitely large, but rather a medium-sized quantity taking values comparable to those encountered in the physical system being studied.
A typical example of a dimensionful quantity is the numerical length of a physical rod
, in terms of a length unit which is
yards (say) long. For instance, if
is ten yards long, then
. Furthermore,
, since when
, the length unit is now
yards, i.e. a foot, and
is thirty feet long. More generally, we see that
Thus, a quantity which measures the numerical length of an object is a dimensionful quantity behaves inversely to the size of the length unit. More generally, let us say that a dimensionful numerical quantity has dimension
for some (dimensionless) exponents
if one has a proportionality relationship of the form
for some number . For instance, the speed of an object, measured in length units per time unit, where length unit is
yards long and the time unit is
seconds in duration, is a dimensionful quantity of dimension
. The presence of the negative signs in (1) may seem surprising at first, but this is due to the fact that (1) is describing the effect of a passive change of units rather than an active change of the object
.
(Note here one slight defect of this approach in modeling physical quantities, in that one has to select a preferred system of units (in this case, yards, seconds, and some unspecified mass unit) in order to interpret the parameters numerically. As mentioned above, one can avoid this by viewing the parameters as torsors rather than numbers; we will discuss this briefly at the end of this post.)
In the language of representation theory, the collection of dimensionful quantities of dimension is a weight space of the structure group
of weight
. One can indeed view dimensional analysis as being the representation theory of groups such as
, this viewpoint will become more prominent when we consider more general structure groups than
later in this section.
Note that with this definition, it is possible that some dimensionful quantities do not have any specific dimension , due to the dependence on
being more complicated than a simple power law relationship. To give a (contrived) example, the dimensionful quantity
does not have any specific dimension attached to it.
We can manipulate dimensionful quantities mathematically by applying any given mathematical operation pointwise for each choice of dimensional parameters . For instance, if
and
are two dimensionful numerical quantities, we can form their sum
by the formula
Similarly one can define ,
,
(if
is never vanishing),
,
, etc.. We also declare
if one has
for all
, and similarly declare
if one has
for all
, and so forth. Note that any law of algebra that is expressible as a universal identity will continue to hold for dimensionful quantities; for instance, the distributive law
holds for ordinary real numbers, and hence clearly also holds for dimensionful real numbers.
With these conventions, we now see a difference between dimensionally consistent and dimensionally inconsistent operations. If and
both have units
, then their sum
and difference
also has units
; but if
has units
and
has units
for some
, then the sum
or difference
, while still defined as a dimensionful quantity, no longrer has any single dimension. For instance, if one adds a length
to a speed
, one obtains a hybrid dimensionful quantity
which is not of the form (1). Similarly, applying a transcendental function
to a dimensionful quantity
will almost certainly generate a quantity with no specific dimension, unless the quantity
was actually dimensionless (in which case
will be dimensionless too, of course). On the other hand, dimensions interact very well with products and quotients: the product of a quantity of dimension
with a quantity of dimension
is a quantity of dimension
, and similarly for quotients.
Now we turn to equality. If two quantities have the same units
, then we see that in order to test the equality
of the two objects, it suffices to do so for a single choice of dimensional parameters
: if
for a single tuple
, then one has
for all
. Similarly for order relations such as
or
. In particular, if two quantities
have the same units, then we have the usual order trichotomy: exactly of
and
from before, we see that none of the three statements
,
are true (which, in the dimensionful universe, means that they are valid for all choices of dimension parameters
): instead, we have
and
for
and
have different dimensions, we see that the equation
cannot hold at all, unless
and
both vanish. Thus we see that any non-trivial dimensionally inconsistent identity (in which the left and right-hand sides have different dimensions) can be automatically ruled out as being false.
A similar situation holds for inequality: if are strictly positive dimensionful quantities with different dimensions, then none of the statements
,
, or
can hold. (On the other hand, with our conventions, a strictly positive quantity is always greater than a strictly negative quantity, even when the dimensions do not match.) The situation gets more complicated though when dealing with quantities of hybrid dimension. For instance, the arithmetic mean-geometric mean inequality tells us that
for any two strictly positive dimensionful quantities , even if these quantities have different dimensions. For instance, if
has dimension
and
has dimension
, then the left-hand side
has dimension
, but the two terms
,
on the right-hand side have dimensions
and
respectively. But this inequality can still be viewed as dimensionally consistent, if one broadens the notion of dimensional consistency sufficiently. For instance, if
is the sum of
strictly positive quantities of dimension
for
and some
, and
is similarly the sum of
strictly quantities of dimension
for
and some
, it is an instructive exercise to show that an inequality of the form
or
can only hold if the convex hull of the
is contained in the convex hull of the
(and that equality
can only hold if the two sets
and
agree). Thus, for instance, (2) is dimensionally consistent in this generalised sense, because the exponent pair
associated to the left-hand side
lies in the convex hull of the exponent pairs
associated to the right-hand side
. On the other hand, this analysis helps explain why we almost never see such hybrid dimensional quantities appear in a physical problem, because while one can bound a positive quantity with a single dimension by a combination of positive quantities of different dimensions (as in (2)), the converse is not possible: one cannot bound a positive quantity of hybrid dimension by a quantity with a single dimension. As a consequence, if one is trying to establish an inequality
between two positive quantities of the same dimension by writing down a chain
of intermediate inequalities, one cannot have any of the intermediate quantities
be of hybrid dimension, as this will necessarily cause one of the inequalities in the chain to fail as soon as one attempts to bound a hybrid quantity by a non-hybrid quantity. Similarly if one wishes to prove an equality
instead of an inequality.
We have already observed that to verify a dimensionally consistent statement between dimensionful quantities, it suffices to do so for a single choice of the dimension parameters ; one can view this as being analogous to the transfer principle in nonstandard analysis, relating dimensionful mathematics with dimensionless mathematics. Thus, for instance, if
have the units of
,
, and
respectively, then to verify the dimensionally consistent identity
, it suffices to do so for a single choice of units
. For instance, one can choose a set of units (such as Planck units) for which the speed of light
becomes
, in which case the dimensionally consistent identity
simplifies to the dimensionally inconsistent identity
. Note that once we sacrifice dimensional consistency, though, we cannot then transfer back to the dimensionful setting; the identity
does not hold for all choices of units, only the special choice of units for which
. So we see a tradeoff between the freedom to vary units, and the freedom to work with dimensionally inconsistent equations; one can spend one freedom for another, but one cannot have both at the same time. (This is closely related to the concept of spending symmetry, which I discuss for instance in this post (or in Section 2.1 of this book).)
Thus far, we have only considered scalar dimensionful quantities: quantities which, for each choice of dimensional parameters , take values in a number system such as
. One can similarly consider vector-valued or matrix-valued dimensionful quantities, with only minor changes (though see below, when we consider coordinate systems to themselves be a dimensional parameter). We remark though that one could consider vectors in which different components have different dimensions. For instance, one could consider a four-dimensional vector
in which the first three components
have the dimension of length
, while the final component
has the dimension of time
.
Now we turn to the notion of a dimensionful set, which requires some care. We will define a dimensionful set to be a set of dimensionful objects
. Thus, for instance, the collection
of all dimensionful numbers of dimension
would be a dimensionful set; it is isomorphic to the reals
, because a dimensionful real number of a given dimension is entirely determined by its value for a single choice of parameters. But one should view the dimensionful sets
as
vary as being distinct copies of
. We say that a dimensionful set
of reals has dimension
if each element of
has this dimension.
Given a dimensionful set , one can evaluate it at any given choice
of parameters, by evaluating each point of
at this choice:
However, in contrast with the situation with dimensionful objects, a dimensionful set is not completely characterised by its evaluations
at each choice of parameters
. For instance, if one evaluates the dimensionful set
at any given
, one just gets the ordinary real numbers:
However, the sets and
are still distinct (indeed, they only intersect at the origin). The point is that membership of a dimensionful point
in a dimensionful set
is a global property rather than a local one; in order for
to lie in
, it is necessary that
for all
, but this condition is not sufficient (unless
and
have the same dimension, in which case it suffices to have
for just a single
).
Given two dimensionful sets , we define a dimensionful function
from
to
to be a family
of functions which maps points in
to points in
; thus, if
is a point in
, then the dimensionful object
defined by pointwise evaluation
is a point in . Thus, for instance, the squaring function
can be viewed both as a dimensionless function, and also as a function from
to
for any
. (Thus, when describing a dimensionful function
, it is not quite enough to specify the specific instantiations
of that function; one must also specify the dimensionful domain
and range
.) As another example, if
is a dimensionful quantity of some units
(representing amplitude) and
is a dimensionful quantity of units
(representing a time frequency), then the function
(thus
for all
) is a dimensional function from
to
.
A dimensionful function has instantiations
that scale according to the rule
for any and some dimensionless function
; conversely, every dimensionless function
creates a dimensionful function
in this fashion. As such, one can again transfer between the dimensionful and dimensionless settings when manipulating functions and objects, provided as before that all statements involved are dimensionally consistent.
An important additional operation available to dimensionful functions that is not available (in any non-trivial sense) to dimensionful scalars is that of integration. Given a dimensionful function on some one-dimensional dimensionful set
, one can form the integral
(assuming sufficient regularity and decay conditions on
and
, which we will not dwell on here) by the formula
One can verify that this integral is indeed a dimensionful quantity of dimension
. (One way to see this is to first verify the analogous claim for Riemann sums, and then to observe that the property of being a given dimension is a closed condition in the sense that it is preserved under limits.) In the opposite direction, the derivative
of this function, defined in the obvious fashion as
can be easily verified to be a dimensionful quantity of dimension . (As before, this can be seen by first considering Newton quotients and then taking limits.)
With this formalism, one can now use dimensional analysis to help test the truth of various estimates in harmonic analysis. Consider for instance the homogeneous Sobolev inequality
for all sufficiently nice functions (again, we will not dwell on the precise regularity needed here, as it is not the main focus of this post), for certain choices of exponents
and
, and a constant
that is independent of
. To dimensionally analyse this inequality, we introduce two dimensional parameters – a length unit
and an amplitude unit
– and view
as a function from
to
rather than from
to
; thus, by (3) (now using parameters
instead of
), we have
(As before, the exponents seem reversed from the more familiar rescaling , due to the fact that we are measuring change with respect to passive rescaling of units rather than an active rescaling of the function
.) We can then verify that
has dimension
,
has dimension
,
has dimension
, and so the left-hand side (4) of
has dimension
. A similar calculation (treating
as dimensionless) shows that the right-hand side of (4) has dimension
. If (4) holds for dimensionless functions, it holds for dimensionful functions as well (by applying the inequality to each instantiation of the dimensionful function); as the quantities in (4) are positive for non-trivial
, we conclude that (4) can only hold if we have the dimensional consistency relation
In fact, this condition turns out to be sufficient as well as necessary, although this is a non-trivial fact that cannot be proven purely by dimensional analysis; see e.g. these notes.
In a similar vein, one can dimensionally analyse the inhomogeneous Sobolev inequality
Using the same units as before, the left-hand side has dimension , and the right-hand side is a hybrid of the dimensions
and
, leading to the dimensional consistency relation
for this inequality, as a necessary condition for (5). (See also this blog post for an equivalent way to establish these conditions, using rescaled test functions instead of dimensional analysis; as mentioned earlier, the relation between these two approaches is essentially the difference between active and passive transformations.)
We saw earlier that hybrid inequalities (in which the right-hand side contains terms of different dimension) are not as useful or “efficient” as dimensionally pure inequalities (in which both sides have the same, single dimension). But it is often possible to amplify a hybrid inequality into a dimensionally pure one by optimising over all rescalings; see this previous blog post for a discussion of this trick (which, among other things, amplifies the inhomogeneous Sobolev inequality into the Gagliardo-Nirenberg inequality).
In all the above discussion, the dimensional parameters used (such as or
) were scalar quantities, taking values in the multiplicative group
, and representing units in one-dimensional spaces. But, when dealing with vector quantities, one can perform a more powerful form of dimensional analysis in which the dimensional parameters lie in a more general group (which we call the structure group of the dimensionful universe being analysed). Suppose for instance one wishes to represent a vector
in a three-dimensional vector space
. One could designate some basis
of this space
as a reference basis, so that
is expressible as some linear combination
, in which case one could identify
with the row vector
, and identify
with
. But one could instead represent
in some different basis
, where
is a
matrix (where, by an abuse of notation, we use
as shorthand for
), in which case one obtains a new decomposition
where the row vector is related to the original row vector
by the formula
where is the transpose of
. Motivated by this, we may take the matrix
as the dimensional parameter (taking values in the structure group
of invertible
matrices), and define a polar vector or type
tensor to be a dimensionful vector
taking values in the space
of three-dimensional row vectors and transforming according to the law (6). This is the three-dimensional analogue of a scalar quantity of dimension
(which, in the one-dimensional setting, is just a scalar parameter in
rather than an element of
). Indeed, one can view units as being simply the one-dimensional special case of coordinate systems. (As with previous transformation laws, the presence of the transpose inverse in (6) comes from the use of passive transformations rather than active ones.)
Now suppose we do not wish to model a vector in
, but rather a linear functional
on
. Using the standard basis
, one can identify
with the row vector
. Replacing that basis with
, we obtain a new row vector
, which is related to the original vector by the formula
We will call a dimensionful vector-valued quantity of the form (7) a covector or type
tensor. Thus we see that while polar vectors and covectors can both be expressed (for each choice of
) as an element of
, they transform differently with respect to coordinate change (coming from the two different right-actions of the structure group
on
given by (6), (7)) and so it is not possible for a vector and covector to be equal as dimensionful quantities (unless they are both zero). If one tries to add a non-zero vector to a non-zero covector, one still obtains a dimensionful quantity taking values in
, but it is no longer transforms according to a single group action such as (6) or (7), but is instead coming from a more complicated hybrid of two such actions. On the other hand, the dot product of a vector and a covector becomes a dimensionless scalar, whereas the dot product of a vector with another vector, or a covector with another covector, does not transform according to any simple rule. This makes the distinction between vectors and covectors well suited to problems in affine geometry, which by their nature transform well with respect to the action of
. (However, if the geometric problem involves concepts such as length and angles, which do not transform easily with respect to
actions, then the vector/covector distinction is much less useful.)
One can also assign dimensions to higher rank tensors, such as matrices, -vectors, or
-forms; the notation here becomes rather complicated, but is perhaps best described using abstract index notation. The dimensional consistency of equations involving such tensors then becomes the requirement in abstract index notation that the subscripts and superscripts on the left-hand side of a tensor equation must match those on the right-hand side, after “canceling” any index that appears as both a subscript and a superscript on one side. (Abstract index notation is discussed further in this previous blog post.)
Another type of dimensional analysis arises when one t