Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I can see that $1 - ab - cd + abcd$ factors to $(1-cd)(1-ab)$ but only because I tried a lot of different factors in a trial and error method, so it took me a while. I was wondering what the pattern to observe is and what the general/efficient method for factoring something like this is?

share|cite|improve this question
$1-ab-cd-abcd$ does not factor to $(1-cd)(1-ab)$, because $(1-cd)(1-ab)=1-ab-cd+abcd$. – Florian Mar 21 '12 at 12:32
@Florian: Woops, typo. Thanks. (fixed) – stariz77 Mar 21 '12 at 12:34
how about 1(1-ab) - cd(1-ab); then factor out a (1-ab) to get (1-ab)(1-cd)? – Ben Mar 21 '12 at 12:41
I guess practice more problems then you'll see – Kirthi Raman Mar 21 '12 at 12:43
The pattern to observe would probably be $(1-x)(1-y)=1-x-y+xy$. – Dejan Govc Mar 21 '12 at 12:54
up vote 3 down vote accepted

The steps are usually called "factoring by grouping." As all factoring is basically educated trial-and-error, you should be encouraged that you found the correct factorization. Anyway, here's more detail about factoring by grouping:

$$ \begin{align*} 1 - ab - cd + abcd &= (1-ab) - (cd - abcd) \\ &= (1-ab) - cd(1 - ab) \\ &= (1-ab)(1-cd). \end{align*} $$ The crucial steps are: finding groups that look very similar -- with a goal of factoring a gcd from each group. If each group now contains the same expression in parentheses, then that expression can be factored out.

Hope this helps!

share|cite|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.