Discrete MathematicsBinomial Coefficients and Pascal's Triangle2 of 4
Binomial Coefficients and Pascal's Triangle · 2
The Binomial Theorem
We want to expand a high power like (x+y)10, or find the coefficient of a single term like x7y3, without multiplying out brackets one by one.
1
Expanding Brackets by Counting
To see where the terms of an expansion come from, we start by writing (x+y)3 as three separate brackets multiplied together and tracking how each term is built.
Expanding Brackets by Counting
Because every term comes from picking one letter from each bracket, we can find the coefficient of any term in (x+y)n just by counting how many ways we can choose which brackets give us y.
2
Building the Binomial Theorem with Combinations
Instead of listing every possible pick by hand, we can use combinations, written (kn) or C(n,k), to count how many ways to choose k brackets for y out of n brackets total.
Building the Binomial Theorem with Combinations
Text solution
List the possible powers of x and yPicking one letter from each of the 5 brackets in (x+y)5 means the exponents on x and y always add up to 5.
x5,x4y,x3y2,x2y3,xy4,y5
Count the bracket choices for a single termTo get x3y2, choosing 2 of the 5 brackets to give y automatically forces the other 3 brackets to give x.
(25)x3y2=2×15×4x3y2=10x3y2
Add the terms for all choices of k from 0 to 5Counting the ways to choose 0,1,2,3,4, or 5 brackets for y gives the complete expansion.
In the same way, to find the coefficient of x7y3 in (x+y)10, we count the ways to choose 3 of the 10 brackets for y:
(310)=3×2×110×9×8=120
So the x7y3 term is 120x7y3, and its coefficient is 120.
Putting this pattern together for any whole number n gives the Binomial Theorem:
(x+y)n=k=0∑nways to choosek brackets for y(kn)remaining n−kbrackets give xxn−kk bracketsgive yyk
In (x+y)5, every bracket not chosen for y is forced to give x, so the two exponents always add up to 5 and the coefficient of x5−kyk counts all (k5) ways to pick k brackets out of 5.
Each coefficient counts the ways to choose which of the five brackets give y, while every remaining bracket gives x.
3
Terms with Coefficients and Minus Signs
When the pieces inside the brackets have numbers or minus signs attached, we want to find the coefficient of a specific power of x, such as x3 in (2x−3)5, without losing track of the signs or extra powers.
Terms with Coefficients and Minus Signs
(2x−3)5
coefficient of x3=?
Text solution
Wrap each piece in parenthesesKeep the coefficient and the minus sign attached to their terms as (2x) and (−3).
(?5)(2x)?(−3)?
Match the exponents to the target power of xBecause only (2x) contains x, we must pick (2x) from 3 brackets to get x3, which leaves 5−3=2 brackets for (−3).
(25)(2x)3(−3)2
Apply the exponents to the numbers and signsRaise the entire piece inside each parenthesis to its outer power, then multiply the numbers together.
(25)(2x)3(−3)2=10⋅(23x3)⋅9=10⋅8x3⋅9=720x3
So the x3 term is 720x3, and its coefficient is 720.
4
Solving for the Right Power of x
When x is on top in one piece of the bracket and on the bottom in the other, the powers of x from the two pieces partially cancel each other out. We want to find the constant term (the term with no x) in (x2+x1)6, and then find the coefficient of x9 in (2x2−x1)12.
Solving for the Right Power of x
(x2+x1)6
constant term=?
Text solution
For a small number of brackets like (x2+x1)6, we can spot the split where the powers of x cancel:
Balance the powers of x on top and bottomPicking x2 from 2 brackets and x1 from 4 brackets gives x4 on top and x4 on the bottom.
(46)(x2)2(x1)4=15⋅x4⋅x41=15
So the constant term is 15.
When the exponent is larger, as in finding the coefficient of x9 in (2x2−x1)12, we rewrite x1 as x−1 and use algebra to solve for the number of brackets k:
Write the general term for k picks of the second piecePicking −x−1 from k brackets leaves 12−k brackets for 2x2.
(k12)(2x2)12−k(−x−1)k
Combine the powers of x into one exponentMultiply the exponents on each piece and add them together to find the resulting power of x.
(x2)12−k(x−1)k=x24−2k⋅x−k=x24−3k
Set the exponent equal to the target power and solve for kWe want x9, so we set the combined exponent equal to 9.
24−3k15k=9=3k=5
Plug k=5 back into the general termSubstitute k=5 and pull the numerical factors out in front of x9.
So the coefficient of x9 is −101,376 (on most exams, you can leave a large answer in combination form as −(512)⋅27).
If the problem asks for the coefficient of x10 in the same expansion, setting the exponent equal to 10 gives a fraction:
24−3k3kk=10=14=314
Because k counts brackets, k must be a whole number from 0 to 12. Since 314 is not a whole number, no x10 term exists in the expansion, and its coefficient is 0.
In (2x2−x1)12, trading one 2x2 bracket for a −x1 bracket drops the final exponent 24−3k by 3 at a time, jumping straight from x12 at k=4 to x9 at k=5 and skipping x10 completely.
Each bracket you switch trades two factors on top for one on the bottom, dropping the power by three and skipping the two powers in between.
5
Evaluating Sums of Combinations
Instead of expanding brackets into a sum, we sometimes start with a long sum of combinations, like (0n)+3(1n)+9(2n)+⋯+3n(nn), and want to find what the entire sum equals at once.
Evaluating Sums of Combinations
(0n)+(1n)+(2n)+⋯+(nn)=?
Plugging x=1 and y=1 into the Binomial Theorem turns every power of x and y into 1, showing that all the combinations in row n add up to 2n:
(0n)+(1n)+(2n)+⋯+(nn)=(1+1)n=2n
Plugging in x=1 and y=−1 alternates the signs, so for n≥1 the even and odd combinations cancel to 0:
(0n)−(1n)+(2n)−(3n)+⋯+(−1)n(nn)=(1−1)n=0
We can also run the expansion in reverse to evaluate a sum with powers attached.
Text solution
Match the visible power to the Binomial Theorem patternCompare ∑k=0n(kn)3k with ∑k=0n(kn)xn−kyk to see that 3k sits in the yk spot, so y=3.
k=0∑n(kn)3k
Restore the hidden power of 1Because 1n−k=1, the missing xn−k factor is 1n−k, which gives x=1.
k=0∑n(kn)1n−k3k
Pack the sum back into (x+y)nReplace the entire sum with (1+3)n.
k=0∑n(kn)1n−k3k=(1+3)n=4n
When both powers are already visible in the sum, we read x and y directly from the bases of the (n−k) and k powers:
k=0∑10(k10)210−k5k=(2+5)10=710
In the expanded sum for (x+y)5, setting x=1 hides the x5−k factor so the sum of (k5)yk packs into (1+y)5, while setting x=1 and y=−1 flips the odd powers negative so the whole sum cancels to 0.
Every sum of combinations with matching powers is just the Binomial Theorem with two numbers plugged in.
Key concepts
Every term in (x+y)n comes from picking the first piece from n−k brackets and the second piece from the remaining k brackets:
(x+y)n=k=0∑n(kn)xn−kyk
When x is in only one piece of the bracket
you do not need to set up an equation for k. The target power of x immediately tells you how many brackets must give the x piece, and the rest of the n brackets must give the other piece. For the x3 term in (2x−3)5, wrap each piece in parentheses and pick (2x) three times: (25)(2x)3(−3)2=720x3.
When x is in both pieces of the bracket
write the general term (kn)(first)n−k(second)k, rewrite fractions like x1 with negative exponents, and combine the powers of x into a single exponent in terms of k. In (2x2−x1)12, the x exponent is 24−3k; setting 24−3k=9 gives k=5. If solving for k gives a fraction, a negative number or a number bigger than n (like 24−3k=10⟹k=314), stop right there: the term does not exist and its coefficient is 0.
When you are given a sum of (kn) with powers
do not calculate the individual combinations. Read the bases of the (n−k) and k powers as x and y and pack the sum back into (x+y)n:∑k=010(k10)210−k5k=(2+5)10=710, and if only one power is visible, restore 1n−k first so ∑k=0n(kn)3k=(1+3)n=4n.
6
Practice
1
Find the coefficient of x6y3 in the expansion of (x+y)9.
Watch out: don't forget to divide 9×8×7=504 by 3!=6.
Out of 9 brackets, how many brackets need to give y to produce x6y3?
We choose 3 of the 9 brackets to give y (and the remaining 6 brackets to give x):
(39)=3×2×19×8×7
(Watch out: don't forget to divide 9×8×7=504 by 3!=6.)
=84
2
Find the coefficient of x2 in the expansion of (3x−2)5.
Watch out: apply the exponent 2 to the 3 inside (3x)2 so it becomes 9 rather than 3, which would give −240; and keep the negative sign on the odd power (−2)3=−8, or you will get +720.
Wrap the two pieces as (3x) and (−2): if (3x) is picked 2 times to get x2, how many of the 5 brackets are left for (−2)?
Picking (3x) from 2 brackets leaves 3 brackets for (−2):
(35)(3x)2(−2)3=10⋅32x2⋅(−8)
(Watch out: apply the exponent 2 to the 3 inside (3x)2 so it becomes 9 rather than 3, which would give −240; and keep the negative sign on the odd power (−2)3=−8, or you will get +720.)
=−720
3
Find the constant term (the term with no x) in the expansion of (x2−x2)6.
Watch out: remember to raise −2 to the 4th power. Leaving off (−2)4 gives 15, and forgetting that an even power makes (−2)4=+16 gives −240.
A constant term means x0. How can you split 6 brackets between x2 and −x2 so the powers of x on top and bottom match?
Picking x2 from 2 brackets and −x2 from 4 brackets gives x4 on top and x4 on the bottom (or from 2(6−k)−k=12−3k=0, so k=4):
(46)(x2)2(−x2)4=(46)⋅(−2)4
(Watch out: remember to raise −2 to the 4th power. Leaving off (−2)4 gives 15, and forgetting that an even power makes (−2)4=+16 gives −240.)
=240
4
Find the coefficient of x9 in the expansion of (2x3−x21)8.
Watch out: the power on 2 is 8−k=5, not k=3 which gives −448; and (−1)3 makes the coefficient negative rather than +1,792.
Write −x21 as −x−2, and combine the exponents from (x3)8−k and (x−2)k into a single expression in k.
In the general term (k8)(2x3)8−k(−x−2)k, the power of x is 3(8−k)−2k=24−5k. Setting 24−5k=9 gives 5k=15, so k=3:
(38)(2x3)5(−x−2)3=−(38)⋅25x9
(Watch out: the power on 2 is 8−k=5, not k=3 which gives −448; and (−1)3 makes the coefficient negative rather than +1,792.)
=−1,792
5
Find the coefficient of x8 in the expansion of (x3+x1)10.
Watch out: do not round k=5.5 to 5 or 6 to get (510)=252 or (610)=210. Since k is not a whole number, the x8 term does not exist.
Combine the x exponents from (x3)10−k and (x−1)k, set the result equal to 8, and check what kind of number k is.
In the general term (k10)(x3)10−k(x−1)k, the power of x is 3(10−k)−k=30−4k. Setting 30−4k=8 gives 4k=22, so k=211:(Watch out: do not round k=5.5 to 5 or 6 to get (510)=252 or (610)=210. Since k is not a whole number, the x8 term does not exist.)
=0
6
Evaluate the sum (08)+4(18)+42(28)+⋯+48(88).
Watch out: don't forget to add the hidden x=1, or you will compute 48=65,536 instead of 58.
The 4k factor sits in the yk spot. What hidden number is sitting in the missing x8−k spot?
Writing in the hidden 18−k factor matches ∑k=08(k8)18−k4k:
(1+4)8=58
(Watch out: don't forget to add the hidden x=1, or you will compute 48=65,536 instead of 58.)
=390,625
7
Evaluate ∑k=010(k10)310−k(−2)k.
Watch out: keep the minus sign on y=−2 rather than adding 3+2 to get 510=9,765,625.
Match 310−k and (−2)k directly to x10−k and yk in (x+y)10.
Packing x=3 and y=−2 back into (x+y)10 gives:
(3−2)10=110
(Watch out: keep the minus sign on y=−2 rather than adding 3+2 to get 510=9,765,625.)