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