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