Question 115666
{{{ax-ay+x^2-xy}}} Start with the given expression


{{{(ax-ay)+(x^2-xy)}}} Group like terms



{{{a(x-y)+x(x-y)}}} Factor out the GCF {{{a}}} out of the first group. Factor out the GCF {{{x}}} out of the second group



{{{(a+x)(x-y)}}} Since we have the common term {{{x-y}}}, we can combine like terms


So {{{ax-ay+x^2-xy}}} factors to {{{(a+x)(x-y)}}}