is this correct way of solving an exponential equation?