Math Atlas

다항식의 덧셈과 곱셈Adding & Multiplying Polynomials

Algebra 1Algebra 1 · 4. 지수법칙과 다항식4. Exponents & Polynomials

학습 목표
  • 항, 계수, 차수, 동류항 — 다항식의 용어를 정확히 쓴다.
  • 덧셈·뺄셈은 동류항 정리로, 곱셈은 분배법칙으로 계산한다.
  • 곱셈 공식 세 개를 유도하고, (a+b)2a2+b2(a+b)^2 \neq a^2+b^2인 이유를 반례와 그림으로 설명한다.

용어부터

5x23x+75x^2 - 3x + 7 같은 식을 다루려면 먼저 부품을 부를 이름이 필요하다.

정의다항식과 그 부품

수와 문자 몇 개의 곱 하나로 된 식(5x25x^2, 3x-3x, 77 같은 것)을 단항식, 단항식 몇 개의 합으로 된 식을 다항식이라 한다. 더해진 각 단항식이 그 다항식의 , 항에서 문자에 곱해진 수가 계수, 항에 곱해진 문자의 개수가 그 항의 차수다. 다항식 전체의 차수는 항들 중 가장 높은 차수로 정한다.

5x23x+75x^2 - 3x + 7을 이 말로 읽어 보면: 항은 5x25x^2, 3x-3x, 77의 셋이다. 뺄셈은 음수의 덧셈이므로 부호는 항의 일부다 — 3x-3x의 계수는 33이 아니라 3-3이다. 문자가 없는 항 77은 상수항이라 부르고 차수는 00으로 친다. 최고차항이 5x25x^2이므로 이 다항식의 차수는 2. 항이 둘이면 이항식, 셋이면 삼항식이라고도 하는데, 이름보다 중요한 것은 차수가 높은 항부터 쓰는 내림차순 관례다. 이 습관이 인수분해와 이차방정식 내내 이득을 본다.

용어 하나만 더:

정의동류항

문자와 그 차수가 완전히 같은 항. 3x23x^25x2-5x^2은 동류항이다. 3x23x^23x33x^3은 아니다 — 차수가 다르다. 2xy2xy2x2x도 아니다.

덧셈과 뺄셈 — 동류항을 세는 일

동류항은 왜 합쳐지고, 아니면 왜 안 합쳐지는가. 분배법칙을 거꾸로 읽으면 답이 나온다:

3x2+5x2=(3+5)x2=8x2.3x^2 + 5x^2 = (3+5)x^2 = 8x^2.

x2x^2이 3개 있는데 5개가 더 왔으니 8개 — 사과 3개에 사과 5개를 더한 셈이다. 반면 3x2+5x33x^2 + 5x^3은 사과와 배라서, x2x^2의 개수로도 x3x^3의 개수로도 셀 수 없다. 그냥 3x2+5x33x^2 + 5x^3인 채로 둔다. 다항식의 덧셈·뺄셈은 결국 종류별로 개수 세기다.

예제 1 — 다항식의 뺄셈

(2x25x+3)(x24x6)(2x^2 - 5x + 3) - (x^2 - 4x - 6)을 간단히 하라.

풀이. 빼기는 1-1을 곱해 더하는 것이므로, 뒤 괄호의 세 항 전부 부호가 바뀐다:

2x25x+3x2+4x+6=(21)x2+(5+4)x+(3+6)=x2x+9.2x^2 - 5x + 3 - x^2 + 4x + 6 = (2-1)x^2 + (-5+4)x + (3+6) = x^2 - x + 9.

검산은 수 대입으로. x=2x = 2: 원식은 (810+3)(486)=1(10)=11(8-10+3) - (4-8-6) = 1 - (-10) = 11, 결과는 42+9=114 - 2 + 9 = 11 ✓.

주의

뺄셈에서 가장 잦은 실수: (x24x6)-(x^2 - 4x - 6)에서 첫 항만 부호를 바꿔 x24x6-x^2 - 4x - 6으로 쓰는 것. 괄호 앞의 -는 괄호 안 모든 항에 분배된다. 부호가 헷갈리면 괄호 지우는 줄을 한 줄 따로 쓰라 — 줄 하나가 오답 하나보다 싸다.

단항식 × 다항식 — 분배법칙 그대로

2x2(3x2x+4)=6x42x3+8x2.2x^2(3x^2 - x + 4) = 6x^4 - 2x^3 + 8x^2.

각 항에 2x22x^2을 곱하면서 지난 차시의 지수법칙(x2x2=x4x^2 \cdot x^2 = x^4)을 쓴 것뿐이다. 부호도 같이 실려 간다는 것(2x2(x)=2x32x^2 \cdot (-x) = -2x^3)만 조심하면 새로울 게 없다.

다항식 × 다항식 — 모든 항끼리, 정확히 한 번씩

(a+b)(c+d)(a+b)(c+d)는 어떻게 전개되는가. 뒤 괄호 c+dc+d를 통째로 하나의 수 MM이라 보면:

(a+b)M=aM+bM=a(c+d)+b(c+d)=ac+ad+bc+bd.(a+b)M = aM + bM = a(c+d) + b(c+d) = ac + ad + bc + bd.

분배법칙을 두 번 쓴 것이 전부다. 그림으로도 같은 결론이 나온다:

a b c d ac bc ad bd
가로 a+b, 세로 c+d인 직사각형을 넷으로 자른 넓이 모델

가로 a+ba+b, 세로 c+dc+d인 직사각형의 넓이가 (a+b)(c+d)(a+b)(c+d)이고, 선을 따라 자른 네 조각의 넓이가 acac, bcbc, adad, bdbd다. 전체는 조각의 합이므로 두 식은 같을 수밖에 없다.

여기서 다항식 곱셈의 원칙이 나온다: 앞 다항식의 각 항과 뒤 다항식의 각 항을, 빠짐없이 중복 없이 한 번씩 곱해 모두 더한다. 그래서 곱의 개수는 항 개수의 곱이다 — 22×\times 22항이면 곱 4개, 22×\times 33항이면 6개. 전개 직후 곱이 몇 개 나왔는지 세는 것이 검산의 첫 줄이다.

참고

FOIL(First–Outer–Inner–Last)이라는 구호를 들어 봤을 수 있다. 2항 ×\times 2항 전용 순서 암기일 뿐이다. 원리 — 모든 항끼리 한 번씩 — 를 알면 몇 항이든 전개할 수 있지만, FOIL만 알면 22×\times 33항에서 이미 손이 멈춘다.

예제 2 — 삼항식과의 곱

(2x+3)(x2x+4)(2x+3)(x^2 - x + 4)를 전개하고 정리하라.

풀이. 2×3=62 \times 3 = 6개의 곱이 나와야 한다:

2xx2+2x(x)+2x4+3x2+3(x)+342x \cdot x^2 + 2x \cdot (-x) + 2x \cdot 4 + 3 \cdot x^2 + 3 \cdot (-x) + 3 \cdot 4
=2x32x2+8x+3x23x+12=2x3+x2+5x+12.= 2x^3 - 2x^2 + 8x + 3x^2 - 3x + 12 = 2x^3 + x^2 + 5x + 12.

여섯 개 ✓. 동류항을 정리했으면 검산 — x=2x = 2: 원식은 (4+3)(42+4)=7×6=42(4+3)(4-2+4) = 7 \times 6 = 42, 결과는 16+4+10+12=4216 + 4 + 10 + 12 = 42 ✓.

곱셈 공식 — 유도한 다음에 외운다

어떤 곱은 하도 자주 나와서 결과를 통째로 알아 두는 편이 낫다. 셋이면 충분하고, 셋 다 방금의 원칙에서 30초 안에 나온다.

완전제곱 (합).

(a+b)2=(a+b)(a+b)=a2+ab+ba+b2=a2+2ab+b2(a+b)^2 = (a+b)(a+b) = a^2 + ab + ba + b^2 = a^2 + 2ab + b^2

가운데의 2ab2abababbaba가 같은 수라서 생긴 두 배다. 이 "2가 어디서 왔는가"가 공식의 전부다. 그림으로 보면:

a b a b a2 ab ab b2
한 변이 a+b인 정사각형을 넷으로 나누면 2ab가 어디서 오는지 보인다

넓이 (a+b)2(a+b)^2인 큰 정사각형은 정사각형 a2a^2 하나, b2b^2 하나, 그리고 직사각형 abab 두 장으로 나뉜다.

완전제곱 (차). 새로 전개할 필요 없이, 방금 증명한 공식의 bb 자리에 b-b를 넣으면 된다:

(ab)2=a2+2a(b)+(b)2=a22ab+b2(a-b)^2 = a^2 + 2a(-b) + (-b)^2 = a^2 - 2ab + b^2

이미 증명한 식에 대입하는 것도 훌륭한 증명이다.

합차의 곱.

(a+b)(ab)=a2ab+bab2=a2b2(a+b)(a-b) = a^2 - ab + ba - b^2 = a^2 - b^2

가운데 항이 사라지는 것이 이 공식의 존재 이유다. 전개했더니 오히려 짧아지는 드문 곱.

(a+b)2=a2+b2(a+b)^2 = a^2 + b^2이라는 착각

주의

반례 하나면 끝난다. a=3a = 3, b=4b = 4:

(3+4)2=49,32+42=25.(3+4)^2 = 49, \qquad 3^2 + 4^2 = 25.

같지 않다. 모자란 2424가 정확히 2ab=2342ab = 2 \cdot 3 \cdot 4 — 그림에서 빠뜨린 직사각형 두 장이다.

이 착각이 왜 그럴듯한지도 알아 두자. (ab)2=a2b2(ab)^2 = a^2b^2이다 — 곱의 거듭제곱 법칙. 지수는 위에서는 낱개로 걸리지만, 위에서는 그런 법칙이 없다. (a+b)2(a+b)^2을 처리하려면 거듭제곱의 정의로 돌아가 (a+b)(a+b)(a+b)(a+b)를 분배로 전개하는 수밖에 없고, 그러면 2ab2ab가 반드시 따라 나온다. 이 등식을 쓰고 싶어질 때마다 (3+4)232+42(3+4)^2 \neq 3^2 + 4^2을 떠올리면 된다.

공식은 손 계산기다

곱셈 공식은 문자 계산만을 위한 것이 아니다. 수를 잘 쪼개면 암산 도구가 된다:

212=(20+1)2=400+40+1=44121^2 = (20+1)^2 = 400 + 40 + 1 = 441
992=(1001)2=10000200+1=980199^2 = (100-1)^2 = 10000 - 200 + 1 = 9801
19×21=(201)(20+1)=4001=39919 \times 21 = (20-1)(20+1) = 400 - 1 = 399

예고 하나. 이 차시에서는 (x+3)(x+7)(x+3)(x+7)x2+10x+21x^2 + 10x + 21펴는 법을 배웠다. 다음 단원의 질문은 정반대다 — x2+10x+21x^2 + 10x + 21을 보고 (x+3)(x+7)(x+3)(x+7)접을 수 있는가? 전개를 많이 해 본 손이 인수분해를 가장 잘 배운다.

Goals
  • Use the vocabulary of polynomials — term, coefficient, degree, like terms — precisely.
  • Add and subtract polynomials by combining like terms; multiply them with the distributive law.
  • Derive the three product formulas, and explain with a counterexample and a picture why (a+b)2a2+b2(a+b)^2 \neq a^2 + b^2.

Names first

To work with an expression like 5x23x+75x^2 - 3x + 7, we need names for its parts.

DefinitionPolynomials and their parts

An expression that is a single product of numbers and variables (5x25x^2, 3x-3x, or 77) is a monomial. A sum of monomials is a polynomial. Each monomial in the sum is a term; the number multiplying the variables in a term is its coefficient; the number of variable factors in a term is its degree. The degree of the whole polynomial is the largest degree among its terms.

Read 5x23x+75x^2 - 3x + 7 in this language: three terms, 5x25x^2, 3x-3x, and 77. Subtraction is addition of a negative, so the sign belongs to the term — the coefficient of 3x-3x is 3-3, not 33. The term 77 has no variables; it is the constant term, and its degree counts as 00. The highest-degree term is 5x25x^2, so the polynomial has degree 2. A two-term polynomial is called a binomial and a three-term one a trinomial, but the convention that matters more than the names is standard form: write terms from highest degree down. That habit keeps paying off through factoring and quadratics.

One more word:

DefinitionLike terms

Terms with exactly the same variables raised to exactly the same powers. 3x23x^2 and 5x2-5x^2 are like terms. 3x23x^2 and 3x33x^3 are not — the degrees differ. Neither are 2xy2xy and 2x2x.

Adding and subtracting: counting like terms

Why do like terms combine, and unlike terms refuse to? Read the distributive law backwards:

3x2+5x2=(3+5)x2=8x2.3x^2 + 5x^2 = (3+5)x^2 = 8x^2.

Three x2x^2's plus five more makes eight of them — apples plus apples. But 3x2+5x33x^2 + 5x^3 is apples plus pears: it is not a count of x2x^2's, nor a count of x3x^3's, so it stays as it is. Adding and subtracting polynomials is nothing more than counting each kind.

Example 1 — Subtracting polynomials

Simplify (2x25x+3)(x24x6)(2x^2 - 5x + 3) - (x^2 - 4x - 6).

Solution. Subtracting means multiplying by 1-1 and adding, so all three signs in the second parentheses flip:

2x25x+3x2+4x+6=(21)x2+(5+4)x+(3+6)=x2x+9.2x^2 - 5x + 3 - x^2 + 4x + 6 = (2-1)x^2 + (-5+4)x + (3+6) = x^2 - x + 9.

Check by substitution at x=2x = 2: the original gives (810+3)(486)=1(10)=11(8-10+3) - (4-8-6) = 1 - (-10) = 11; the result gives 42+9=114 - 2 + 9 = 11 ✓.

Watch out

The classic subtraction error: flipping only the first sign, turning (x24x6)-(x^2 - 4x - 6) into x24x6-x^2 - 4x - 6. The minus in front distributes to every term inside. If signs trip you up, spend one written line just on removing the parentheses — a line is cheaper than a wrong answer.

Monomial times polynomial

2x2(3x2x+4)=6x42x3+8x2.2x^2(3x^2 - x + 4) = 6x^4 - 2x^3 + 8x^2.

This is the distributive law with last lesson's exponent rule (x2x2=x4x^2 \cdot x^2 = x^4) riding along. The only thing to watch is that signs ride along too: 2x2(x)=2x32x^2 \cdot (-x) = -2x^3.

Polynomial times polynomial: every term meets every term, once

How does (a+b)(c+d)(a+b)(c+d) expand? Treat the second factor as one single number M=c+dM = c+d:

(a+b)M=aM+bM=a(c+d)+b(c+d)=ac+ad+bc+bd.(a+b)M = aM + bM = a(c+d) + b(c+d) = ac + ad + bc + bd.

Two rounds of the distributive law — that is the whole proof. A picture reaches the same conclusion:

a b c d ac bc ad bd
The area model: a rectangle a+b wide and c+d tall, cut into four pieces

A rectangle a+ba+b wide and c+dc+d tall has area (a+b)(c+d)(a+b)(c+d); cutting along the gridlines gives four pieces of areas acac, bcbc, adad, bdbd. The whole equals the sum of its parts, so the two expressions must agree.

Out of this comes the one principle behind all polynomial multiplication: multiply each term of the first polynomial by each term of the second — every pair exactly once — and add. The number of products is therefore the product of the term counts: 22 terms ×\times 22 terms gives 4 products, 2×32 \times 3 gives 6. Counting your products right after expanding is the first line of your check.

Note

You may have met the mnemonic FOIL (First–Outer–Inner–Last). It is a memorized order for the binomial-times-binomial case, nothing more. Know the principle — every pair, once — and you can expand anything; with FOIL alone, you are already stuck at binomial times trinomial.

Example 2 — Times a trinomial

Expand and simplify (2x+3)(x2x+4)(2x+3)(x^2 - x + 4).

Solution. We should get 2×3=62 \times 3 = 6 products:

2xx2+2x(x)+2x4+3x2+3(x)+342x \cdot x^2 + 2x \cdot (-x) + 2x \cdot 4 + 3 \cdot x^2 + 3 \cdot (-x) + 3 \cdot 4
=2x32x2+8x+3x23x+12=2x3+x2+5x+12.= 2x^3 - 2x^2 + 8x + 3x^2 - 3x + 12 = 2x^3 + x^2 + 5x + 12.

Six products ✓. Combine like terms, then check at x=2x = 2: the original gives (4+3)(42+4)=7×6=42(4+3)(4-2+4) = 7 \times 6 = 42; the result gives 16+4+10+12=4216 + 4 + 10 + 12 = 42 ✓.

The product formulas: derive first, then memorize

Some products come up so often that it pays to know the result on sight. Three are enough, and each falls out of the principle above in under thirty seconds.

Square of a sum.

(a+b)2=(a+b)(a+b)=a2+ab+ba+b2=a2+2ab+b2(a+b)^2 = (a+b)(a+b) = a^2 + ab + ba + b^2 = a^2 + 2ab + b^2

The middle 2ab2ab appears because abab and baba are the same number — where that 2 comes from is the entire story. In the picture:

a b a b a2 ab ab b2
Cut a square of side a+b into four pieces and the 2ab appears

The big square, of area (a+b)2(a+b)^2, splits into a square a2a^2, a square b2b^2, and two rectangles of area abab each.

Square of a difference. No need to expand again — substitute b-b for bb in the formula just proved:

(ab)2=a2+2a(b)+(b)2=a22ab+b2(a-b)^2 = a^2 + 2a(-b) + (-b)^2 = a^2 - 2ab + b^2

Substituting into a proven formula is a perfectly good proof.

Sum times difference.

(a+b)(ab)=a2ab+bab2=a2b2(a+b)(a-b) = a^2 - ab + ba - b^2 = a^2 - b^2

The middle terms cancel — that is this formula's reason to exist. It is the rare product that comes out shorter than what you started with.

The (a+b)2=a2+b2(a+b)^2 = a^2 + b^2 trap

Watch out

One counterexample settles it. Take a=3a = 3, b=4b = 4:

(3+4)2=49,32+42=25.(3+4)^2 = 49, \qquad 3^2 + 4^2 = 25.

Not equal. The missing 2424 is exactly 2ab=2342ab = 2 \cdot 3 \cdot 4 — the two rectangles the shortcut leaves out of the picture.

It is worth knowing why the mistake feels plausible. (ab)2=a2b2(ab)^2 = a^2b^2 is true — that is the power-of-a-product law. Exponents do distribute over products; there is simply no such law over sums. To handle (a+b)2(a+b)^2 you must go back to the definition and multiply out (a+b)(a+b)(a+b)(a+b), and then the 2ab2ab is unavoidable. Whenever the shortcut tempts you, replay (3+4)232+42(3+4)^2 \neq 3^2 + 4^2.

The formulas as a pocket calculator

The product formulas are not only for symbols. Split a number cleverly and they do arithmetic for you:

212=(20+1)2=400+40+1=44121^2 = (20+1)^2 = 400 + 40 + 1 = 441
992=(1001)2=10000200+1=980199^2 = (100-1)^2 = 10000 - 200 + 1 = 9801
19×21=(201)(20+1)=4001=39919 \times 21 = (20-1)(20+1) = 400 - 1 = 399

One preview. This lesson taught you to expand (x+3)(x+7)(x+3)(x+7) into x2+10x+21x^2 + 10x + 21. The next unit asks the reverse question: given x2+10x+21x^2 + 10x + 21, can you fold it back into (x+3)(x+7)(x+3)(x+7)? Hands that have done a lot of expanding learn factoring fastest.