a) \(x\left(x+5\right)=0\Leftrightarrow\left[{}\begin{matrix}x=0\\x+5=0\end{matrix}\right.\Leftrightarrow\left[{}\begin{matrix}x=0\\x=-5\end{matrix}\right.\)
Vậy \(S=\left\{0;-5\right\}\).
b) \(3x\left(x-1\right)=1-x\)
\(\Leftrightarrow3x\left(x-1\right)-1+x=0\)
\(\Leftrightarrow3x^2-3x-1+x=0\)
\(\Leftrightarrow\left[{}\begin{matrix}3x-1=0\\x-1=0\end{matrix}\right.\Leftrightarrow\left[{}\begin{matrix}x=-\dfrac{1}{3}\\x=1\end{matrix}\right.\)
Vậy \(S=\left\{-\dfrac{1}{3};1\right\}\).