Solving Equations with Rational Expressions