# How do you factor completely ax – ay + x^2 – xy?

Apr 29, 2016

$\text{ } \left(x - y\right) \left(a + x\right)$

#### Explanation:

These are not always easy to spot!

Group as:$\text{ } \left(a x - a y\right) + \left({x}^{2} - x y\right)$

Factoring out common values from each bracket

$\text{ } a \left(x - y\right) + x \left(x - y\right)$

Again factor out but this time factor out $\left(x - y\right)$

$\text{ } \left(x - y\right) \left(a + x\right)$