\(E=\left[\left(\dfrac{3}{x+1}-\dfrac{x}{x^2+2x+1}\right):\dfrac{2x^2+3x}{x^2+7x}+\dfrac{3}{x+1}\right].\dfrac{x^2+x}{3x+1}\)
\(=\left[\left(\dfrac{3}{x+1}-\dfrac{x}{\left(x+1\right)^2}\right):\dfrac{2x^2+3x}{x^2+7x}+\dfrac{3}{x+1}\right].\dfrac{x^2+x}{3x+1}\)
\(=\left[\left(\dfrac{2x+3}{\left(x+1\right)^2}\right):\dfrac{2x^2+3x}{x^2+7x}+\dfrac{3}{x+1}\right].\dfrac{x^2+x}{3x+1}\)
\(=\left[\dfrac{x^2+7x}{x\left(x+1\right)^2}+\dfrac{3}{x+1}\right].\dfrac{x^2+x}{3x+1}\)
\(=\dfrac{2x\left(2x+5\right)}{x\left(x+1\right)^2}.\dfrac{x^2+x}{3x+1}\)
\(=\dfrac{2x\left(2x+5\right)}{x\left(x+1\right)^2}.\dfrac{x^2+x}{3x+1}=\dfrac{2x\left(2x+5\right)}{\left(x+1\right)\left(3x+1\right)}\)