Expanding and Factoring Expressions
Progress can't be saved in this browser, so this lesson's status can't be set.
Learning goals
- Expand a product so the factor reaches every term
- Multiply two expressions by pairing every term with every term
- Treat FOIL as a name for four products, not a general rule
- Factor by pulling out the greatest common factor
- Check any factoring by re-expanding it
Expanding a factor across every term
To expand a product is to multiply it out into a sum, using the distributive law. You met the law for a sum of two terms, , but the law is not limited to two terms. The factor out front multiplies every term inside the parentheses, however many there are.
Why #
To expand using the two-term law, first group as one quantity:
Now use the same grouping with any real numbers :
Each application of the two-term law separates another term. Repeating this for a longer finite sum reaches every term, so the outside factor multiplies them all.
The factor can contain a sign or a variable. Use the same rule, keeping the sign and applying the exponent laws: and . A negative factor changes each term’s sign, as the leading minus did in the previous lesson.
Worked example 1 Expand three products
In each product, multiply the outside factor against every inside term, keeping each sign.
Distributing a negative number across a difference, the sign of each term flips:
Distributing a single variable, the powers add where the variable meets itself:
Distributing a term that carries both a coefficient and a power, handle the numbers and the exponents separately:
A leading minus is an outside factor of . Thus the previous lesson’s rule is another use of distribution.
Check your understanding
Expand .
Multiply against each term inside, watching the signs and adding exponents where meets .
The product is , so the coefficient of the second term is positive because ; missing that sign flip gives the wrong .
Multiplying two expressions
To picture , take positive lengths . Split a rectangle of width and height along both directions. Each of its four pieces pairs one width with one height.
The picture shows where the four products come from when the lengths are positive. Using distribution, we get the same rule for all real numbers, including negatives.
Why #
Start with . Treat as one factor, then distribute again inside each product:
The same steps work for any real :
Every term in one factor multiplies every term in the other. Repeated distribution works the same way with longer factors; after forming all the products, combine like terms.
A binomial has two terms. For two binomials, FOIL is a memory aid for the four products: First, Outer, Inner, Last. In , the first terms give , the outer terms and give , the inner terms and give , and the last terms give . These are the same four products that distribution gives, so FOIL is not a separate rule.
With three terms in a factor, four pairings are not enough. Use the general rule, every term times every term. An expression with three terms is a trinomial.
Worked example 2 Multiply two binomials
Multiply every term of the first factor by every term of the second, then gather like terms.
For , the four products are , , , and :
The middle terms and are like terms, so combine them:
The same method handles coefficients and negatives. For ,
where , the outer and inner products and combine to , and .
Check your understanding
Multiply .
Multiply every term of the first factor by every term of the second, then combine the like middle terms.
The outer and inner products and combine to ; dropping them gives the wrong .
Worked example 3 Multiply a binomial by a trinomial
Multiply each of the two terms of against all three terms of :
Expand each product:
Add them and combine the like terms and the like terms:
That is six products in all, one for each pairing of a term from the first factor with a term from the second.
Check your understanding
How many products does multiplying require, before combining any like terms?
Every term of the first factor (three terms) must multiply every term of the second factor (two terms), which is products, not the number of terms added together and not the four FOIL names, which only cover two two-term factors.
Expanding those three pieces gives six products before any of them combine.
Two products with a shortcut shape
Some binomial products have middle terms that cancel, or two equal middle terms that add. In a sum times a difference of the same two terms, the middle products cancel:
Here . For a squared binomial, write the square as a product with itself:
Here , so the middle term stays. Both patterns follow from ordinary distribution; you can rebuild them whenever you need them.
Factoring by reversing distribution
Factoring rewrites a sum as a product. Here you will pull out a factor shared by every term, using the distributive law backward.
Why pulling out a common factor is the distributive law reversed#
The numbers and both contain a factor of . Reading distribution backward gives
The same reasoning works for expressions. Since and ,
For , the shared factor is :
In general, , the distributive law read in reverse. The common factor moves outside; the remaining factors stay inside. Expanding the product returns the original sum, which checks the factoring.
The greatest common factor, or GCF, contains all the numerical and variable factors shared by every term. For terms with integer coefficients, its numerical part is the greatest common divisor of the coefficients’ absolute values, and the variable part is each common variable raised to the smallest power that appears. For the coefficients and share the factor , and both terms contain at least one , so the GCF is . Pulling it out,
If you take out less than the full GCF, you are not finished yet. The forms and are both correct, but each still has a common factor left inside. In this lesson, factoring completely means removing the full GCF; later chapters develop other factoring methods.
For , the area model reads backward too. A rectangle whose area is and whose height is the common factor must have width .
Worked example 4 Factor out the greatest common factor
Find the GCF, lift it out, then confirm the answer by expanding it again.
For , the coefficients and share and both terms contain , so the GCF is :
To check, expand the answer and compare it with the original: .
Check your understanding
Factor out the greatest common factor of .
The greatest common factor combines the largest shared number with the lowest shared power of . The coefficients and share , and both terms contain , so the GCF is .
The other choices pull out only part of the GCF, so a shared factor still remains inside their parentheses.
Check your understanding
A student claims that . Which result do you get by expanding the right side to check the claim?
Distributing across multiplies it into both terms:
The second product is , so the expansion does not return . The claimed factoring is not an identity, even though the two expressions agree at . The correct factoring is , because .
The option repeats the claim without checking it. The option leaves the second term undistributed, while leaves the first term undistributed.