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