This section covers a technique for factoring polynomials like , which factors as . If there are four terms, the technique in this section might help you to factor the polynomial. Additionally, this technique is a stepping stone to a factoring technique in Section 3 and Section 4.
In this last example, we factored out the binomial factor . Factoring out binomials is the essence of this section, so let’s see that a few more times:
The truth is you are unlikely to come upon an expression like , as in these examples. Why wouldn’t someone have multiplied that out already? Or factored it all the way? So far in this section, we have only been looking at a stepping stone to a real factoring technique called factoring by grouping.
Suppose we must factor . Note that there are four terms, and they are written in descending order of the powers of . “Grouping” means to group the first two terms and the last two terms together:
And so we have factored as . But to be sure, if we multiply this back out, it should recover the original . To confirm your factoring is correct, you should always multiply out your factored result to check that it matches the original polynomial.
Factor . This example has a complication with negative signs. If we try to break up this polynomial into two groups as , then we’ve made an error! In that last expression, we are subtracting a group with the term , so overall it subtracts . The original polynomial added, so we are off course.
Now we can proceed to factor out common factors from each group. Since the second group leads with a negative coefficient, we’ll factor out . This will result in the “” becoming “.”
Unfortunately, this technique is not guaranteed to work on every polynomial with four terms. In fact, most randomly selected four-term polynomials will not factor using this method and those selected here should be considered “nice.” Here is an example that will not factor with grouping:
In this example, at the step where we hope to see the same binomial appearing twice, we see two different binomials. It doesn’t mean that this kind of polynomial can’t be factored, but it does mean that “factoring by grouping” is not going to help. This polynomial actually factors as . So the fact that grouping fails to factor the polynomial doesn’t tell us whether or not it is prime.