\(\left(x-1\right)\left(x+5\right)=x^2+4x-5\)(1)
\(x\left(x+4\right)=x^2+4x\)(2)
Lấy (1) nhân (2) \(\Leftrightarrow y.\left(y-5\right)=84\Leftrightarrow y^2-5y+\left(\frac{5}{2}\right)^2=84+\frac{25}{4}=\left(\frac{19}{2}\right)^2\)
\(\orbr{\begin{cases}y=\frac{5-19}{2}=-7\left(loai\right)\\y=\frac{5+19}{2}=12\end{cases}}\)
\(x^2+4x=12\Leftrightarrow\left(x+2\right)^2=16\Rightarrow\orbr{\begin{cases}x=-6\\x=2\end{cases}}\)