có 2 trường hợp:
+TH1:
x=2 => (2-1)2+2=(2-1)2+6= 13=17=1
=TH2:
x=1 => (1-1)1+2=(1-1)1+6=03=07=0
Taco:\(\left(x-1\right)^{x+2}=\left(x-1\right)^{x+6}=>\left(x-1\right)^{x+2}-\left(x-1\right)^{x+6}=0\)=>\(\left(x-1\right)^{x+2}.\left(1-\left(x-1\right)^4\right)=0\)
=>\(\left[{}\begin{matrix}\left(x-1\right)^2=0\\1-\left(x-1\right)^4=0\end{matrix}\right.=>\left[{}\begin{matrix}x-1=0\\\left(x-1\right)^4=1\end{matrix}\right.=>\left[{}\begin{matrix}x=1\\x-1=\pm1\end{matrix}\right.\)=>\(\left[{}\begin{matrix}x=1\\x=0\\x=2\end{matrix}\right.\)