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