Sử dụng hằng đẳng thức \(a^3-b^3=\left(a-b\right)^3+3ab\left(a-b\right)\)
\(\Leftrightarrow2^3+3\left(x+3\right)\left(x-1\right).2=56\)
\(\Leftrightarrow\left(x+3\right)\left(x+1\right)-8=0\)
\(\Leftrightarrow x^2+4x-5=0\)
\(\Leftrightarrow\left(x-1\right)\left(x+5\right)=0\Leftrightarrow\left[{}\begin{matrix}x=1\\x=-5\end{matrix}\right.\)