Simplifying algebraic fractions and restrictions