oh deary, the cancelling out of the denominator when both terms do not include it is an ultimately pet peeve for my maths teacher. Don't worry if you see your teacher spluttering in disbelief why some people do that, in front of the class, you would remember not to do that
x^2 (x-2) + 1 over...