\(x^2-2xy+y^2-z^2\)
\(=\left(x-y\right)^2-z^2\)
\(=\left(x-y-z\right)\left(x-y+z\right)\)
\(x^2-2xy+y^2-z^2\)
\(=\left(x^2-xy\right)+\left(x-y\right)\)
\(=x\left(x-y\right)+\left(x-y\right)\)
\(=\left(x-y\right)\left(x+1\right)\)
(x2-2xy+y2)-z2
<=>(x-y)2-z2
<=>(x-y-z)(x-y+z)