Using logarithms to solve exponential equations