a) \(ĐKXĐ:\hept{\begin{cases}x\ne0\\x\ne-1\end{cases}}\)
\(M=\left(\frac{x+2}{3x}+\frac{2}{x+1}-3\right):\frac{2-4x}{x+1}-\frac{3x-x^2+1}{3x}\)
\(=\left[\frac{\left(x+2\right)\left(x+1\right)}{3x\left(x+1\right)}+\frac{6x}{3x\left(x+1\right)}-\frac{9x\left(x+1\right)}{3x\left(x+1\right)}\right].\frac{x+1}{2-4x}+\frac{x^2-3x-1}{3x}\)
\(=\left[\frac{x^2+3x+2}{3x\left(x+1\right)}+\frac{6x}{3x\left(x+1\right)}-\frac{9x^2+9x}{3x\left(x+1\right)}\right].\frac{x+1}{2-4x}+\frac{x^2-3x-1}{3x}\)
\(=\frac{x^2+3x+2+6x-9x^2-9x}{3x\left(x+1\right)}.\frac{x+1}{2-4x}+\frac{x^2-3x-1}{3x}\)
\(=\frac{2-8x^2}{3x}.\frac{1}{2\left(1-2x\right)}+\frac{x^2-3x-1}{3x}\)
\(=\frac{2\left(1-4x^2\right)}{3x}.\frac{1}{2\left(1-2x\right)}+\frac{x^2-3x-1}{3x}\)
\(=\frac{2\left(1-2x\right)\left(1+2x\right)}{3x}.\frac{1}{2\left(1-2x\right)}+\frac{x^2-3x-1}{3x}\)
\(=\frac{1+2x}{3x}+\frac{x^2-3x-1}{3x}\)
\(=\frac{1+2x+x^2-3x-1}{3x}=\frac{x^2-x}{3x}=\frac{x\left(x-1\right)}{3x}=\frac{x-1}{3}\)
b) Với \(x=6013\)( thỏa mãn ĐKXĐ )
Thay \(x=6013\)vào biểu thức ta được:
\(M=\frac{6013-1}{3}=\frac{6012}{3}=2004\)