* Với \(x\ge-5\) thì biểu thức \(\left|x+5\right|=3x+1\) trở thành:
\(x+5=3x+1\)
\(\Rightarrow5-1=3x-x\)
\(\Rightarrow4=2x\)
\(\Rightarrow x=\frac{4}{2}\)
\(\Rightarrow x=2\) ( thỏa mãn ĐK )
* Với \(x< -5\) thì biểu thức \(\left|x+5\right|=3x+1\) trở thành:
\(-\left(x+5\right)=3x+1\)
\(\Rightarrow-x-5=3x+1\)
\(\Rightarrow-5-1=3x+x\)
\(\Rightarrow-6=4x\)
\(\Rightarrow x=\frac{-6}{4}\)
\(\Rightarrow x=\frac{-3}{2}\) ( không thỏa mãn ĐK )
Vậy x = 2.