Dividing by a fraction is equivalent to multiply by its reciprocal, then:
Now, we need to express the quadratic polynomials using their roots, as follows:
where y1 and y2 are the roots.
Applying the quadratic formula to the first polynomial:
Applying the quadratic formula to the second polynomial:
Applying the quadratic formula to the third polynomial:
Applying the quadratic formula to the fourth polynomial:
Substituting into the rational expression and simplifying: