Expanding and Factoring Expressions
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 nothing about it stops at two terms. The factor out front reaches every term inside the parentheses, however many there are.
Why #
The distributive law is stated for a sum of two terms, , but a sum can have more terms than that. To see that the factor still reaches each one, group the extra terms and apply the two-term law twice. Treat as , a sum of the single quantity and the term :
That is the two-term law with playing the role of the first term. Now distribute across the remaining pair:
The factor has multiplied every term inside. The same grouping works for a sum of any length, so a factor outside a parenthesis multiplies each term within it, one at a time. That is the whole content of expanding: no term is ever skipped.
The factor out front need not be a bare number. It can carry a sign or a variable, and the rule does not change: multiply it against each term, following the sign and exponent rules you already know. When two powers of the same base meet, their exponents add, so and . A negative factor flips the sign of each term it lands on, exactly as a leading minus did in the last lesson. The flip happens because a minus sign in front is the factor waiting to be distributed.
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:
In each case the factor reached both terms. The second term is never left behind.
One case deserves a second look, because the factor is hidden. Subtracting a whole group, as in , is the same as multiplying that group by and adding, so every term inside changes sign:
This is the leading-minus rule from the last lesson seen as one more case of expanding, with the hidden factor being .
Check your understanding
Expand .
Multiply against each term inside, watching the signs and adding exponents where meets .
The product is , so the second term is positive; missing that sign flip gives the wrong .
Multiplying two expressions
Multiplying two multi-term expressions, such as , looks like a new problem, but a picture makes it concrete first. Give a rectangle a width of and a height of . Splitting the width into and , and the height into and , carves the rectangle into four smaller rectangles, and their areas are exactly the four products you get from multiplying every part of one sum by every part of the other.
The same result follows from the distributive law alone, with no picture needed. Treat the first factor as a single quantity for a moment: nothing in the distributive law requires the outside factor to be short, so let the whole of play that role.
Why #
Nothing in the distributive law says the outside factor has to be a single letter. Treat the whole quantity as one factor and distribute it across , the usual way:
Each of those two pieces is itself a distributive-law step, this time with and spreading back across :
Adding the four pieces gives
Every term of the first factor has multiplied every term of the second, one product for each pairing, matching the four cells of the rectangle above. Because the argument used nothing but the distributive law, it does not stop at two terms each. So to multiply any two expressions, multiply every term of the first by every term of the second, then combine like terms.
For the common case of two two-term factors, the four products come in a memorable order. Reading left to right, they are the product of the First terms and the Outer terms . Then come the Inner terms and the Last terms , so the four initials spell the mnemonic FOIL. It is a handy way to be sure you have all four products, but it is only a name for what the distributive law already told you. FOIL works only when each factor has exactly two terms. The underlying rule, every term times every term, is what you fall back on the moment a factor has three terms or more.
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
When a factor has three terms, FOIL no longer applies, but every term times every term still does. 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.
Factoring by reversing distribution
Expanding turns a product into a sum. Factoring runs the machine backward. In this lesson, that means turning a sum into a product by pulling out a factor shared by every term. The tool is the distributive law read from right to left, , which says a factor common to each term can be lifted outside a parenthesis.
Why pulling out a common factor is the distributive law reversed#
The distributive law, read left to right, expands: . Every equation can be read in either direction, so read this one right to left:
This says that if a factor appears in every term of a sum, it can be pulled out to the front. The other factors of each term stay behind inside the parenthesis. Nothing new is needed; it is the same identity, used in reverse.
To factor , look for a factor common to both terms. Since and , the number divides each, so lift it out:
For the shared factor is the variable , because and :
In both cases you can check the result at once by expanding it again: and , right back to where you started.
The factor worth pulling out is the greatest common factor, or GCF: the largest factor every term shares. It has two parts. The numerical part is the greatest common divisor of the coefficients, 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,
Taking out less than the full GCF leaves the job unfinished. The forms and are both correct as far as they go, but each still hides a shared factor inside, so neither is fully factored.
The area model reads backward here too. A rectangle whose area is and whose height is the common factor must have width . So factoring is just naming the side lengths of the rectangle you already drew when expanding.
Worked example 5 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 :
Expanding the answer returns the original, which is the check that the factoring is right: , as it should.
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
To check a proposed factoring, you expand it back out and compare. Expand using the distributive law. What do you get?
Distributing across multiplies it into both terms:
So if the expression you started with was , this factoring checks out; if it was anything else, it does not. The other options come from multiplying only part of the expression or losing track of an exponent.