Solve the equation, eliminating any extraneous solutions.