Với \(x\ne0;x\ne-1\)
\(A=\frac{x}{x+1}-\frac{2}{x}+\frac{2}{x^2+x}\)
\(=\frac{x^2-2x-2+2}{x\left(x+1\right)}=\frac{x^2-2x}{x\left(x+1\right)}=\frac{x-2}{x+2}\)
Ta có : \(\left|A\right|=\left|\frac{x-2}{x+2}\right|=\frac{1}{2}\)
* TH1 : \(\frac{x-2}{x+2}=\frac{1}{2}\Rightarrow2x-4=x+2\Leftrightarrow x=6\)( tm )
* TH2 : \(\frac{x-2}{x+2}=-\frac{1}{2}\Rightarrow2x-4=-x-2\Leftrightarrow3x=2\Leftrightarrow x=\frac{2}{3}\)