how to solve logarithmic exponential equations