Rewrite the equation as .

Rewrite as an equation.

Rewrite in exponential form using the definition of a logarithm. If and are positive real numbers and does not equal , then is equivalent to .

Create equivalent expressions in the equation that all have equal bases.

Since the bases are the same, the two expressions are only equal if the exponents are also equal.

The variable is equal to .

Solve for x log base 5 of 125=x