\(x\left(x+1\right)\left(x+6\right)-x^3=5x\)
\(\Leftrightarrow x\left(x^2+7x+6\right)-x^3-5x=0\)
\(\Leftrightarrow x^3+7x^2+6x-x^3-5x=0\)
\(\Leftrightarrow7x^2+x=0\)
\(\Leftrightarrow x\left(7x+1\right)=0\)
\(\Leftrightarrow\left[{}\begin{matrix}x=0\\7x+1=0\end{matrix}\right.\Leftrightarrow\left[{}\begin{matrix}x=0\\x=\dfrac{-1}{7}\end{matrix}\right.\)
Vậy phương trình đã cho có \(S=\left\{0;\dfrac{-1}{7}\right\}\)