\(\left(x-1\right)^{x+2}=\left(x-1\right)^{x+6}\Leftrightarrow\left(x-1\right)^{x+6}-\left(x-1\right)^{x+2}=0\)
\(\Leftrightarrow\left(x-1\right)^{x+2}\left(\left(x-1\right)^4-1\right)=0\)
=> x -1 =0 => x =1
hoặc (x-1)4 =1 => x -1 =1 => x =2
hoặc x -1 =-1 => x =0
Vậy x thuộc { 0;1;2}
(x-1)x+2 = (x-1)x+6
=> (x-1)x . (x-1)2 = (x-1)x . (x-1)6
=> (x-1)2 = (x-1)6
=> (x-1)6:(x-1)2 = 1
=> (x-1)4 = 1
=> (x-1)4 = 14 hoac (-1)4
=> x = 2 hoac 0
Vay: x = 2 hoac x=0