$${ x }^{ 2 } y- { y }^{ 2 } z-x { y }^{ 2 } +xyz$$
Factor
$y\left(x-y\right)\left(x+z\right)$
Solution Steps
Factor out $y$.
$$y\left(x^{2}-yz-xy+xz\right)$$
Consider $x^{2}-yz-xy+xz$. Do the grouping $x^{2}-yz-xy+xz=\left(x^{2}-xy\right)+\left(xz-yz\right)$, and factor out $x$ in the first and $z$ in the second group.
$$x\left(x-y\right)+z\left(x-y\right)$$
Factor out common term $x-y$ by using distributive property.