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:

a^b \;\neq\; b^a.

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:

F = ma.

No exponent here, so nothing to argue about. Pick another — the kinetic energy of a moving object:

KE = \tfrac{1}{2} m v^2.

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.

Base with units cannot be swapped with exponent dimensionless Two boxes side by side showing the formula v squared on the left and the attempted swap two to the power of v on the right. The left box has v labelled with units metres per second and the exponent two labelled as dimensionless, with a green tick showing units metres squared per second squared. The right box has two as a dimensionless number and v in the exponent labelled with metres per second, with a red cross showing that an exponent must be dimensionless and the expression is meaningless. base v has units m/s exponent 2 is dimensionless = m²/s² ✓ 2ᵛ base 2 is dimensionless exponent v has units m/s ✗ meaningless
The reason $v^2$ and $2^v$ are not interchangeable in a physics formula. The left form has a base with units and a dimensionless exponent — valid, produces units of $\text{m}^2/\text{s}^2$. The right form puts the units in the exponent, which is forbidden: exponents must be pure numbers. The swap isn't merely wrong arithmetically — it is dimensionally meaningless.

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:

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

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