How to solve an exponential equation