a/ \(\left(x+y\right)^2-8\left(x+y\right)+12\)
\(=\left(x+y\right)\left(x+y-8+12\right)\)
\(=\left(x+y\right)\left(x+y+4\right)\)
==========
b/\(\left(x^2+2x\right)^2-2x^2-4x-3\)
\(=\left(x^2+2x\right)^2-\left(2x^2+4x\right)-3\)
\(=\left(x^2+2x\right)^2-2\left(x^2+2x\right)-3\)
\(=\left(x^2+2x\right)\left(x^2+2x-5\right)\)
===========
c/ \(\left(x^2+x\right)^2-2\left(x^2+x\right)-15\)
\(=\left(x^2+x\right)\left(x^2+x-2-15\right)\)
\(=\left(x^2+x\right)\left(x^2+x-17\right)\)
[---]