>>444
x+2=A とおく

 x^2(x+2)+(x+2)=(x^2)*A+A=A*(x^2+1)=(x+2)*(x^2+1)