\(2x+1=0\Leftrightarrow x=-\dfrac{1}{2}\);\(x-1=0\Leftrightarrow x=1\); \(x+2=0\Leftrightarrow x=-2\).
Vậy \(f\left(x\right)=0\) khi \(x=\dfrac{1}{2}\);
\(f\left(x\right)>0\) khi \(x\in\left(-2;-\dfrac{1}{2}\right)\cup\left(1;+\infty\right)\).
\(f\left(x\right)< 0\) khi \(x\in\left(-\infty;-2\right)\cup\left(-\dfrac{1}{2};1\right)\).