Solving Equations Involving Rational Expressions