Your teacher drilled in that exponentiation is not commutative: 2^3 = 8 but 3^2 = 9. Swap the base and the exponent and the answer changes. Then you open a physics textbook and see E = mc^2, F = \tfrac{1}{2}mv^2, T^2 \propto R^3 — powers everywhere, written with zero caveats. Does physics know something algebra doesn't? Or are physicists just sloppy? Neither. This article explains why the non-commutativity of exponentiation never trips up a physics formula in practice.
The algebraic fact
Exponentiation is genuinely not commutative. In general:
Test: 2^3 = 8 and 3^2 = 9. 5^2 = 25 and 2^5 = 32. The two sides come out different — sometimes close, sometimes wildly apart. There is a small family of exceptions (like 2^4 = 4^2 = 16) but they are rare, and nothing in the definition of a^b forces it to equal b^a.
So at the algebra level, the base and the exponent play completely different roles. The base is what you are multiplying over and over. The exponent is how many times. Those are two different jobs, and swapping them is like swapping "who" with "how many" in a sentence — it produces a different statement.
Why physics formulas look relaxed about it
Now look at a real physics formula. Newton's second law:
No exponent here, so nothing to argue about. Pick another — the kinetic energy of a moving object:
That v^2 means v \times v. The base is the speed v, the exponent is the integer 2. You would never consider writing 2^v instead — the two are different quantities with different units, and the formula is specifically about v multiplied by itself twice.
Why physics never accidentally swaps the base and the exponent: the base has physical units (metres per second, kilograms, metres, joules) while the exponent is almost always a pure dimensionless integer or rational number. The two are categorically different objects in physics, so swapping them isn't even a valid move — the result would be a meaningless quantity.
This is the core point. In physics, the base and the exponent are not two interchangeable numbers the way 2 and 3 are in abstract arithmetic. The base carries units; the exponent doesn't. So the very question "what if I swap them?" fails a dimensional sanity check before the math even gets looked at.
Units kill the ambiguity
Try to actually swap v^2 in the kinetic energy formula. If v = 3 m/s, then v^2 = 9 \text{ m}^2/\text{s}^2 — a quantity with the units of speed squared, the right kind of unit for the rest of the formula to produce joules.
Now try 2^v with v = 3 m/s. What is "2 raised to the power of 3 m/s"? That expression has no meaning. An exponent has to be dimensionless. You cannot raise a number to a power that carries units of metres per second — not in physics, not in pure math, not anywhere. So the swap is blocked before you can even compute it.
So even though a^b \neq b^a in general, physics never has the opportunity to confuse the two. The exponent is always a dimensionless number, and the base is always a dimensional quantity. There is no ambiguity about which is which.
Does this mean physics never uses b^a?
Physics does use expressions where the exponent is itself a calculated quantity — but in those cases, the exponent has been engineered to be dimensionless. Three examples:
- Radioactive decay: N(t) = N_0 \, e^{-t/\tau}. Here -t/\tau is dimensionless because t and \tau are both times — the units cancel.
- Compound interest: A = P(1 + r)^n. Here n is dimensionless (number of years or periods).
- Boltzmann factor: p \propto e^{-E/kT}. Here E/kT is dimensionless because kT has units of energy.
In every case, the physicist had to construct a dimensionless quantity before putting it in the exponent. The dimensional analysis rule is so strict that you never get to put metres in an exponent. So the question "is a^b the same as b^a?" is moot — the two roles are permanently assigned.
The one case that actually looks confusing
Now consider T^2 = kR^3, Kepler's third law. Here the exponent on T is 2 and the exponent on R is 3. Neither side swaps a base with an exponent — these are two different equations bolted together with an equals sign. The 2 and 3 are both dimensionless, while T (time) and R (length) are dimensional. The relation is between two dimensional quantities raised to different integer powers.
This doesn't involve commutativity of exponentiation at all. It is just: the square of the orbital period is proportional to the cube of the orbital radius. No swap is being claimed.
Why algebra students get worried
The anxiety comes from the fact that your algebra class, correctly, emphasises that a^b and b^a are genuinely different expressions. You were warned for good reason: a beginner's instinct is often to "just multiply the exponent into the base" or treat them as interchangeable. Your teacher was drilling that reflex out of you.
The jump to physics feels like a contradiction because nobody labels the base and exponent with their roles explicitly. But in physics, the roles are locked in by units. You can only ever multiply v by itself an integer or rational number of times. You can never put metres-per-second in an exponent. The algebra is exactly the same; it is just that the physics context removes the ambiguity the algebra class was warning you about.
A clean one-line summary
Exponentiation is non-commutative in general, but in physics the base always carries units and the exponent never does, so the swap that would expose the non-commutativity is blocked by dimensional analysis before you can even attempt it.
Physics formulas look casual about powers only because the two slots have been given two different jobs by the physics itself, not by any algebraic trick. The non-commutativity is still there — it just has nothing to bite.
Edge case: when the exponent becomes a variable
In some JEE problems and in the Going Deeper sections of thermodynamics, you meet expressions like x^x or f(x)^{g(x)}. These are places where the base and the exponent are both variable, and you need calculus tricks (like taking the logarithm) to differentiate. Even here, the rule is preserved: in any physics interpretation, the base carries units and the exponent is constructed to be dimensionless — often by dividing two quantities of the same dimension. The abstract mathematics of non-commutative exponentiation still applies, but the physical interpretation always keeps the roles distinct.
Summary
- a^b \neq b^a is true in general arithmetic, and your teacher was right to emphasise it.
- Physics uses powers freely because the base always has dimensional units and the exponent is always a dimensionless number, so swapping them isn't a valid move — it produces a meaningless quantity.
- Dimensional analysis silently protects every physics formula from ever being on the wrong side of non-commutativity.
- The exponent being a constructed dimensionless quantity is what makes formulas like e^{-t/\tau} legal, and it is always worth checking that dimensional cancellation on your own when you meet a new formula.
Related: Operations and Properties · Exponents and Powers · Why Doesn't the Distributive Property Work for a × (b × c)? · Swap the Order of a Subtraction and Watch It Land Somewhere Else