Đặt \(x^2+3x+1=t\)
\(\Rightarrow\left(x^2+3x+1\right)\left(x^2+3x+2\right)-6=t.\left(t+1\right)-6\)
\(=t^2+t-6=\left(t^2-2t\right)+\left(3t-6\right)\)
\(=t\left(t-2\right)+3\left(t-2\right)=\left(t-2\right)\left(t+3\right)\)
\(=\left(x^2+3x+1-2\right)\left(x^2+3x+1+3\right)\)
\(=\left(x^2+3x-1\right)\left(x^2+3x+4\right)\)
\(A=\left(x^2+3x+1\right)\left(x^2+3x+2\right)-6\)
Đặt \(x^2+3x+1=a\)ta có :
\(a\left(a+1\right)-6\)
\(=a^2+a-6\)
\(=a^2+6a-a-6\)
\(=\left(a^2+6a\right)-\left(a+6\right)\)
\(=a\left(a+6\right)-\left(a+6\right)\)
\(=\left(a+6\right)\left(a-1\right)\)
Thay \(a=x^2+3x+1\)vào A ta có :
\(A=\left(x^2+3x+1+6\right)\left(x^2+3x+1-1\right)\)
\(=\left(x^2+3x+7\right)\left(x^2+3x\right)\)