\(\left(x-1\right)^{x+2}=\left(x-1\right)^{x+4}\)
\(\Rightarrow\left(x-1\right)^{x+2}-\left(x-1\right)^{x+4}=0\)
\(\Rightarrow\left(x-1\right)^{x+2}.\left[1-\left(x-1\right)^2\right]=0\)
\(\Rightarrow\left[{}\begin{matrix}\left(x-1\right)^{x+2}=0\\1-\left(x-1\right)^2=0\end{matrix}\right.\Rightarrow\left[{}\begin{matrix}x-1=0\\\left(x-1\right)^2=1\end{matrix}\right.\Rightarrow\left[{}\begin{matrix}x=1\\x-1=1\\x-1=-1\end{matrix}\right.\)
\(\Rightarrow\left[{}\begin{matrix}x=1\\x=1+1\\x=\left(-1\right)+1\end{matrix}\right.\Rightarrow\left[{}\begin{matrix}x=1\\x=2\\x=0\end{matrix}\right.\)
Vậy \(x\in\left\{1;2;0\right\}.\)
Chúc bạn học tốt!