\(\frac{2xy-x^2+z^2-y^2}{-x^2+y-z^2+2xz}\)
\(=\frac{-\left[\left(x^2-2xy+y^2\right)-z^2\right]}{-\left[\left(x^2-2xz+z^2\right)-y\right]}\)
\(=\frac{-\left[\left(x-y\right)^2-z^2\right]}{-\left[\left(x-z\right)^2-y\right]}\)
\(=\frac{-\left(x-y-z\right)\left(x-y+z\right)}{-\left(x-z\right)^2+y}\)