Đặt \(a=x^2+3x-4;b=3x^2+7x+4\)
Theo đề, ta có: \(a^3+b^3=\left(a+b\right)^3\)
\(\Leftrightarrow3ab\left(a+b\right)=0\)
\(\Leftrightarrow\left[{}\begin{matrix}\left(x+4\right)\left(x-1\right)=0\\\left(3x+4\right)\left(x+1\right)=0\\2x\left(2x+5\right)=0\end{matrix}\right.\Leftrightarrow x\in\left\{-4;1;-\dfrac{4}{3};-1;0;-\dfrac{5}{2}\right\}\)