Sub topic 5
Factoring Out the Greatest Common Factor
This chapter assumes you can expand products with the distributive property, work with integer exponents, and find the greatest common factor of two whole numbers. Factoring out the greatest common factor (GCF) is the first step in almost every factoring problem. It also appears directly on the GRE, usually inside a larger expression.
What factoring out the GCF means
Factoring is the reverse of expanding. The distributive property says:
a(b + c) = ab + ac
Reading this right to left gives the factoring move. If every term of a sum shares the same factor, you can pull that factor out front and leave the rest in parentheses.
The GCF of a set of terms is the largest expression that divides every term evenly. It has two parts:
- The numerical part is the greatest common factor of the coefficients.
- The variable part is each variable that appears in every term, raised to the smallest exponent it has in any term.
Take 12x³ + 18x². The coefficients 12 and 18 have GCF 6. The variable x appears with exponents 3 and 2, so the smallest is 2. The GCF is 6x², and:
12x³ + 18x² = 6x²(2x + 3)
A reliable procedure
- Find the GCF of the coefficients.
- For each variable present in every term, take the lowest exponent.
- Multiply these to get the GCF.
- Divide each term by the GCF and write the quotients inside parentheses.
- Expand your answer mentally to check that it reproduces the original.
Worked examples
Example 1: Several variables
Factor 20a²b³ − 30ab² + 10ab.
- Coefficients 20, 30, 10 have GCF 10.
- The variable a appears in all three terms, with lowest exponent 1.
- The variable b appears in all three terms, with lowest exponent 1.
- The GCF is 10ab.
Dividing each term by 10ab gives 2ab², −3b, and 1:
20a²b³ − 30ab² + 10ab = 10ab(2ab² − 3b + 1)
Notice the final term. When a term equals the GCF, dividing leaves 1, not 0. Forgetting that 1 is the most common error in this topic.
Example 2: Factoring out a negative
Factor −6x² − 9x. You may pull out 3x or −3x. Pulling out −3x is often more useful because it makes the leading term inside the parentheses positive:
−6x² − 9x = −3x(2x + 3)
Every sign inside the parentheses flips relative to the original terms when you factor out a negative.
Example 3: A whole expression as the common factor
The common factor can be a parenthesized expression. Factor 5(x + 2) + x(x + 2). Both terms contain (x + 2):
5(x + 2) + x(x + 2) = (x + 2)(5 + x)
This pattern matters later, because factoring by grouping depends on it.
Checking your work in code
You can test a factorization by comparing both forms on several values. Because a polynomial identity must hold for every input, a few varied test values catch most mistakes.
def original(x):
return 12 * x ** 3 + 18 * x ** 2
def factored(x):
return 6 * x ** 2 * (2 * x + 3)
for x in [-3, -1, 0, 1, 2, 5]:
assert original(x) == factored(x)
# Terms equal to the GCF leave 1, not 0
def original2(a, b):
return 20 * a ** 2 * b ** 3 - 30 * a * b ** 2 + 10 * a * b
def factored2(a, b):
return 10 * a * b * (2 * a * b ** 2 - 3 * b + 1)
for a, b in [(1, 1), (2, -3), (-4, 5), (0, 7)]:
assert original2(a, b) == factored2(a, b)
print("factorizations check out")Using the GCF to evaluate and compare
On the GRE, factoring often replaces heavy arithmetic. Consider 7⁵ − 7⁴. Computing each power is slow. Instead, factor out 7⁴:
7⁵ − 7⁴ = 7⁴(7 − 1) = 6 · 7⁴
The same idea simplifies 2¹⁰ + 2⁹ = 2⁹(2 + 1) = 3 · 2⁹. In a quantitative comparison, this turns a messy difference into a product you can compare at a glance.
A related use is simplifying a fraction. In (6x² + 9x) / (3x), factoring the numerator gives 3x(2x + 3), so the fraction becomes 2x + 3, provided x ≠ 0. A later chapter on rational expressions builds on this.
Common errors
| Error | Why it is wrong | Correct approach |
|---|---|---|
| 4x + 8 = 4(x + 8) | The 8 was not divided by 4 | 4(x + 2) |
| 9x² + 3x = 3x(3x) | The term 3x leaves 1, not 0 | 3x(3x + 1) |
| 6x³ + 4x² = 2x(3x² + 2x) | Not the greatest factor, so factoring is incomplete | 2x²(3x + 2) |
| Using the highest exponent | The GCF takes the lowest exponent | x² from x³ and x² |
| Cancelling a term, such as (x + 5)/5 = x | You can cancel only common factors, not terms | Leave as is, or split into x/5 + 1 |
Edge cases
- No common factor. If the GCF is 1, the expression is already factored with respect to this method. For example, x² + 5 has no common factor.
- Common factor is a variable only. In x⁴ + x², the coefficients are both 1, so the GCF is x², giving x²(x² + 1).
- A variable missing from one term. Include a variable in the GCF only if it appears in every term. In 3xy + 6x, the GCF is 3x, not 3xy.
- Zero as a solution. When you use the GCF to solve an equation such as x² = 5x, do not divide both sides by x. That loses the solution x = 0. Move everything to one side and factor: x² − 5x = 0, so x(x − 5) = 0, giving x = 0 or x = 5. The zero product property covers this in a later chapter.
Where this leads
The GCF is the entry point to the rest of the factoring toolkit. It feeds into factoring by grouping and general trinomials, and it appears again in simplifying rational expressions. In each case, check for a common factor before anything else.
Exercise
Factor completely: 15x³y² − 25x²y³ + 5x²y. Then state what the third term inside the parentheses is.
Show answer
The coefficients 15, 25, 5 have GCF 5. The variable x has lowest exponent 2, and y has lowest exponent 1. The GCF is 5x²y. Dividing each term gives 3xy, −5y², and 1, so the result is 5x²y(3xy − 5y² + 1). The third term inside the parentheses is 1, because the last term equals the GCF.
Exercise
Quantity A is 3⁸ − 3⁷. Quantity B is 2 · 3⁷. Which quantity is greater, or are they equal?
Show answer
Factor out 3⁷: 3⁸ − 3⁷ = 3⁷(3 − 1) = 2 · 3⁷. The quantities are equal.
Exercise
Why is x² = 7x not correctly solved by dividing both sides by x, and what is the correct solution set?
Show answer
Dividing by x assumes x ≠ 0 and discards the solution x = 0. Instead, write x² − 7x = 0, factor to x(x − 7) = 0, and conclude x = 0 or x = 7.