7. Polynomial Operations
Before you start
- Apply distribution with negative coefficients without sign errors
- Combine like terms across an expression of up to eight terms
- Recognize and use exponent notation for second and third powers
- Track signs through subtraction of grouped expressions
By the end you'll be able to
- Add, subtract, and multiply polynomials of degree up to four by hand
- Apply FOIL fluently to any product of two binomials in under thirty seconds
- Memorize and apply the perfect-square and difference-of-squares special products
- Identify a polynomial's degree, leading coefficient, and standard form
- Recognize sum-of-cubes and difference-of-cubes patterns
Polynomial Operations
A polynomial is a sum of terms of the form
Adding and subtracting
Combine like terms — terms with the same variable raised to the same power.
When subtracting, distribute the negative to every term in the second polynomial:
The
Multiplying
Use the distributive property. For two binomials, FOIL is a useful mnemonic:
- First: First terms of each binomial
- Outer: Outer pair
- Inner: Inner pair
- Last: Last terms of each binomial
For larger polynomials, use distribution systematically — every term in the first polynomial multiplied against every term in the second.
Special products (memorize these)
| Pattern | Expansion |
|---|---|
The middle term in
Connection to ML
ML loss functions are polynomials in the parameters. Mean Squared Error is a degree-2
polynomial in each
Common mistakes
These are the traps learners hit most often on this topic. Knowing them in advance is half the fix.
Forgetting the middle term of $(a + b)^2$
, NOT . The middle term comes from FOIL’s outer + inner products. Same trap on . Combining unlike terms
can’t be combined further — different powers. Only same-power terms merge. Sign error in subtraction
→ distribute the negative: . Forgetting to flip the sign on gives , wrong by .
Practice problems
Try each on paper first. Click Show solution only after you've made a real attempt.
- Problem 1Expand:
. Show solution
FOIL gives
. - Problem 2Expand:
. Show solution
. - Problem 3Expand:
. Show solution
. - Problem 4Subtract:
. Show solution
. - Problem 5What is the degree of
? Show solution
Highest power: 7. Degree 7, leading coefficient -2.
- Problem 6Multiply:
. Show solution
. - Problem 7Add:
. Show solution
Combine like terms:
.
Practice quiz
- Question 1(x + 3)(x + 5) = ?
- Question 2(x - 4)² = ?
- Question 3(x + 2)(x - 2) = ?
- Question 4Degree of 3x⁴ - 2x² + 7?
- Question 5Expand: (2x - 3)(x + 4)
- Question 6Expand: (x + 1)(x² - x + 1)
- Question 7Subtract: (4x² + 3x - 2) - (x² - x + 5)
- Question 8What’s the leading coefficient of 5 - 3x + 7x³ - x²?
- Question 9Adding polynomials: (3x² + 2x) + (x² - 5x) = ?
- Reflection 10Why are polynomial operations foundational for machine learning?
Week 7 recap
You added, subtracted, and multiplied polynomials by distribution and FOIL, drilled the special-product patterns (perfect squares, difference of squares, sum and difference of cubes), and identified degree and leading coefficients from arbitrary polynomial forms. Three trap families fell: the missing-middle-term trap (writing (a+b)^2 as a^2 + b^2), the unlike-terms trap (merging x^2 with x), and the forgot-to-flip trap (failing to distribute a minus across an entire polynomial). Each outcome supports next week’s factoring work, where every pattern you expanded gets reversed: difference of squares becomes a factoring target, perfect-square trinomials get recognized backward, and standard-form ordering lets you spot the leading term that anchors any factoring strategy.
Coming next: Week 8 — Factoring Strategies (GCF & Grouping)
Next week reverses direction: instead of expanding polynomials, you will factor them. You will pull out greatest common factors, recognize and factor difference of squares and perfect-square trinomials, and use grouping on four-term polynomials. Lesson 8 also includes a cumulative review covering weeks 5-7 (systems, matrices, and polynomial expansion).
Saved in your browser only — no account, no server.