\(x^4-30x^2+31x-30=0\)
\(\Leftrightarrow x^4+x-30x^2+30x-30=0\)
\(\Leftrightarrow x\left(x^3+1\right)-30\left(x^2-x+1\right)=0\)
\(\Leftrightarrow x\left(x+1\right)\left(x^2-x+1\right)-30\left(x^2-x+1\right)=0\)
\(\Leftrightarrow\left(x^2-x+1\right)\left(x^2+x-30\right)=0\)
\(\Leftrightarrow\left(x^2-x+1\right)\left(x+6\right)\left(x-5\right)=0\)
Ta có: \(x^2-x+1=x^2-2.x.\dfrac{1}{2}+\dfrac{1}{4}+\dfrac{3}{4}=\left(x-\dfrac{1}{2}\right)^2+\dfrac{3}{4}\ge0\forall x\in R\)
\(\Rightarrow\left(x-5\right)\left(x+6\right)=0\)
\(\Leftrightarrow\left[{}\begin{matrix}x-5=0\\x+6=0\end{matrix}\right.\Leftrightarrow\left[{}\begin{matrix}x=5\\x=-6\end{matrix}\right.\)
Vậy, \(S=\left\{-6;5\right\}\)