1) \(x^2-4xy+4y^2+xz-2yz\)
\(=\left(x^2-4xy+4y^2\right)+\left(xz-2yz\right)\)
\(=\left(x-2y\right)^2+z\left(x-2y\right)\)
\(=\left(x-2y\right)\left(x-2y+z\right)\)
2) \(\left(x-y\right)^3+\left(x+y\right)^3\)
\(=\left[\left(x-y\right)+\left(x+y\right)\right]\left[\left(x-y\right)^2-\left(x-y\right)\left(x+y\right)+\left(x+y\right)^2\right]\)
\(=\left(x-y+x+y\right)\left(x^2-2xy+y^2-x^2+y^2+x^2+2xy+y^2\right)\)
\(=2x\left(x^2+3y^2\right)\)