Sub topic 5
The Distributive Property as a Tool
Assume you can evaluate algebraic expressions, work with negative integers, interpret powers such as \(x^3\), and use the distributive property with numbers. In polynomial work, the same property lets you multiply one term by every term inside parentheses.
The distributive property states:
\[ a(b+c)=ab+ac \]
It also applies to subtraction:
\[ a(b-c)=ab-ac \]
The factor outside the parentheses must be multiplied by every term inside. Skipping a term is a common source of errors.
Distributing over a polynomial
Consider:
\[ 3x(2x^2-5x+4) \]
Multiply \(3x\) by each term:
\[ 3x(2x^2)-3x(5x)+3x(4) \]
Now multiply coefficients and use the product rule for powers:
\[ 6x^3-15x^2+12x \]
The product rule says that when multiplying powers with the same base, add their exponents:
\[ x^m x^n=x^{m+n} \]
For example, \(x \cdot x^2=x^3\).
| Product | Coefficient calculation | Exponent calculation | Result |
|---|---|---|---|
| \(3x(2x^2)\) | \(3\cdot2=6\) | \(x^1x^2=x^3\) | \(6x^3\) |
| \(3x(-5x)\) | \(3\cdot(-5)=-15\) | \(x^1x^1=x^2\) | \(-15x^2\) |
| \(3x(4)\) | \(3\cdot4=12\) | \(x\) remains | \(12x\) |
A constant term has no variable factor. Thus, \(3x(4)=12x\), not \(12x^2\).
Signs and subtraction
Rewrite subtraction as addition of a negative when it helps:
\[ -2x(4x^2-3x+6) \]
Distribute \(-2x\), including its negative sign:
\[ (-2x)(4x^2)+(-2x)(-3x)+(-2x)(6) \]
\[ -8x^3+6x^2-12x \]
The middle product is positive because a negative times a negative is positive.
def distribute_monomial(coefficient, exponent, polynomial):
"""Return coefficients of c*x^n times a polynomial.
The polynomial list starts with the constant coefficient.
"""
result = [0] * exponent + [coefficient * value for value in polynomial]
return result
# 3x times (4 - 2x + x^2) = 12x - 6x^2 + 3x^3
print(distribute_monomial(3, 1, [4, -2, 1]))The output is [0, 12, -6, 3]. Its coefficient-list order represents \(12x-6x^2+3x^3\).
A reliable procedure
- Identify the factor outside the parentheses.
- Multiply it by every term inside.
- Multiply coefficients.
- Add exponents only for matching variable bases.
- Combine like terms if any appear.
- Write the result in descending powers.
For example:
\[ -4x^2(3x-2+x^2) \]
produces
\[ -12x^3+8x^2-4x^4 \]
In standard form, reorder the terms:
\[ -4x^4-12x^3+8x^2 \]
Exercise
Expand and write in standard form: \(-5x^2(2x^3-4x+7)\).
Show answer
\(-10x^5+20x^3-35x^2\).