Is this your fraction (x+1)-(6/x) (I really wish I knew how to use the Latex)

If that is it you have (x+1)/1 which you need a common denominator for, thus multiply the top and bottom by x, so on top you have; x(x+1) which you can distribute, so its (x^2+x) then put that over x.

so now

((x^2+x)/x)-(6/x)

combine the tops and keep the bottoms the same so you have the fraction that is in your answer