(x^2+2x+3)/(x+1)-(x^2-x+8)/(x-2)
=(x^2+2x+1+2)/(x+1)-(x^2-x-2+10)/(x-2)
=[(x+1)^2+2]/(x+1)-[(x-2)(x+1)+10]/(x-2)
=x+1+2/(x+1)-(x+1)-10/(x-2)
=2/(x+1)-10/(x-2)
=(2x-4-10x-10)/(x+1)(x-2)
=(-8x-14)/(x+1)(x-2)
(x^2+2x+3)/(x+1)-(x^2-x+8)/(x-2)
=(x^2+2x+1+2)/(x+1)-(x^2-x-2+10)/(x-2)
=[(x+1)^2+2]/(x+1)-[(x-2)(x+1)+10]/(x-2)
=x+1+2/(x+1)-(x+1)-10/(x-2)
=2/(x+1)-10/(x-2)
=(2x-4-10x-10)/(x+1)(x-2)
=(-8x-14)/(x+1)(x-2)