\(=\left[\left(3x-2\right)\left(x+1\right)-\left(2x+5\right)\left(x-1\right)\left(x+1\right)\right]:\left(x+1\right)\)
\(=\left(x+1\right)\left[\left(3x-2\right)-\left(2x+5\right)\left(x-1\right)\right]:\left(x+1\right)\)
\(=\left(3x-2\right)-\left(2x+5\right)\left(x-1\right)\)