\(\left(x+2\right)^2-x-2=0\)
\(\left(x+2\right)^2-\left(x+2\right)=0\)
\(\left(x+2\right).\left(x+1\right)=0\)
\(\Rightarrow\left[{}\begin{matrix}x=-2\\x=-1\end{matrix}\right.\)
<=> x^2 + 4x + 4 - x - 2 = 0 <=> x^2 + 3x +2 = 0
<=> (x+1)(x+2) = 0 => x=-1
x=-2