# How do you factor x^2-2x-xy+2y?

Sep 2, 2016

(x -y)(x-2)

#### Explanation:

${x}^{2} - 2 x - x y + 2 y$
=${x}^{2} - 2 x - \left(x y - 2 y\right)$
Factorise the first pair of terms and also the second pair
$x \left(x - 2\right) - y \left(x - 2\right)$
Factorise
$\left(x - y\right) \left(x - 2\right)$