\(\frac{x^2+6x+9}{\left(x-1\right)^2}.\frac{2x^2-4x-2}{4x^2+24x+36}\)
\(=\frac{x^2+6x+9}{\left(x-1\right)^2}.\frac{2x^2-4x-2}{4\left(x^2+6x+9\right)}\)
\(=\frac{1}{\left(x-1\right)^2}.\frac{2x^2-4x-2}{4}\)
\(=\frac{2x^2-4x-2}{4x^2-8x+4}\)
\(\frac{x^2+6x+9}{\left(x-1\right)^2}.\frac{2x^2-4x-2}{4x^2+24x+36}\)
\(=\frac{x^2+2\left(x\right)\left(3\right)+3^2}{\left(x-1\right)^2}.\frac{2x^2-4x-2}{4x^2+24x+36}\)
\(=\frac{\left(x+3\right)^2}{\left(x-1\right)^2}.\frac{2x^2+4x-2}{4x^2+24x+36}\)
\(=\frac{\left(x+3\right)^2}{\left(x-1\right)^2}.\frac{2\left(x^2-2x-1\right)}{4x^2+24x+36}\)
\(=\frac{\left(x+3\right)^2}{\left(x-1\right)^2}.\frac{2\left(x^2-2x-1\right)}{4\left(x^2+2\left(x\right)\left(3\right)+3^2\right)}\)
\(=\frac{1}{\left(x-1\right)^2}.\frac{2\left(x^2-2x-1\right)}{4}\)
\(=\frac{1.2\left(x^2-2x-1\right)}{\left(x-1\right)^2.4}\)
\(=\frac{2\left(x^2-2x-1\right)}{4\left(x-1\right)^2}\)
\(=\frac{x^2-2x-1}{2\left(x-1\right)^2}\)