If a^{x} = b, you want to write x in terms of a & b, x = log_{a}b. It is read as log b to the base a.

Logarithm is not defined for zero and for negative numbers.