How to deal with the operation of fractions if the numerator denominator is a polynomial? What are the advantages?

How to deal with the operation of fractions if the numerator denominator is a polynomial? What are the advantages?

We should factorize the numerator and denominator first, and then reduce them. The advantage is that we can simplify the fraction!