X^2(X+Y)^2-12X(X+Y)^2+36(X+Y)^2-(X+Y)^4
=(x+y)^2*[x^2-12x+36-(x+y)^2]
=(x+y)^2*[(x-6)^2-(x+y)^2]
=(x+y)^2*[(x-6)-(x+y)]*[(x-6)+(x+y)]
=-(x-6)(2x+y-6)(x+y)^2
X^2(X+Y)^2-12X(X+Y)^2+36(X+Y)^2-(X+Y)^4
=(x+y)^2*[x^2-12x+36-(x+y)^2]
=(x+y)^2*[(x-6)^2-(x+y)^2]
=(x+y)^2*[(x-6)-(x+y)]*[(x-6)+(x+y)]
=-(x-6)(2x+y-6)(x+y)^2