Ma · Mathematics

How to Prove $a^{\log_b c}=c^{\log_b a}$

Published By the 9to5Science editorial team

At a glance

  1. 1. Check the domain

    For real logarithms, require a > 0, c > 0, b > 0, and b not equal to 1.

  2. 2. Use change of base

    Replace each logarithm with a natural-log quotient.

  3. 3. Compare exponents

    Both expressions become the exponential of the same product divided by ln(b).

  4. 4. Verify with values

    Choose powers of the logarithm base to check the identity in a concrete case.

For real logarithms, the identity

alog⁡bc=clog⁡baa^{\log_b c}=c^{\log_b a}

holds whenever a>0a>0, c>0c>0, b>0b>0, and b≠1b\ne 1. The quickest proof is to rewrite both logarithms using natural logarithms. The resulting expressions have the same exponent because multiplication is commutative.

Proof using change of base

The change-of-base formula is

log⁡bx=ln⁡xln⁡b,\log_b x=\frac{\ln x}{\ln b},

which applies when x>0x>0, b>0b>0, and b≠1b\ne1. Apply it to the exponent on the left:

alog⁡bc=aln⁡cln⁡b=exp⁡(ln⁡a ln⁡cln⁡b)=exp⁡(ln⁡a ln⁡cln⁡b).\begin{aligned} a^{\log_b c} &=a^{\frac{\ln c}{\ln b}}\\ &=\exp\left(\ln a\,\frac{\ln c}{\ln b}\right)\\ &=\exp\left(\frac{\ln a\,\ln c}{\ln b}\right). \end{aligned}

Do the same on the right:

clog⁡ba=cln⁡aln⁡b=exp⁡(ln⁡c ln⁡aln⁡b)=exp⁡(ln⁡c ln⁡aln⁡b).\begin{aligned} c^{\log_b a} &=c^{\frac{\ln a}{\ln b}}\\ &=\exp\left(\ln c\,\frac{\ln a}{\ln b}\right)\\ &=\exp\left(\frac{\ln c\,\ln a}{\ln b}\right). \end{aligned}

Since ln⁡a ln⁡c=ln⁡c ln⁡a\ln a\,\ln c=\ln c\,\ln a, the exponents are identical. Therefore,

alog⁡bc=clog⁡ba.a^{\log_b c}=c^{\log_b a}.

Another proof using a common base

Set u=log⁡bau=\log_b a and v=log⁡bcv=\log_b c. By the definition of logarithm, a=bua=b^u and c=bvc=b^v. Then

alog⁡bc=av=(bu)v=buv,a^{\log_b c}=a^v=(b^u)^v=b^{uv},

while

clog⁡ba=cu=(bv)u=bvu.c^{\log_b a}=c^u=(b^v)^u=b^{vu}.

Because uv=vuuv=vu, both sides equal buvb^{uv}. This proof highlights the same symmetry without converting to natural logarithms.

Worked example

Take a=4a=4, b=2b=2, and c=8c=8. The logarithms are exact integers:

log⁡28=3,log⁡24=2.\log_2 8=3,\qquad \log_2 4=2.

Thus

4log⁡28=43=64,4^{\log_2 8}=4^3=64,

and

8log⁡24=82=64.8^{\log_2 4}=8^2=64.

The example illustrates the identity, while the proof shows why it works for every admissible positive aa, bb, and cc.

Why the conditions matter

For a real logarithm log⁡bx\log_b x, its argument must be positive and its base must be positive and different from 11. Here the arguments are aa and cc, so both must be positive; the shared base bb must satisfy b>0b>0 and b≠1b\ne1. These conditions also make the real powers in the identity well-defined under the usual definition xr=exp⁡(rln⁡x)x^r=\exp(r\ln x) for x>0x>0.

There is no requirement that aa, bb, and cc be distinct. For example, aa may equal bb, or aa may equal cc, as long as the domain conditions still hold.

Common mistakes

  • Forgetting the logarithm base restrictions: log⁡1x\log_1 x is undefined, and real logarithms with a nonpositive base are not defined in the standard sense.
  • Allowing a nonpositive argument: If a≤0a\le0 or c≤0c\le0, one of the logarithms is not a real number.
  • Treating the equality as a special exponent rule: The key step is not a rule that freely swaps a base and exponent. It works here because change of base makes the exponent involve the symmetric product ln⁡a ln⁡c\ln a\,\ln c.
  • Changing only one side: To compare the expressions reliably, rewrite both logarithms or use the common-base substitution on both sides.

Spotted an error? Send a correction. Read how we write and check articles in our editorial policy.