Math Atlas

이항정리The Binomial Theorem

Algebra 2Algebra 2 · 9. 세기와 확률9. Counting & Probability

학습 목표
  • 이항정리 (a+b)n=nCkankbk(a+b)^n = \sum {}_n\mathrm C_k\, a^{n-k} b^k를 "항 선택" 논증으로 증명한다.
  • 파스칼의 규칙을 조합으로 증명하고, 삼각형으로 계수를 조립한다.
  • 특정 항 찾기와 대입 항등식(2n=nCk2^n = \sum {}_n\mathrm C_k 등)을 다룬다.

전개의 계수는 어디서 오는가

(a+b)2=a2+2ab+b2(a+b)^2 = a^2 + 2ab + b^2, (a+b)3=a3+3a2b+3ab2+b3(a+b)^3 = a^3 + 3a^2b + 3ab^2 + b^3 — 계수 1,2,11, 2, 11,3,3,11, 3, 3, 1은 우연이 아니다.

(a+b)n(a+b)^n은 괄호 nn개의 곱이다:

(a+b)(a+b)(a+b)(a+b)(a+b)\cdots(a+b)

전개하면 각 괄호에서 aa 또는 bb를 하나씩 골라 곱한 것들의 합이 된다. ankbka^{n-k}b^k 항이 되려면 nn개의 괄호 중 bb를 내놓을 괄호 kk개를 고르면 된다 — 고르는 방법이 nCk_n\mathrm C_k가지이므로 그 항이 정확히 nCk_n\mathrm C_k번 생긴다:

(a+b)n=k=0nnCkankbk\boxed{(a+b)^n = \sum_{k=0}^{n} {}_n\mathrm C_k\, a^{n-k} b^k}

이항정리다. 전개의 계수가 조합인 이유 — 전개 자체가 선택이기 때문이다. 그래서 nCk_n\mathrm C_k이항계수라고도 부른다.

파스칼의 삼각형: 계수의 조립 라인

이항계수들은 아래 규칙으로 층층이 쌓인다:

nCk=n1Ck1+n1Ck(파스칼의 규칙)_n\mathrm C_k = {}_{n-1}\mathrm C_{k-1} + {}_{n-1}\mathrm C_k \qquad (\text{파스칼의 규칙})

증명(조합)nn개에서 kk개를 뽑는 선택을, 특정한 하나의 원소(마지막 원소라 하자)의 포함 여부로 가른다: 포함하면 나머지 n1n-1개에서 k1k-1개(n1Ck1_{n-1}\mathrm C_{k-1}), 포함하지 않으면 n1n-1개에서 kk개(n1Ck_{n-1}\mathrm C_k). 두 갈래는 배반이고 전부다 — 합의 법칙으로 끝. \blacksquare

이 규칙이 만드는 것이 파스칼의 삼각형이다 — 각 수가 바로 위 두 수의 합:

1 1 1 1 2 1 1 3 3 1 1 4 6 4 1 1 5 10 10 5 1 +
위 두 수의 합이 아래 수 — 4C1 + 4C2 = 5C2가 삼각형의 벽돌 한 장.

(a+b)n(a+b)^n의 계수가 궁금하면 nn행을 읽으면 된다.

특정 항 찾기: 일반항 한 줄

전개 전체가 아니라 한 항만 필요할 때는 일반항 nCkankbk_n\mathrm C_k\, a^{n-k} b^k에서 조건에 맞는 kk를 찾는다.

예제

(x+2)5(x + 2)^5에서 x3x^3의 계수: x5k=x3x^{5-k} = x^3에서 k=2k = 2

5C222=104=40._5\mathrm C_2 \cdot 2^2 = 10 \cdot 4 = 40.

대입의 마법: aa, bb에 수를 넣으면

이항정리는 항등식이라 아무 수나 대입할 수 있다. a=b=1a = b = 1:

2n=nC0+nC1++nCn2^n = {}_n\mathrm C_0 + {}_n\mathrm C_1 + \cdots + {}_n\mathrm C_n

— 조합의 총합이 2n2^n. 세기로도 같은 결론: nn개짜리 집합의 부분집합은 크기별로 세면 좌변의 합, 원소마다 넣을지 말지(22갈래씩)로 세면 2n2^n한 대상의 두 셈이다. a=1,b=1a = 1, b = -1을 넣으면 교대합이 00 — 연습에서 그 의미(짝수 크기 부분집합 수 == 홀수 크기)를 캔다.

주의

(2xy)4(2x - y)^4 같은 전개에서 계수와 부호를 함께 넣어라 — bb 자리에 y-y 전체가 들어가므로 (y)k(-y)^k의 부호가 살아 있다. 그리고 x3x^3의 계수를 물으면 nCk_n\mathrm C_k만이 아니라 상수 배율까지 곱한 값이 답이다(4040이지 1010이 아니다).

Goals
  • Prove the binomial theorem (a+b)n=nCkankbk(a+b)^n = \sum {}_n\mathrm C_k\, a^{n-k} b^k by the "term selection" argument.
  • Prove Pascal's rule combinatorially and assemble coefficients with the triangle.
  • Find specific terms, and mine substitution identities (2n=nCk2^n = \sum {}_n\mathrm C_k and kin).

Where expansion coefficients come from

(a+b)2=a2+2ab+b2(a+b)^2 = a^2 + 2ab + b^2 and (a+b)3=a3+3a2b+3ab2+b3(a+b)^3 = a^3 + 3a^2b + 3ab^2 + b^3 — the coefficients 1,2,11, 2, 1 and 1,3,3,11, 3, 3, 1 are no accident.

(a+b)n(a+b)^n is a product of nn brackets:

(a+b)(a+b)(a+b)(a+b)(a+b)\cdots(a+b)

Expanding sums every way of picking aa or bb from each bracket and multiplying. To land the term ankbka^{n-k}b^k, simply choose which kk brackets contribute bb — done in nCk_n\mathrm C_k ways, so that term arises exactly nCk_n\mathrm C_k times:

(a+b)n=k=0nnCkankbk\boxed{(a+b)^n = \sum_{k=0}^{n} {}_n\mathrm C_k\, a^{n-k} b^k}

The binomial theorem. Coefficients are combinations because expansion is selection — whence the name binomial coefficients for nCk_n\mathrm C_k.

Pascal's triangle: the coefficient assembly line

The binomial coefficients stack by the rule

nCk=n1Ck1+n1Ck(Pascal’s rule)_n\mathrm C_k = {}_{n-1}\mathrm C_{k-1} + {}_{n-1}\mathrm C_k \qquad (\text{Pascal's rule})

Proof (combinatorial) — split the kk-from-nn selections by whether one particular element (say the last) is included: include it, and choose k1k-1 from the other n1n-1 (n1Ck1_{n-1}\mathrm C_{k-1}); exclude it, and choose kk from n1n-1 (n1Ck_{n-1}\mathrm C_k). The two branches are exclusive and exhaustive — the addition principle finishes. \blacksquare

This rule builds Pascal's triangle — each entry the sum of the two above:

1 1 1 1 2 1 1 3 3 1 1 4 6 4 1 1 5 10 10 5 1 +
Two above summing to one below — 4C1 + 4C2 = 5C2, one brick of the triangle.

Want the coefficients of (a+b)n(a+b)^n? Read row nn.

Finding one term: the general term, one line

When only one term is wanted, find the kk fitting the condition in the general term nCkankbk_n\mathrm C_k\, a^{n-k} b^k.

Example

The coefficient of x3x^3 in (x+2)5(x + 2)^5: from x5k=x3x^{5-k} = x^3, k=2k = 2

5C222=104=40._5\mathrm C_2 \cdot 2^2 = 10 \cdot 4 = 40.

The magic of substitution

The binomial theorem is an identity — any numbers may enter. With a=b=1a = b = 1:

2n=nC0+nC1++nCn2^n = {}_n\mathrm C_0 + {}_n\mathrm C_1 + \cdots + {}_n\mathrm C_n

— the combinations total 2n2^n. Counting agrees: the subsets of an nn-element set, tallied by size, give the left side; tallied element-by-element (in or out, 22 branches each), give 2n2^none object, two counts. Substituting a=1,b=1a = 1, b = -1 makes the alternating sum vanish — the exercises mine its meaning (as many even-sized subsets as odd).

Watch out

In expansions like (2xy)4(2x - y)^4, substitute coefficient and sign together — the slot bb receives all of y-y, so (y)k(-y)^k keeps its sign alive. And "the coefficient of x3x^3" means the value with all constant factors multiplied in (4040, not 1010).