Giải phương trình tích, hoặc là x-3=0 (x=3) hoặc là 2x+1=0 (x=-1/2)
\(\left(x-3\right)\left(2x+1\right)=0\)
\(\Leftrightarrow\left[{}\begin{matrix}x-3=0\\2x+1=0\end{matrix}\right.\Leftrightarrow\left[{}\begin{matrix}x=3\\x=-\dfrac{1}{2}\end{matrix}\right.\)
Vậy \(S=\left\{3;-\dfrac{1}{2}\right\}\)

