MathorynMathematical Formula Database

Logarithms & Exponents

Base–Exponent Swap Identity

This identity lets you exchange the base and the argument of a power whose exponent is a logarithm, since both sides have the same logarithm log⁡ba⋅log⁡bc\log_b a\cdot\log_b c. It is used to simplify such expressions and in algorithm analysis, for example nlog⁡23=3log⁡2nn^{\log_2 3}=3^{\log_2 n}.

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

Variables

a, ca,\ c
positive numbers
bb
positive base, b ≠ 1

Example

Evaluate 4log⁡234^{\log_2 3}.

  1. 4log⁡23=3log⁡24=324^{\log_2 3}=3^{\log_2 4}=3^2.

Answer: 99.

Related formulas