Bài 2:
a: ĐKXĐ: \(x\notin\left\{0;-1;\dfrac{1}{2}\right\}\)
b: \(D=\left(\dfrac{x+2}{3x}+\dfrac{2}{x+1}-3\right):\dfrac{2-4x}{x+1}-\dfrac{3x-x^2+1}{3x}\)
\(=\dfrac{\left(x+2\right)\left(x+1\right)+6x-3\cdot3x\left(x+1\right)}{3x\left(x+1\right)}\cdot\dfrac{x+1}{2-4x}+\dfrac{x^2-3x-1}{3x}\)
\(=\dfrac{x^2+3x+2+6x-9x^2-9x}{3x}\cdot\dfrac{1}{2-4x}+\dfrac{x^2-3x-1}{3x}\)
\(=\dfrac{-8x^2+2}{3x}\cdot\dfrac{1}{-4x+2}+\dfrac{x^2-3x-1}{3x}\)
\(=\dfrac{-2\left(2x-1\right)\left(2x+1\right)}{3x\cdot\left(-2\right)\left(2x-1\right)}+\dfrac{x^2-3x-1}{3x}\)
\(=\dfrac{2x+1}{3x}+\dfrac{x^2-3x-1}{3x}\)
\(=\dfrac{2x+1+x^2-3x-1}{3x}=\dfrac{x^2-x}{3x}=\dfrac{x-1}{3}\)
c: Khi x=1 thì \(D=\dfrac{1-1}{3}=0\)