Cancel
Cancel[expr] cancels out common factors in the numerator and denominator of expr.
Examples
Cancel common factors:
Cancel[(x^2 - 1)/(x - 1)]
(* x + 1 *)Cancel[(x^2 + 2x + 1)/(x + 1)]
(* x + 1 *)Please visit the official Wolfram Language Reference for more details.