X & # 179; + 5x & # 178; + 7x + 3 decomposes the factor to get?

X & # 179; + 5x & # 178; + 7x + 3 decomposes the factor to get?

X^3+5x^2+7x+3
=X^3+5x^2+6x+x+3
=x(x^2+5x+6)+(x+3)
=x(x+2)(x+3)+(x+3)
=(x^2+2x+1)(x+3)
=(x+3)(x+1)^2