How to factor polynomials by grouping

When a polynomial has four terms, two terms at a time may have something in common. We’ll factor each pair first and see whether the same expression is left in both groups.

Factor a pair of terms at a time

In 11z+11qr+pyz+pyqr, the first pair shares 11, and the second pair shares py. After we factor those out, both groups contain the same binomial, z+qr.

(11z+11qr)+(pyz+pyqr)=11(z+qr)+py(z+qr)=(11+py)(z+qr)

We could also group the qr terms and the z terms first. That gives qr(11+py)+z(11+py), then (qr+z)(11+py). The factors are the same, with their order changed.

Keep the signs inside each group

For pqx2-psx+qrx-rs, the first group has a common factor of px. The second group has a common factor of r. Both leave qx-s.

(pqx2-psx)+(qrx-rs)=px(qx-s)+r(qx-s)=(px+r)(qx-s)

If the expressions in parentheses differ only by a sign, take a negative common factor from one group. For example, x2-3x-x+3=x(x-3)-(x-3), which gives (x-1)(x-3).

Split the middle term of a quadratic

For an integer quadratic ax2+bx+c, look for two integers that multiply to ac and add to b. To see why, multiply (px+r)(qx+s). The two middle terms have coefficients ps and qr. Their sum is b, and their product is (pq)(rs)=ac.

For 11x2+13x+2, we need a product of 22 and a sum of 13. The pair 2 and 11 works, so write 13x as 2x+11x.

11x2+2x+11x+2=x(11x+2)+1(11x+2)=(x+1)(11x+2)

Multiply those factors to check. The middle terms are 2x and 11x, so they give the original 13x.