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