\(=\dfrac{2x}{x-1}-\dfrac{\left(x-1\right)\left(x^2+x+1\right)+3x\left(x-1\right)}{2x\left(x+1\right)}\cdot\dfrac{-4x}{\left(x-1\right)^2}-\dfrac{4x^2}{\left(x-1\right)\left(x+1\right)}\)
\(=\dfrac{2x}{x-1}-\dfrac{x^2+4x+1}{x+1}\cdot\dfrac{-2}{x-1}-\dfrac{4x^2}{\left(x+1\right)\left(x-1\right)}\)
\(=\dfrac{2x^2+2x+2x^2+8x+2-4x^2}{\left(x-1\right)\left(x+1\right)}\)
\(=\dfrac{10x+2}{\left(x-1\right)\left(x+1\right)}\)