In Section A.8, we learned how to multiply polynomials, such as when you start with \((x+2)(x+3)\) and obtain \(x^2+5x+6\text{.}\) This chapter, starting with this section, is about the opposite process—factoring. For example, starting with \(x^2+5x+6\) and obtaining \((x+2)(x+3)\text{.}\) We will start with the simplest kind of factoring: for example starting with \(x^2+2x\) and obtaining \(x(x+2)\text{.}\)
When you write \(x^2+2x\text{,}\) you have an algebraic expression built with two terms—two parts that are added together. When you write \(x(x+2)\text{,}\) you have an algebraic expression built with two factors—two parts that are multiplied together. Factoring is useful, because sometimes (but not always) having your expression written as parts that are multiplied together makes it easy to simplify the expression.
You’ve seen this with fractions. To simplify \(\frac{15}{35}\text{,}\) breaking down the numerator and denominator into factors is useful: \(\frac{3\cdot5}{7\cdot5}\text{.}\) Now you can see that the factors of \(5\) cancel.
There are other reasons to appreciate the value in factoring. One reason is that there is a relationship between a factored polynomial and the horizontal intercepts of its graph. For example in the graph of \(y=(x+2)(x-3)\text{,}\) the horizontal intercepts are \((-2,0)\) and \((3,0)\text{.}\) Note the \(x\)-values are \(-2\) and \(3\text{,}\) and think about what happens when you subsitutue those numbers in for \(x\) in \(y=(x+2)(x-3)\text{.}\) We will explore this more fully in Section 9.
Subsection2.1.2Identifying the Greatest Common Factor
The most basic technique for factoring involves recognizing the greatest common factor between two expressions, which is the largest factor that goes in evenly to both expressions. For example, the greatest common factor between \(6\) and \(8\) is \(2\text{,}\) since \(2\) divides nicely into both \(6\) and \(8\) and no larger number would divide nicely into both \(6\) and \(8\text{.}\)
Similarly, the greatest common factor between \(4x\) and \(3x^2\) is \(x\text{.}\) If you write \(4x\) as a product of its factors, you have \(2\cdot 2 \cdot x\text{.}\) And if you fully factor \(3x^2\text{,}\) you have \(3\cdot x\cdot x\text{.}\) The only factor they have in common is \(x\text{,}\) so that is the greatest common factor. No larger expression goes in nicely to both expressions.
Since \(6x\) completely factors as \(\attention{2}\cdot3\cdot \attention{x}\) ... and \(8x\) completely factors as \(\attention{2}\cdot2\cdot2\cdot \attention{x}\text{,}\) ...
Since \(14x^2\) completely factors as \(\attention{2}\cdot7\cdot \attention{x}\cdot x\) ... and \(10x\) completely factors as \(\attention{2}\cdot5\cdot \attention{x}\text{,}\) ...
Since \(6y^2\) completely factors as \(2\cdot3\cdot \attention{y}\cdot \attention{y}\) ... and \(7y^2\) completely factors as \(7\cdot\attention{y}\cdot\attention{y}\text{,}\) ...
Since \(12xy^2\) completely factors as \(2\cdot2\cdot\attention{3}\cdot \attention{x}\cdot \attention{y}\cdot y\) ... and \(9xy\) completely factors as \(\attention{3}\cdot3\cdot \attention{x}\cdot \attention{y}\text{,}\) ...
Subsection2.1.3Factoring Out the Greatest Common Factor
We have learned the distributive property: \(a(b+c)=ab+ac\text{.}\) Perhaps you have thought of this as a way to “distribute” the number \(a\) to each of \(b\) and \(c\text{.}\) In this section, we will use the distributive property in the opposite way. If you have an expression \(ab+ac\text{,}\) it is equal to \(a(b+c)\text{.}\) In that example, we factored out \(a\text{,}\) which is the common factor between \(ab\) and \(ac\text{.}\)
For each term from the original expression, what would you multiply the greatest common factor by to result in that term? Write your answer in the parentheses.
To check that this is correct, multiplying through \(3(x^3+x^2-3)\) should give the original expression \(3x^3+3x^2-9\text{.}\) We check this, and it does.
Note that you might fail to recognize that \(4x\) is the greatest common factor. At first you might only find that, say, \(4\) is a common factor. This is OK—you can factor out the \(4\) and continue from there:
Subsection2.1.5More Examples of Factoring out the Common Factor
Previous examples did not cover every nuance with factoring out the greatest common factor. Here are a few more factoring examples that attempt to do so.
First, we identify the common factor. The number \(5\) is the greatest common factor of the three coefficients (which were \(-35\text{,}\)\(5\text{,}\) and \(-10\)) and also \(m^3\) is the largest expression that divides \(m^5\text{,}\)\(m^4\text{,}\) and \(m^3\text{.}\) Therefore the greatest common factor is \(5m^3\text{.}\)
In this example, the leading term is a negative number. When this happens, we will make it common practice to take that negative as part of the greatest common factor. So we will proceed by factoring out \(-5m^3\text{.}\) Note the signs change inside the parentheses.
Notice that the terms are not in a standard order, with powers of \(n\) decreasing as you read left to right. It is usually a best practice to rearrange the terms into the standard order first.
The number \(7\) divides all of the numerical coefficients. Separately, no power of \(n\) is part of the greatest common factor because the \(14\) term has no \(n\) factors. So the greatest common factor is just \(7\text{.}\) We proceed by factoring that out:
There are two variables in this polynomial, but that does not change the factoring strategy. The greatest numerical factor between the three terms is \(4\text{.}\) The variable \(a\) divides all three terms, and \(b^2\) divides all three terms. So we have:
There are no common factors in those two terms (unless you want to count \(1\) or \(-1\text{,}\) but we do not count these for the purposes of identifying a greatest common factor). In this situation we can say the polynomial is prime or irreducible, and leave it as it is.
There are no common factors in those three terms, and it would be correct to state that this polynomial is prime or irreducible. However, since its leading coefficient is negative, it may be wise to factor out a negative sign. So, it could be factored as \(-\mathopen{}\left(x^3-2x-18\right)\mathclose{}\text{.}\) Note that every term is negated as the leading negative sign is extracted.