Ta có: \(\left(\dfrac{x+2}{3x}+\dfrac{2}{x+1}-3\right):\dfrac{2-4x}{x+1}\cdot\dfrac{3x}{x^2-3x-1}\)
\(=\left(\dfrac{\left(x+2\right)\left(x+1\right)}{3x\left(x+1\right)}+\dfrac{6x}{3x\left(x+1\right)}-\dfrac{9x\left(x+1\right)}{3x\left(x+1\right)}\right):\dfrac{2-4x}{x+1}\cdot\dfrac{3x}{x^2-3x-1}\)
\(=\dfrac{x^2+3x+2+6x-9x^2-9x}{3x\left(x+1\right)}\cdot\dfrac{x+1}{2-4x}\cdot\dfrac{3x}{x^2-3x-1}\)
\(=\dfrac{-8x^2+2}{3x\left(x+1\right)}\cdot\dfrac{x+1}{2-4x}\cdot\dfrac{3x}{x^2-3x-1}\)
\(=\dfrac{-2\left(4x^2-1\right)}{3x\cdot2\cdot\left(1-2x\right)}\cdot\dfrac{3x}{x^2-3x-1}\)
\(=\dfrac{2\left(1-2x\right)\left(2x+3\right)}{6x\left(1-2x\right)}\cdot\dfrac{3x}{x^2-3x-1}\)
\(=\dfrac{2x+3}{x^2-3x-1}\)