how to take the log of both sides of an exponential equation