\(x^3-8x^2+21x-18=0\)
\(\Leftrightarrow x^3-2x^2-6x^2+12x+9x-18=0\)
\(\Leftrightarrow\left(x-2\right)\left(x^2-6x+9\right)=0\)
\(\Leftrightarrow\left(x-2\right)\left(x-3\right)^2=0\)
\(\Leftrightarrow\orbr{\begin{cases}x-2=0\\x-3=0\end{cases}}\)\(\Leftrightarrow\orbr{\begin{cases}x=2\\x=3\end{cases}}\)
\(x^3-8x^2+21x-18=0\)
\(\left(x^2-6x+9\right)\left(x-2\right)=0\)
\(\left(x-3\right)^2\left(x-2\right)=0\)
\(\Rightarrow\orbr{\begin{cases}x-3=0\\x-2=0\end{cases}\Rightarrow\orbr{\begin{cases}x=3\\x=2\end{cases}}}\)