1: \(9-\left(x-y\right)^2\)
\(=3^2-\left(x-y\right)^2\)
\(=\left(3-x+y\right)\left(3+x-y\right)\)
2: \(\left(x-y\right)^2-4\)
\(=\left(x-y\right)^2-2^2\)
\(=\left(x-y-2\right)\left(x-y+2\right)\)
3: \(\left(x+2\right)^2-y^2\)
\(=\left(x+2+y\right)\left(x+2-y\right)\)