the basic rule is ...
when the numerator has a degree the degree of the denominator, divide the fraction.
this can be done with long division (as shown below), or the "shortcut" shown by mr. F
the quotient isCode:........1 ---------- x^2+1 | x^2 ........x^2 + 1 ..... ----------- ........... - 1