1:
a: \(3x^2-3y^2-12x+12y\)
\(=3\left(x^2-y^2-4x+4y\right)\)
\(=3\left[\left(x^2-y^2\right)-\left(4x-4y\right)\right]\)
\(=3\left[\left(x-y\right)\left(x+y\right)-4\left(x-y\right)\right]\)
\(=3\left(x-y\right)\left(x+y-4\right)\)
b: \(x^2-6x-y^2+9\)
\(=\left(x^2-6x+9\right)-y^2\)
\(=\left(x-3\right)^2-y^2\)
\(=\left(x-3-y\right)\left(x-3+y\right)\)
2: \(\left(x+y+z\right)^2-x^2-y^2-z^2\)
\(=x^2+y^2+z^2+2xy+2yz+2xz-x^2-y^2-z^2\)
\(=2xy+2yz+2xz=2\left(xy+yz+xz\right)\)