[Common Math 1 Part 4] Polynomial Multiplication and the Distributive, Commutative, Associative Laws

한국어 버전

Today’s goal:

Understand polynomial multiplication precisely and see, in one sweep, why the commutative, associative, and distributive laws all hold.

  • When multiplying polynomials we multiply every pair of terms and then collect terms with the same degree.
  • Looking through the lens of arrays (convolution) lets us visualize that workflow.

1. Definition of Polynomial Multiplication

Two steps, always:

  1. Multiply each term of one polynomial with all terms of the other.
  2. Combine terms that share the same degree.

Example:

(2x2+3x+1)(x+4)(2x^2 + 3x + 1)(x + 4)
xx 44
2x22x^2 2x32x^3 8x28x^2
3x3x 3x23x^2 12x12x
11 xx 44

Gather equal degrees to get 2x3+11x2+13x+42x^3 + 11x^2 + 13x + 4.

2. Why It Feels Like Long Multiplication

Think about multiplying 231×14231 \times 14:

  • Compute 231×4231 \times 4.
  • Compute 231×10231 \times 10 (shift one place).
  • Add the aligned digits.

Polynomials behave the same way:

  • (2x2+3x+1)×4(2x^2 + 3x + 1) \times 4
  • (2x2+3x+1)×x(2x^2 + 3x + 1) \times x (shifts the degree by 1)
  • Add terms of the same degree.

So

  • Integer multiplication adds matching place values.
  • Polynomial multiplication adds matching degrees.

3. Array View (Convolution)

Write polynomials as coefficient arrays:

  • 2x2+3x+1[2,3,1]2x^2 + 3x + 1 \rightarrow [2, 3, 1]
  • x+4[1,4]x + 4 \rightarrow [1, 4]

Multiplication now looks like:

  • [2,3,1]×4=[8,12,4][2, 3, 1] \times 4 = [8, 12, 4]
  • [2,3,1]×x=[2,3,1,0][2, 3, 1] \times x = [2, 3, 1, 0] (shift one slot)
  • Add index by index → [2,11,13,4][2, 11, 13, 4]

Imagine P=[2,3,1]P = [2, 3, 1] as a stamp:

  • Each coefficient of QQ tells you how strongly to press the stamp.
  • The degree in QQ tells you how far to shift the stamp to the right.

Every time we look at a term from QQ we:

  1. Multiply every coefficient of PP by that term’s coefficient.
  2. Shift the block according to the term’s degree.
  3. Overlay it with previously stamped blocks and add the overlapping positions.

This “shift-and-add” perspective is exactly convolution. Nothing about polynomials changes—we simply translate “collect equal degrees” into “add the same array slots.”

See the stages below.

Polynomial Product Visualizer

Build the cumulative sum by overlapping partial-product stamps

Applied 0 / 2
Ready
0%

Set coefficients

Edit the polynomials and press Start to apply the inputs and begin playback.

Input polynomials

2x^2 + 3x + 1

P array = [2, 3, 1]

x + 4

Q array = [1, 4]

Create stamps

Q[1] = 4

Multiply each coefficient, starting with the constant term, by the entire P array and shift left as the degree increases.

Current Q coefficient

4
×

P array

231
=

Partial-product stamp

8124

4\times P(x) = 8x^2 + 12x + 4

4 × 2 = 84 × 3 = 124 × 1 = 4

Stamp accumulation board

x degree
x^{3}x^{2}x^{1}x^{0}
Cumulative sum
0
0
0
0

4. Looking at the ii-th Slot Reveals the Laws

Let

  • P=[p0,p1,p2,]P = [p_0, p_1, p_2, \dots]
  • Q=[q0,q1,q2,]Q = [q_0, q_1, q_2, \dots]

and R=PQ=[r0,r1,r2,]R = P * Q = [r_0, r_1, r_2, \dots]. Then

  • r0=p0q0r_0 = p_0 q_0
  • r1=p0q1+p1q0r_1 = p_0 q_1 + p_1 q_0
  • r2=p0q2+p1q1+p2q0r_2 = p_0 q_2 + p_1 q_1 + p_2 q_0
  • r3=p0q3+p1q2+p2q1+p3q0r_3 = p_0 q_3 + p_1 q_2 + p_2 q_1 + p_3 q_0

In general, rir_i adds up all pairs whose indices sum to ii.

Example with P(x)=2x2+3x+1,Q(x)=x+4P(x) = 2x^2 + 3x + 1, \quad Q(x) = x + 4 so P=[2,3,1]P = [2, 3, 1], Q=[1,4]Q = [1, 4], and R=[2,11,13,4]R = [2, 11, 13, 4].

Focus on r1r_1:

  • (0,1)(0, 1)p0q1=24=8p_0 q_1 = 2 \cdot 4 = 8
  • (1,0)(1, 0)p1q0=31=3p_1 q_0 = 3 \cdot 1 = 3

Only these two pairs sum to 1, so r1=11r_1 = 11. Translating back, both products contribute to the x2x^2 term: 8x2+3x2=11x28x^2 + 3x^2 = 11x^2.

Now we can prove all three laws by zooming in on the ii‑th entry.

4-1, 4-2, 4-3 details (commutative/associative/distributive)

4‑1. Commutative Law

PQ=QPP * Q = Q * P

The ii‑th element of PQP * Q is ri=p0qi+p1qi1++piq0,r_i = p_0 q_i + p_1 q_{i-1} + \cdots + p_i q_0, while the ii‑th element of QPQ * P is ri=q0pi+q1pi1++qip0.r'_i = q_0 p_i + q_1 p_{i-1} + \cdots + q_i p_0.

Each term is the same product with swapped order, so ri=rir_i = r'_i for all ii.

4‑2. Associative Law

(PQ)T=P(QT)(P * Q) * T = P * (Q * T)

Looking at the ii‑th slot, both sides add exactly the products paqbtcp_a q_b t_c whose indices add up to ii. The grouping only changes which partial sums you compute first; the set of terms landing in slot ii is identical, so the results match.

4‑3. Distributive Law

P(Q+T)=PQ+PTP * (Q + T) = P * Q + P * T

At index ii we have

(P(Q+T))i=p0(qi+ti)+p1(qi1+ti1)+.\bigl(P * (Q + T)\bigr)_i = p_0 (q_i + t_i) + p_1 (q_{i-1} + t_{i-1}) + \cdots.

Distribute term by term to get the ii‑th slot of PQP * Q plus the ii‑th slot of PTP * T.

5. Practice Quiz: Single-Variable Multiplication

Use the quiz below to

  • Read the prompt
  • Enter coefficients in descending order
  • Walk through the partial products

Chapter 4 Checkpoint

Check polynomial multiplication and expansion from simple products to structure reading.

QUIZ
Question 1 / 10 Completed 0 / 10
Progress 0 / 10 0%
Current question Correct Incorrect Pending
Question 1 Multiple choice Pending
[Easy] After expanding (2x+1)(x-4), what is the coefficient of x?
Score 0pts · Correct 0/10

6. Extending to Two Variables

The same idea applies:

  • 1 variable → 1‑D coefficient array
  • 2 variables → 2‑D coefficient array (matrix)
  • Rules → multiply coefficients, add exponents (row/column indices)

6‑1. Example With Matrices

Let P(x,y)=x+yP(x, y) = x + y, Q(x,y)=xyQ(x, y) = x - y. Start with a zero matrix for RR and add contributions via

R[r+u,  c+v]+=Q[r,c]P[u,v].R[r + u,\; c + v] \mathrel{+}= Q[r, c] \cdot P[u, v].

In words: for every nonzero coefficient in QQ, create a stamp of PP, scale it, shift it, and overlay it. That is 2‑D convolution.

The final polynomial is (x+y)(xy)=x2y2(x + y)(x - y) = x^2 - y^2 because the xyxy terms cancel.

Try it interactively:

Bivariate Polynomial Multiplication (Overlapping Stamps)

Create stamps → overlap them → accumulate the sums

Applied 0 / 2

Current expressions

Original P stamp

P(x,y)=x+y

Full Q expression

Q(x,y)=x-y

\left(x+y\right)\cdot\left(x-y\right)

Current formula: Manual input

Stamp list

2 stamps generated from the nonzero terms of Q

Original P stamp

P=x+y

Full Q expression

Q=x-y

Original Q matrix and selected position

y^{1}x^{1} 0
y^{1}x^{0} -1
y^{0}x^{1} 1
y^{0}x^{0} 0

The selected entry of Q determines where P is shifted.

x/y
x^{2}
x^{1}
x^{0}
y^{2}
y^{1}
y^{0}
0
0
0
0
0
0
0
0
0

Current Operation and Final Result

All stamps applied (final result matrix)

7. Key Takeaways

  • Polynomial multiplication = “multiply terms, then collect equal degrees.”
  • It mirrors long multiplication, so the process is intuitive.
  • The array/convolution view is simply a clearer window into the same rule.
  • Inspecting the ii‑th slot makes the commutative, associative, and distributive laws self-evident.

In short:

Polynomial multiplication is not a new rule—it is the systematic execution of “distribute, then collect like degrees.”

💬 댓글

이 글에 대한 의견을 남겨주세요