From the free course College Algebra on Lykke
1.5 Factoring Polynomials
Key concepts: Using the distributive property to expand and factor expressions · Factoring out the greatest common factor (GCF) · Factoring trinomials of the form x² + bx + c · Factoring trinomials with leading coefficients other than 1 by grouping · Recognizing and factoring perfect square trinomials · Factoring a difference of two squares · Factoring sums and differences of cubes · Factoring expressions with fractional or negative exponents · Checking factored expressions by multiplying with the distributive property · Recognizing prime polynomials that cannot be factored
By the end of this section the student can: Factor the greatest common factor of a polynomial; Factor a trinomial; Factor by grouping; Factor a perfect square trinomial; Factor a difference of squares; Factor the sum and difference of cubes; Factor expressions using fractional or negative exponents
1.5 Factoring Polynomials
Factoring reverses multiplication: instead of expanding a product into a polynomial, you rewrite the polynomial as a product of simpler expressions. The distributive property makes both directions possible:
$$ a(b+c)=ab+ac. $$
Reading from left to right expands an expression; reading from right to left factors it.
The Distributive Property and Factoring
For example,
$$ 3x(x+4)=3x^2+12x. $$
The factor $3x$ is distributed to both terms inside the parentheses. Factoring reverses the process:
$$ 3x^2+12x=3x(x+4). $$
A factored expression is useful because products reveal structure. Later, when solving polynomial equations, a product equal to zero can be analyzed factor by factor.
Key idea: Factoring is complete only when none of the remaining factors can be factored further over the intended number system.
Factoring Out the Greatest Common Factor
The greatest common factor, or GCF, of a polynomial is the largest expression that divides every term. The GCF may contain both a numerical factor and variable factors. Checking for a GCF should be the first step in every factoring problem.
To factor out a GCF:
- Find the GCF of the numerical coefficients.
- For each variable, choose the smallest exponent appearing in every term.
- Write the polynomial as the product of the GCF and the expression left after division.
- Factor the expression inside the parentheses further if possible.
- Check by using the distributive property.
Worked example: Factoring a GCF completely
Factor
$$ 6x^3y^3+45x^2y^2+21xy. $$
The GCF of the coefficients is
$$ \gcd(6,45,21)=3. $$
The smallest power of $x$ is $x^1=x$, and the smallest power of $y$ is $y^1=y$. Therefore,
$$ \operatorname{GCF}=3xy. $$
Divide each term by $3xy$:
$$ \frac{6x^3y^3}{3xy}=2x^2y^2, $$
$$ \frac{45x^2y^2}{3xy}=15xy, $$
$$ \frac{21xy}{3xy}=7. $$
Thus,
$$ 6x^3y^3+45x^2y^2+21xy
3xy(2x^2y^2+15xy+7). $$
The trinomial inside still factors. Treat $xy$ as a single quantity:
$$ 2x^2y^2+15xy+7=(2xy+1)(xy+7), $$
because
$$ (2xy+1)(xy+7)
2x^2y^2+14xy+xy+7
2x^2y^2+15xy+7. $$
Therefore, the complete factorization is
$$ \boxed{3xy(2xy+1)(xy+7)}. $$
Checking the GCF step gives
$$ 3xy(2x^2y^2+15xy+7)
6x^3y^3+45x^2y^2+21xy. $$
A common mistake is to stop at $3xy(2x^2y^2+15xy+7)$. That is a correct partial factorization, but the trinomial can still be factored, so the complete answer is $\boxed{3xy(2xy+1)(xy+7)}$.
Factoring Trinomials of the Form $x^2+bx+c$
A trinomial has three terms. When its leading coefficient is $1$, use the pattern
$$ x^2+bx+c=(x+m)(x+n). $$
Multiplying the right side gives
$$ (x+m)(x+n)=x^2+(m+n)x+mn. $$
Therefore, $m$ and $n$ must satisfy
$$ mn=c \qquad\text{and}\qquad m+n=b. $$
To factor $x^2+bx+c$, find two numbers whose product is the constant term $c$ and whose sum is the coefficient of $x$, namely $b$. The signs matter: if $c$ is positive, the two numbers have the same sign; if $c$ is negative, they have opposite signs.
Worked example: Factoring a monic trinomial
Factor
$$ x^2-5x+6. $$
We need two numbers whose product is $6$ and whose sum is $-5$. The numbers are $-2$ and $-3$:
$$ (-2)(-3)=6, \qquad -2+(-3)=-5. $$
Thus,
$$ x^2-5x+6=(x-2)(x-3). $$
Check by multiplication:
$$ (x-2)(x-3)
x^2-3x-2x+6
x^2-5x+6. $$
So the complete factorization is
$$ \boxed{(x-2)(x-3)}. $$
Factoring Trinomials with a Leading Coefficient Other Than $1$
For a trinomial such as
$$ 6x^2+11x+3, $$
the simple product-and-sum method does not apply directly because the coefficient of $x^2$ is not $1$. Instead, split the middle term into two terms, factor by grouping, and then extract the common binomial factor.
For
$$ ax^2+bx+c, $$
find two numbers whose product is $ac$ and whose sum is $b$. Use those numbers to split the middle term.
Worked example: Factoring by grouping
Factor
$$ 6x^2+11x+3. $$
First calculate
$$ ac=(6)(3)=18. $$
$$ 9\cdot 2=18, \qquad 9+2=11. $$
Split the middle term:
$$ 6x^2+11x+3
6x^2+9x+2x+3. $$
Group the first two terms and the last two terms:
$$ =(6x^2+9x)+(2x+3). $$
Factor each group:
$$ =3x(2x+3)+1(2x+3). $$
The common binomial factor is $2x+3$:
$$ =(2x+3)(3x+1). $$
Therefore,
$$ \boxed{6x^2+11x+3=(2x+3)(3x+1)}. $$
Check:
$$ (2x+3)(3x+1)
6x^2+2x+9x+3
6x^2+11x+3. $$
The grouping is not arbitrary. The two split terms must be chosen so that both groups produce the same binomial factor. If no common binomial appears, recheck the factor pair for $ac$.
Perfect Square Trinomials
A perfect square trinomial is produced by squaring a binomial. The two fundamental patterns are
$$ a^2+2ab+b^2=(a+b)^2 $$
and
$$ a^2-2ab+b^2=(a-b)^2. $$
To recognize one, check three features:
- The first term is a square.
- The last term is a square.
- The middle term is twice the product of the square roots of the first and last terms.
The sign of the middle term determines whether the binomial uses addition or subtraction.
Worked example: Recognizing a perfect square
Factor
$$ 9x^2+24x+16. $$
The first and last terms are squares:
$$ 9x^2=(3x)^2, \qquad 16=4^2. $$
Twice the product of their square roots is
$$ 2(3x)(4)=24x, $$
which matches the middle term. Therefore,
$$ 9x^2+24x+16=(3x+4)^2. $$
The complete factorization is
$$ \boxed{(3x+4)^2}. $$
Difference of Two Squares
The difference of two squares has the form
$$ a^2-b^2. $$
It factors according to
$$ a^2-b^2=(a-b)(a+b). $$
The word difference is essential: a sum of squares generally does not factor using this formula over the real numbers.
Worked example: Factoring a difference of squares
Factor
$$ 25x^2-49. $$
Rewrite both terms as squares:
$$ 25x^2=(5x)^2, \qquad 49=7^2. $$
Apply the formula:
$$ 25x^2-49
(5x-7)(5x+7). $$
Thus,
$$ \boxed{25x^2-49=(5x-7)(5x+7)}. $$
Check:
$$ (5x-7)(5x+7)
25x^2+35x-35x-49
25x^2-49. $$
Always check whether the resulting factors can be factored again. For example,
$$ x^4-16
(x^2-4)(x^2+4)
(x-2)(x+2)(x^2+4). $$
The factor $x^2+4$ does not factor over the real numbers, so this is complete over the real number system.
Sum and Difference of Cubes
Cubic expressions also have special factoring patterns:
$$ a^3+b^3=(a+b)(a^2-ab+b^2) $$
and
$$ a^3-b^3=(a-b)(a^2+ab+b^2). $$
The sign in the first factor is repeated in the original expression; the signs in the quadratic factor alternate.
Worked example: Factoring a sum of cubes
Factor
$$ 216a^3+b^3. $$
Since
$$ 216a^3=(6a)^3, \qquad b^3=b^3, $$
the expression is a sum of cubes:
$$ (6a)^3+b^3. $$
Apply the formula:
$$ (6a)^3+b^3
(6a+b)\left((6a)^2-(6a)b+b^2\right). $$
Simplify:
$$ \boxed{216a^3+b^3=(6a+b)(36a^2-6ab+b^2)}. $$
Worked example: Factoring a difference of cubes
Factor
$$ 1000x^3-1. $$
Write each term as a cube:
$$ 1000x^3=(10x)^3, \qquad 1=1^3. $$
Then
$$ 1000x^3-1=(10x)^3-1^3. $$
Apply the difference-of-cubes formula:
$$ (10x)^3-1^3
(10x-1)\left((10x)^2+(10x)(1)+1^2\right). $$
Therefore,
$$ \boxed{1000x^3-1=(10x-1)(100x^2+10x+1)}. $$
Fractional and Negative Exponents
The GCF method also applies when exponents are fractional or negative. Factor out the term with the smallest exponent. For example,
$$ 2x^{\frac14}+5x^{\frac34}
x^{\frac14}\left(2+5x^{\frac12}\right), $$
because
$$ x^{\frac34}\div x^{\frac14}
x^{\frac34-\frac14}
x^{\frac12}. $$
Worked example: Factoring a negative exponent
Factor
$$ 2(5a-1)^{\frac34}+7a(5a-1)^{-\frac14}. $$
The smaller exponent is $-\frac14$, so factor out
$$ (5a-1)^{-\frac14}. $$
Divide each term by the GCF:
$$ \frac{2(5a-1)^{\frac34}}{(5a-1)^{-\frac14}}
2(5a-1)^{\frac34+\frac14}
2(5a-1), $$
and
$$ \frac{7a(5a-1)^{-\frac14}}{(5a-1)^{-\frac14}}
7a. $$
Thus,
$$ \boxed{ 2(5a-1)^{\frac34}+7a(5a-1)^{-\frac14}
(5a-1)^{-\frac14}\left(2(5a-1)+7a\right) }. $$
The expression inside can be simplified:
$$ 2(5a-1)+7a
10a-2+7a
17a-2. $$
So the factored result is
$$ \boxed{(5a-1)^{-\frac14}(17a-2)}. $$
When a Polynomial Is Prime
Not every polynomial factors into binomials with real-number coefficients. A polynomial that cannot be factored further is called prime. For example,
$$ x^2+4 $$
is prime over the real numbers because no real numbers multiply to $4$ and add to $0$.
The safest check for any factorization is multiplication. If multiplying the proposed factors reproduces the original polynomial exactly, the factorization is valid. Then inspect every factor for a remaining GCF, trinomial pattern, perfect-square pattern, or difference-of-squares pattern.
Practice Problems
Factor each polynomial completely.
- $$12x^3-18x^2+6x$$
- $$x^2+7x+12$$
- $$6x^2-x-2$$
- $$4x^2-20x+25$$
- $$81y^2-16$$
- $$8z^3+27$$
- $$2x^{\frac12}+6x^{\frac32}$$
Answers
-
$$12x^3-18x^2+6x=6x(2x^2-3x+1)=\boxed{6x(2x-1)(x-1)}.$$
-
$$x^2+7x+12=\boxed{(x+3)(x+4)}.$$
-
$$6x^2-x-2=6x^2+3x-4x-2=3x(2x+1)-2(2x+1)=\boxed{(3x-2)(2x+1)}.$$
-
$$4x^2-20x+25=\boxed{(2x-5)^2}.$$
-
$$81y^2-16=(9y)^2-4^2=\boxed{(9y-4)(9y+4)}.$$
-
$$8z^3+27=(2z)^3+3^3=\boxed{(2z+3)(4z^2-6z+9)}.$$
-
$$2x^{\frac12}+6x^{\frac32}=2x^{\frac12}\left(1+3x\right)=\boxed{2x^{\frac12}(1+3x)}.$$
A reliable factoring order is: first remove the GCF, then look for a difference of squares, a perfect square trinomial, a sum or difference of cubes, or an ordinary trinomial. Finally, multiply the factors to verify the result and continue until every factor is prime.
Content adapted from OpenStax College Algebra 2e by Jay Abramson et al., licensed CC BY 4.0.

Source Materials
Study College Algebra on Lykke
This course page is free to open: signed out, you can read its first two sections, and signing in, on any plan, opens the rest. The free Lykke Chrome extension syncs your own Canvas courses, so ChatGPT, Claude and Muse can answer from your classes and deadlines. It only reads Canvas.
Add the free extensionSign in to open every section