Create your own
Lesson illustration

Expanding, Factoring, and Simplifying Polynomials

Hello again. In the previous lesson, you used exponent rules to simplify products such as and powers such as . Those rules now become part of algebraic multiplication: when polynomial terms are multiplied, multiply their coefficients and add exponents on matching variables.

This lesson develops a paired skill: expanding turns products into sums, while factoring reverses that process. You will also simplify polynomial expressions by collecting like terms. These manipulations are essential preparation for equations, functions, derivatives, and eventually the loss functions used in machine learning.


1. Terms, polynomials, and simplification

A term is a number, a variable, or a product of numbers and variables raised to nonnegative whole-number powers. For example,

are terms.

A polynomial is a sum or difference of such terms. For example,

is a polynomial in . Its terms are , , , and .

Two terms are like terms only when their variable parts match exactly, including exponents:

are like terms, but

are not. Their coefficients happen to match, but their variable parts differ.

To simplify a polynomial, combine the coefficients of like terms. For example:

Group terms by variable part:

Then add the coefficients:

The conventional final form lists terms in decreasing powers of the variable. This is called standard form.

Subtraction requires parentheses

A subtraction sign in front of parentheses changes the sign of every term inside:

First distribute the negative sign:

Now combine like terms:

The main source of mistakes here is treating the minus sign as if it affects only the first term. It affects the entire second polynomial.

Polynomials - Adding, Subtracting, Multiplying and Dividing Algebraic Expressions

Watch “Polynomials - Adding, Subtracting, Multiplying and Dividing Algebraic Expressions” from The Organic Chemistry Tutor for a concise visual treatment of collecting like terms and distributing a negative sign before simplifying.

Watch addition to see terms sorted by their variable part. Then watch subtraction, focusing on why the sign outside parentheses must be distributed to every term. Finish with coefficients for expressions that require distribution before like terms can be combined.

A useful discipline is to separate two operations:

  1. Expand or remove parentheses correctly.
  2. Then collect like terms.

Do not combine terms prematurely. For instance, in

the terms and are factors, not like terms waiting to be added.


2. Expanding: the distributive property in action

The distributive property says that multiplication spreads across addition:

It also works with subtraction:

To expand

multiply by every term in the parentheses:

Use the exponent rule :

The coefficient multiplication and exponent addition are separate steps. For example,

because and .

Multiplying two binomials

A binomial has two terms. When multiplying two binomials, every term in one factor must multiply every term in the other.

Consider:

Distribute the first binomial across the second:

Distribute again:

Finally, combine like terms:

An area model for \((x+2)(x+4)\): the four subregions have areas \(x^2\), \(4x\), \(2x\), and \(8\), whose total is \(x^2+6x+8\).

The area model makes an important fact visible: two binomials create four partial products. The two middle partial products may be like terms, but that is not guaranteed.

For example:

has four products:

The acronym FOIL—first, outer, inner, last—is a valid way to remember the four products for two binomials. But the distributive property is the underlying rule, and it works for all polynomial products.

A binomial times a trinomial

FOIL does not apply when one factor has three terms. Use systematic distribution instead:

Multiply through the trinomial:

Then multiply through the trinomial:

Add all terms and combine like terms:

Before simplifying, a product of a two-term polynomial and a three-term polynomial should have partial products. Counting them is a simple way to notice an omitted multiplication.

6.3 Multiply Polynomials - Elementary Algebra 2e | OpenStax

Read this OpenStax section to reinforce the distributive-property method before treating FOIL as a convenient special case. It also introduces a systematic approach for products involving three terms.

In the subsection “Multiply a Binomial by a Binomial Using the Distributive Property,” read from the four products through the FOIL limitation. Then continue to the subsection “Multiply a Trinomial by a Binomial.” Focus on the repeated pattern: distribute each term, write every partial product, then combine only genuinely like terms.


3. Factoring: reversing multiplication

Factoring is the reverse of expanding. If expanding starts with factors and produces a polynomial, factoring starts with a polynomial and rewrites it as a product.

This diagram contrasts multiplication with factoring: \(2x(x+3)\) expands to \(2x^2+6x\), while factoring rewrites \(2x^2+6x\) as \(2x(x+3)\).

For example,

Therefore the reverse statement is also true:

These are not two different values. They are two equivalent forms of the same expression.

First check: is there a greatest common factor?

The greatest common factor, or GCF, is the largest expression that divides every term of a polynomial.

For numerical coefficients, find the greatest shared integer factor. For variables, use the smallest exponent appearing in all terms.

Consider:

The numerical GCF of , , and is .

Every term has at least , and every term has at least . Thus,

Now divide each original term by the GCF:

So the factored form is:

Factoring out a GCF is simply the distributive property in reverse.

When the leading term is negative, it is often cleaner to factor out a negative GCF:

The expression inside parentheses now begins with a positive , which makes later patterns easier to see.

7.1 Greatest Common Factor and Factor by Grouping - OpenStax

Use this OpenStax reading as a hand-calculation reference for identifying a polynomial’s GCF, reversing the distributive property, and factoring four-term expressions by grouping.

Begin in “Find the Greatest Common Factor of Two or More Expressions,” reading the definition and motivation. Then read the full subsections “Factor the Greatest Common Factor from a Polynomial” and “Factor by Grouping.” In each worked example, identify the factor removed from every term before looking at the final line.


4. Recognizing common factoring patterns

After checking for a GCF, examine the number of terms and their structure.

Trinomials with leading coefficient

A trinomial in the form

can sometimes factor as

Expanding the proposed factors gives:

Therefore, to factor , look for two numbers and such that:

and

For example:

We need two numbers whose product is and whose sum is . They are and , so:

Signs matter. Consider:

The product must be , so the two numbers need opposite signs. The sum must be :

and

Thus:

Difference of two squares

The pattern

factors as:

Why? Expand the right-hand side:

The middle terms cancel.

For example:

is a difference of squares because

and

Therefore:

This pattern requires subtraction. The expression

does not factor into real linear factors by this rule.

A trinomial whose leading coefficient is not

Now consider:

There is no GCF. To factor it, multiply the leading coefficient and constant:

Find two numbers whose product is and whose sum is . They are and .

Split the middle term:

Group the first pair and second pair:

Factor each group:

Now the binomial is common:

This method is called factoring by grouping.

The same principle applies naturally to four terms:

Group terms in pairs:

Factor each group:

Factor out the common binomial:

The second factor is itself a difference of squares:

So the completely factored expression is:

How To Factor Polynomials The Easy Way!

Watch “How To Factor Polynomials The Easy Way!” from The Organic Chemistry Tutor for worked examples of the main patterns in this lesson. Use it after attempting the derivations above, so the video becomes a check on your own reasoning rather than a recipe to memorize.

Watch GCF factoring for the first factoring check to make on every polynomial. Watch basic trinomials for the product-and-sum logic, including cases where a numerical GCF comes first. Then watch difference squares. Finish with grouping methods for non-monic trinomials and four-term polynomials.


5. A reliable workflow and checks

The best method depends on the expression, but the order below prevents most common errors.

If you see...First action
A sum or difference of polynomialsRemove parentheses, then combine like terms
A product of polynomialsDistribute every term across the other factor
Any polynomial to factorCheck for a GCF first
A trinomial Find two numbers with the required sum and product
Two perfect squares separated by subtractionUse the difference-of-squares identity
Four termsTry grouping into two pairs
A factorizationExpand it to verify it returns the original polynomial

Two checks are especially valuable.

Check 1: Expand a proposed factorization.
For example, verify:

So the factorization is correct.

Check 2: Keep operations distinct.
The following expressions look similar but mean different things:

because these are like terms being added, whereas

because equal bases are being multiplied.

Likewise,

does not mean

because squaring a binomial means multiplying it by itself:

The middle term appears because each multiplies each .


You can now simplify polynomial sums, expand polynomial products through systematic distribution, and factor using a GCF, trinomial patterns, difference of squares, and grouping. The unifying idea is simple: expansion and factoring are inverse descriptions of the same algebraic structure.

Next, you will use these skills to solve single-variable linear equations and verify that a proposed solution really satisfies the original equation.

Can't find a good explanation? Sign up and we'll make it for you

Sign up