Chú ý:
\(\left(x^2+2x\right)^2+4\left(x+1\right)^2=\left(x^2+2x\right)^2+4\left(x^2+2x+1\right)=\left(x^2+2x\right)^2+4\left(x^2+2x\right)+4\)
\(=\left(x^2+2x+2\right)^2\)
\(x^2+\left(x+1\right)^2+\left(x^2+x\right)^2\)
\(=\left(x^2+x\right)+x^2+x^2+2x+1\)
\(=\left(x^2+x\right)^2+2x^2+2x+1\)
\(=\left(x^2+x\right)^2+2\left(x^2+x\right)+1\)
\(=\left(x^2+x+1\right)^2\)