Ta có: \(\left(x-3\right)^2-3x+9=0\)
\(\Leftrightarrow\left(x-3\right)^2-3\left(x-3\right)=0\)
\(\Leftrightarrow\left(x-3\right)\left(x-3-3\right)=0\)
\(\Leftrightarrow\left(x-3\right)\left(x-6\right)=0\)
\(\Leftrightarrow\left[{}\begin{matrix}x-3=0\\x-6=0\end{matrix}\right.\Leftrightarrow\left[{}\begin{matrix}x=3\\x=6\end{matrix}\right.\)
Vậy: \(x\in\left\{3;6\right\}\)