Solving equations where x is in the power