Polynomials with four terms can sometimes be factored using a method called factoring by grouping. This method involves grouping the terms into two pairs and taking a common factor out of each pair, then taking a common binomial factor out of the two resulting terms.
\displaystyle ax + ay + bx + by | \displaystyle = | \displaystyle a\left(x + y\right) + b\left(x + y\right) |
\displaystyle = | \displaystyle \left(x+y\right)\left(a+b\right) |
Sometimes the terms will need to be rearranged before common factors can be taken out of each pair.
It is also possible to factor some polynomials with more than four terms using this method - for instance, a polynomial with six terms might be able to split into three pairs which each leave behind a common binomial.
Note that not every four-term polynomial is factorable in this way. For instance, the polynomial3x + 6y + x + 5zdoesn't have enough common factors between any possible pairing of terms.
Factor the expression 10 xy + 4x + 15y + 6.
Factor the expression 4a^{2} + 5ab - 8a - 10b.
Factor the expression 3x^{3} + 3x^{2} - 6x - 6.