(2x^2+5x-1)/(x+2)
=[(2x^2+8x+8)-3x-9]/(x+2)
=[2(x^2+4x+4)-3x-9]/(x+2)
=[2(x+2)^2-(3x+9)]/(x+2)
=2(x+2)^2/(x+2)-(3x+9)/(x+2)
=2(x+2)-(3x+9)/(x+2)
(2x^2+5x-1)/(x+2)
=[(2x^2+8x+8)-3x-9]/(x+2)
=[2(x^2+4x+4)-3x-9]/(x+2)
=[2(x+2)^2-(3x+9)]/(x+2)
=2(x+2)^2/(x+2)-(3x+9)/(x+2)
=2(x+2)-(3x+9)/(x+2)