[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.

다항식의 곱 시각화

도장 겹치기(부분곱)로 누적 합 생성

적용 0 / 2
준비됨
0%

계수 설정

다항식을 바꾸고 시작을 누르면 입력 적용과 재생이 함께 진행됩니다.

입력 다항식

2x^2 + 3x + 1

P 배열 = [2, 3, 1]

x + 4

Q 배열 = [1, 4]

도장 생성

Q[1] = 4

상수항부터 계수를 P 배열 전체에 곱하고, 차수가 올라갈수록 왼쪽으로 이동합니다.

이번 Q 계수

4
×

P 배열

231
=

부분곱 도장

8124

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

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

도장 누적 보드

x 차수
x^{3}x^{2}x^{1}x^{0}
누적 합
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

1변수 다항식 곱셈 퀴즈

배열화 → 부분곱(합성곱) → 최종답 3단계

1변수 다항식 곱셈 퀴즈

문제

P(x)=0

Q(x)=0

Phase 1. 다항식을 배열로 바꾸기 (내림차순)

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:

2변수 다항식 곱(도장 겹치기)

도장 생성 -> 겹치기 -> 누적 덧셈

적용 0 / 2
P(x,y)=x+y , Q(x,y)=x-y
현재 공식: 직접 입력

도장 목록

Q의 0이 아닌 성분으로부터 생성된 도장 2개

원래 Q 행렬과 선택 위치

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

현재 선택된 Q 성분이 P의 이동 위치를 결정합니다.

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

현재 연산과 최종 결과

모든 도장 적용 완료 (최종 결과 행렬)

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.”

💬 댓글

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