Sub topic 2
Expanding with the Distributive Property and FOIL
This chapter assumes you can do arithmetic with integers, fractions, and negative numbers, apply the exponent rules for positive integer powers, and combine like terms. You will expand products of expressions, which is the reverse of factoring and the base for every identity later in this tutorial.
The Distributive Property
The distributive property says that multiplying a sum by a number multiplies each part of the sum:
a(b + c) = ab + ac
It also works for subtraction, because subtracting is adding a negative: a(b − c) = ab − ac. The property extends to any number of terms inside the parentheses.
Example: expand 3x(2x² − 5x + 4).
- 3x · 2x² = 6x³
- 3x · (−5x) = −15x²
- 3x · 4 = 12x
The result is 6x³ − 15x² + 12x.
When you multiply terms, multiply the coefficients and add the exponents of the same variable. So x · x² = x³, not x².
Distributing a Negative Sign
A minus sign in front of a parenthesis multiplies every term inside by −1. This is the most common source of sign errors.
Example: simplify 5x − (2x − 7).
The minus sign applies to both terms, so the expression becomes 5x − 2x + 7 = 3x + 7. Writing only "−2x − 7" is wrong, because the −7 must become +7.
From Distribution to FOIL
To multiply two binomials (expressions with two terms), distribute twice. Take (a + b)(c + d). First distribute (a + b) over c and d:
(a + b)(c + d) = (a + b)c + (a + b)d
Then distribute again:
= ac + bc + ad + bd
FOIL is a memory aid for the same four products. The letters name which terms you multiply:
| Letter | Meaning | Product |
|---|---|---|
| F | First terms | a · c |
| O | Outer terms | a · d |
| I | Inner terms | b · c |
| L | Last terms | b · d |
The outer and inner products are like terms, so they combine: 5x + 3x = 8x. This is why the middle coefficient of a trinomial is a sum, and why factoring later requires finding two numbers with a given sum.
Worked Examples with Signs
Negative numbers change the middle term, so track every sign.
Example 1: (x − 4)(x + 6)
- First: x · x = x²
- Outer: x · 6 = 6x
- Inner: −4 · x = −4x
- Last: −4 · 6 = −24
Result: x² + 2x − 24.
Example 2: (2x − 3)(3x − 5)
- First: 2x · 3x = 6x²
- Outer: 2x · (−5) = −10x
- Inner: −3 · 3x = −9x
- Last: (−3)(−5) = 15
Result: 6x² − 19x + 15.
Example 3: (x − 2)(x − 7). The last term is (−2)(−7) = +14 and the middle term is −7x − 2x = −9x, so the result is x² − 9x + 14.
A pattern to notice: for (x + p)(x + q), the expansion is x² + (p + q)x + pq. The middle coefficient is the sum of p and q, and the constant is their product. Example 1 has p = −4, q = 6, so the sum is 2 and the product is −24. Reading this pattern backward is the basis of trinomial factoring.
Beyond Two Binomials
FOIL only applies to two binomials. For other products, return to the distributive property: multiply every term in the first factor by every term in the second.
Example: (x + 2)(x² − 3x + 1).
- x · (x² − 3x + 1) = x³ − 3x² + x
- 2 · (x² − 3x + 1) = 2x² − 6x + 2
Add and combine like terms: x³ − 3x² + 2x² + x − 6x + 2 = x³ − x² − 5x + 2.
A check on the count: a two-term factor times a three-term factor creates 2 × 3 = 6 products before combining. If you wrote fewer, you skipped one.
Expressions with two variables work the same way. (2x + y)(x − 3y) = 2x² − 6xy + xy − 3y² = 2x² − 5xy − 3y². Here −6xy and xy are like terms, since both have the variable part xy.
Checking Your Work
Substitute a simple value for the variable into the original product and the expanded form. Both must give the same number. This is the same idea as the identity checks you will see in the next chapter.
def original(x):
return (2 * x - 3) * (3 * x - 5)
def expanded(x):
return 6 * x ** 2 - 19 * x + 15
for x in [0, 1, 2, -1, 5]:
assert original(x) == expanded(x)
print("expansion checks out")Use more than one test value. With x = 1 alone, an error in the exponent could go unnoticed because 1 raised to any power is 1. Including 0 tests the constant term, and including 2 or −1 tests the other terms.
GRE Relevance
GRE questions often give a product and ask for a coefficient, or give an expanded form and ask for a related value. You rarely need the whole expansion. If a question asks for the coefficient of x in (x + 4)(x − 9), you only need the outer and inner products: −9 + 4 = −5. Computing only the terms you need saves time and reduces errors.
Exercise
Expand (3x − 2)(x + 5) and then find the value of the expression when x = −1, using both the factored and expanded forms to confirm they agree.
Show answer
FOIL gives 3x² + 15x − 2x − 10 = 3x² + 13x − 10. At x = −1 the expanded form gives 3 − 13 − 10 = −20. The factored form gives (−3 − 2)(−1 + 5) = (−5)(4) = −20. Both agree.
Exercise
What is the coefficient of x² in the expansion of (x + 2)(x² − 3x + 1)?
Show answer
The x² terms come from x · (−3x) = −3x² and 2 · x² = 2x². Their sum is −x², so the coefficient is −1.