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 it is the distributive law applied twice. The idea is to 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 #
Treat the first factor as a single quantity, and call it while it plays that part. The product becomes , and the distributive law spreads across the second sum:
Now restore and distribute each piece the other way, spreading and then across :
Adding the four pieces gives
Every term of the first factor has multiplied every term of the second, producing one product for each pairing. Reordered, that is , the four pairwise products. 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.
The picture behind this is a rectangle again. Give it a width of and a height of . The two splits carve it into four smaller rectangles, and their areas are exactly the four products.
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 .
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.
Worked example 4 Expand two products that look special
Some products have a tidy shape, and expanding them is the same distribution as always. Take a sum times a difference of the same two terms:
The two middle terms and cancel, leaving only . A squared binomial is a product with itself:
Here the middle terms add rather than cancel, giving the . Both results come straight from multiplying every term by every term; there is nothing to memorize beyond the method you already have.
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 .
Factoring by reversing distribution
Expanding turns a product into a sum. Factoring runs the machine backward: it turns 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
In each expression, find the GCF and lift it out, then confirm the answer by expanding it again.
For , the coefficients and share and there is no common variable, so the GCF is :
For , both terms contain while the coefficients and share only , so the GCF is :
For , the coefficients and share and both terms contain , so the GCF is :
Expanding each 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.