Sub topic 6
Subtracting Polynomials and Distributing the Negative
Prerequisites and the main idea
Assume you can combine like terms, use the distributive property, and work with negative integers. A polynomial is in standard form when its terms are ordered from greatest exponent to least exponent.
Polynomial subtraction follows the same basic rule as ordinary subtraction:
\[ P(x)-Q(x)=P(x)+[-Q(x)] \]
The expression \(-Q(x)\) means multiply every term of \(Q(x)\) by \(-1\). Therefore, the sign of every term inside the second polynomial changes.
A step-by-step example
Subtract \(x^3+5x-3\) from \(4x^3-2x+7\).
Step 1: Write the subtraction with parentheses
\[ (4x^3-2x+7)-(x^3+5x-3) \]
Step 2: Distribute the negative sign
\[ 4x^3-2x+7-x^3-5x+3 \]
Each sign in the second polynomial changed:
- \(+x^3\) became \(-x^3\)
- \(+5x\) became \(-5x\)
- \(-3\) became \(+3\)
Step 3: Combine like terms
\[ (4x^3-x^3)+(-2x-5x)+(7+3) \]
\[ \boxed{3x^3-7x+10} \]
The \(x^3\) terms are like terms, the \(x\) terms are like terms, and the constants are like terms.
Aligning terms
Writing polynomials in columns can make subtraction easier. Include a zero for any missing power.
Subtract \(2x^2-3x+4\) from \(5x^3+x^2-7\):
\[ \begin{array}{rrrr} 5x^3&+x^2&+0x&-7\\ -\bigl(&2x^2&-3x&+4\bigr) \end{array} \]
After distributing the negative:
\[ 5x^3+x^2+0x-7-2x^2+3x-4 \]
Combine like terms:
\[ \boxed{5x^3-x^2+3x-11} \]
The zero \(x\)-term does not change the value. It only keeps the powers aligned.
Why order matters
Subtraction is not commutative. In general,
\[ P(x)-Q(x)\ne Q(x)-P(x) \]
For example:
\[ (3x+2)-(x-5)=3x+2-x+5=2x+7 \]
But reversing the order gives:
\[ (x-5)-(3x+2)=x-5-3x-2=-2x-7 \]
The second result is the negative of the first.
Degree and cancellation
The degree of a nonzero polynomial is the greatest exponent with a nonzero coefficient. Subtracting polynomials usually produces a result whose degree is no greater than the larger starting degree. However, leading terms can cancel.
\[ (4x^3+2x)-(4x^3-5)=4x^3+2x-4x^3+5=2x+5 \]
Both starting polynomials have degree \(3\), but the result has degree \(1\). Always combine terms before reporting the final degree.
Coefficient-list view
A polynomial can also be stored as a list whose entries go from the constant term upward. For example, [7, -2, 0, 4] represents \(4x^3-2x+7\).
def subtract(p, q):
n = max(len(p), len(q))
p = p + [0] * (n - len(p))
q = q + [0] * (n - len(q))
return [a - b for a, b in zip(p, q)]
p = [7, -2, 0, 4] # 4x^3 - 2x + 7
q = [-3, 5, 0, 1] # x^3 + 5x - 3
print(subtract(p, q)) # [10, -7, 0, 3]The output represents \(3x^3-7x+10\).
Exercise
Simplify \((6x^2-4x+1)-(2x^2+3x-5)\).
Show answer
Distribute the negative and combine like terms: \(6x^2-4x+1-2x^2-3x+5=\boxed{4x^2-7x+6}\).