Lorenzo B. answered 10/26/23
Physics MS, Rice U Chemistry PhD, passionate Physics and Math Tutor
x^2/x-1 - 6/x-2 is the sum of two rational functions, so it is also a rational function.
One computes the minimum common denominator to bring that into a p(x)/q(x) form:
x^2/x-1 - 6/x-2 = (x^3 -2x^2 -6x +6)/(x-1)(x-2)