the binomial theorem - arizona state universityboerner/mat243/6.4 binomial...the binomial theorem...
TRANSCRIPT
The Binomial Theorem
Introduction
You should be familiar with the following formula:
π₯ + π¦ 2 = π₯2 + 2π₯π¦ + π¦2
The binomial theorem explains how to get a corresponding expansion when the exponent is an arbitrary natural number.
Deriving the Binomial TheoremLet us ponder the expression
π₯ + π¦ π = (π₯ + π¦)(π₯ + π¦)β― (π₯ + π¦)π factors
To expand this into a sum, we need to multiply βeverything by everythingβ. More precisely, we need to take a sum of all products of the form
factor chosen from the first parenthesis timesfactor chosen from the second parenthesis timesfactor chosen from the third parenthesis etc⦠timesfactor chosen from the last parenthesis.
For example, if π = 5, then one of these factors is π₯ β π₯ β π¦ β π₯ β π¦ = π₯3π¦2.
Of course, we also get π₯3π¦2 by selecting the three xβs and the two yβs from different parentheses. Here comes the key idea:
There are πΆ(5,3) ways of selecting the three parentheses from which we select x. Therefore, there are as many terms π₯3π¦2 in the expansion, andtherefore, πΆ(5,3) is the coefficient of the term π₯3π¦2 in the expansion.
The Binomial Theorem
Letβs generalize this understanding. In the expansion ππ π₯ + π¦ π, the coefficient of the term π₯ππ¦πβπ is πΆ(π, π). Therefore, since the expansion contains these (and only these) types of terms for π = 0 to π = π,
π₯ + π¦ π =
π=0
π
πΆ(π, π)π₯ππ¦πβπ
Due to the symmetry of combinations, we can also write this formula as
π₯ + π¦ π =
π=0
π
πΆ(π, π)π₯πβππ¦π
This form, where the powers of π₯ are decreasing, is more common.
It is also common to use the notation πΆ π, π = ππ
here. The fact that combinations
appear as coefficients in the binomial theorem explains why there are also known as binomial coefficients.
Example 1
π₯ + π¦ 3 = πΆ 3,0 π₯3π¦0 + πΆ 3,1 π₯2π¦1 + πΆ 3,2 π₯1π¦2 + πΆ 3,3 π₯0π¦3
When we simplify these types of formulas, it is helpful to remember that πΆ π, 0 = πΆ π, π = 1 for all natural numbers π, since there is exactly one way to make an unordered selection of no elements, or all elements, from n elements.
Furthermore, πΆ π, 1 = πΆ π, π β 1 = π for all natural numbers π, since there are exactly π ways to make an unordered selection of 1 elements, or all but one elements, from n elements.
Thereforeπ₯ + π¦ 3 = π₯3 + 3π₯2π¦ + 3π₯π¦2 + π¦3
Example 2
By the binomial theorem, 2π₯ β 3π¦ 4 equals
=4
02π₯ 4 +
4
12π₯ 3 β3π¦ +
4
22π₯ 2 β3π¦ 2
+4
32π₯ β3π¦ 3 +
4
4β3π¦ 4.
Simplifying this, we get
16π₯4 + 4 β 8π₯3 β β3π¦ + 6 β 4π₯29π¦2 + 4 β 2π₯ β β27π¦3 + 81π¦4.
The final simplification of this sum is
2π₯ β 3π¦ 4 = 16π₯4 β 96π₯3π¦ + 216π₯2π¦2 β 216π₯π¦3 + 81π¦4.
Example 3Simplify
30
223 +
30
324 +β―+
30
30231
without the use of a calculator.
Observe that this sum has many of the ingredients of a binomial expansion- binomial coefficients and ascending powers of a quantity. We identify π = 30 and π¦ = 2. There is no apparent π₯, which we fix by setting π₯ = 1. With these settings, the binomial theorem becomes
1 + 2 30 =
π=0
3030
π2π
This is almost equal to the given sum, except for the fact that the βkβ in the powers of 2 is one bigger and therefore does not match the βkβ in the bottom of the binomial coefficients, and the fact that the latter starts at 2, not 0.
The second problem is easily fixed by factoring out a factor of 2:
30
223 +
30
324 +β―+
30
30231 = 2
30
222 +
30
323 +β―+
30
30230 = 2
π=2
3030
π2π
Example 3, continued
The problem that π in the given sum starts at π = 2 is fixed by subtraction:
π=2
3030
π2π =
π=0
3030
π2π β
30
121 β
30
020
Simplifying this, we get
π=2
3030
π2π = 330 β 30 β 2 β 1 β 1
Therefore, our original sum has been simplified to 2 β (330 β 61):
30
223 +
30
324 +β―+
30
30231 = 2(330 β 61)
The Sum of Combinations
Inspired by the previous example, we recognize that interesting special cases of the binomial theorem are obtained for special values of π₯ and π¦.
π₯ = 1, π¦ = 1:
2π =
π=0
π
πΆ(π, π)
This shows that all the combinations for a given π add up to 2π. This confirms our interpretation of πΆ(π, π) as the number of subsets of size π of a set of size π. All those numbers must add up to the total number of subsets of a set of size π, which we already know to be 2π.
The Sum of Linearly Weighted Combinations
If we keep x arbitrary and only set π¦ = 1 in the binomial theorem, we get a function of π₯:
π π₯ = π₯ + 1 π =
π=0
π
πΆ(π, π)π₯π .
π is differentiable, so we can take the derivative:
πβ² π₯ = π π₯ + 1 πβ1 =
π=0
π
πΆ π, π ππ₯πβ1.
Now substituting π₯ = 1, we get the useful formula
π=0
π
πΆ π, π π = π2πβ1.
The Sum of Quadratically Weighted Combinations
We can take the derivative of πβ² and get
πβ²β² π₯ = π(π β 1) π₯ + 1 πβ2=
π=0
π
πΆ π, π π(π β 1)π₯πβ2.
Once again substituting π₯ = 1, we obtain
π=0
π
πΆ π, π π(π β 1) = π(π β 1)2πβ2.
We can rewrite this formula as
π=0
π
πΆ π, π π2 = π(π β 1)2πβ2+
π=0
π
πΆ π, π π
and substitute π2πβ1 for the second term. This yields
π=0
π
πΆ π, π π2 = π(π β 1)2πβ2+π2πβ1 = π(π + 1)2πβ2.
Using Distinguishable Permutations to Count Operations in the Shift-and-Add Binary Multiplication Algorithm (2)
Using the linear-weighted sum of combinations formula, we can complete the calculation we started in Permutations and Combinations. There, we showed that the average number ΰ΄€π of additions in the shift-and-add multiplication algorithm, over all possible n bit numbers is
ΰ΄€π =1
2π
π=0
π
πΆ(π, π) β π.
Using the binomial theorem, we find a closed form for the sigma sum:
π=0
π
πΆ(π, π) β π = 2πβ1π.
This yields the formula ΰ΄€π =π
2for the average number of additions
needed for the shift-and-add binary multiplication algorithm.
Using Distinguishable Permutations to Count Operations in the Shift-and-Add Binary Multiplication Algorithm (3)
In practice, the real question is what the total average runtime is of our multiplication algorithm.We might be asking this question if we are programming in ahigh-level language without arbitrary-precision integerarithmetic, and we set ourselves the task of implementingfast arbitrary-precision arithmetic from scratch. Anotherscenario is that we are doing assembly programming on aCPU that does not have a native multiplication instruction.In these situations, the algorithm would be expected torequire a certain base amount π of run time for each bit ofthe multiplier, i.e. each time its loop is executed, without theaddition, and an extra amount π just for the addition, whena multiplier bit is 1. Thus, if the multiplier has π bits, and π ofthem are set, the algorithm has a total run time of ππ + ππ.We ignore the small run time of initializing the product aszero.
Using Distinguishable Permutations to Count Operations in the Shift-and-Add Binary Multiplication Algorithm (7)
It follows that the average run time is is
1
2π
π=0
π
πΆ(π, π) β (ππ + ππ).
We can evaluate a sum of this type in closed form. Wefirst simply and then use our summation formulas:
ππ
2π
π=0
π
πΆ π, π
=2π
+π
2π
π=0
π
πΆ π, π π
=π2πβ1
= π +1
2π π.
Example 4Does the binomial expansion of 3π₯ +
2
π₯2
100contain π₯3, π₯5 and π₯7 terms? If yes, what are their
coefficients? Applying the binomial theorem, we get
3π₯ +2
π₯2
100
=
π=0
100
πΆ(100, π)(3π₯)π2
π₯2
100βπ
.
We simplify the product of factors that contain x on the right side using the laws of exponentiation:
(3π₯)π2
π₯2
100βπ
= 3π β 2100βπ β π₯π β π₯β200+2π = 3π β 2100βπ β π₯3πβ200.
This allows us to answer the first part of the question. All exponents of π₯ have the form 3π β 200with k an integer from 0 to 100. 3π β 200 = 3 and 3π β 200 = 5 have no integer solutions, and therefore, the binomial expansion contains no π₯3 or π₯5 terms. However, 3π β 200 = 7 has an integer solution in the range 0..100: π = 69. The corresponding term of the binomial expansion with that k value is
πΆ 100,69 β 369 β 2100β69 β π₯7.
Hence, the expansion coefficient of π₯7 is πΆ 100,69 β 369 β 231.
Example 5If a positive quantity π is increased by 1%, by how much does its 5th power increase?
Increasing r by 1% means multiplying it by 1.01. Therefore, its 5th power becomes
1.01π 5 = 1.015π5.
The quantity 1.015 is 1.05101005. . , so π5 increases by about 5.101%. Using the binomial theorem, we can get this approximation without the use of a calculator, solely based on arithmetic we can do in our heads:
1.01π 5 = π5 β 1 + 0.01 5
We now expand the factor on the right side, and ignore the higher than second powers of 0.01 since they are negligible:
1 + 0.01 5 β πΆ 5,0 β 15 β 0.010 + πΆ 5,1 β 14 β 0.011 + πΆ 5,2 β 13 β 0.012
Simplifying, we get 1 + 0.01 5 β 1 + 5 β 0.01 + 10 β 0.0001 = 1.051.
We see that the increase in π5 is approximately 5.1%.
The Binomial Theorem and the Exponential Function (1)
In some situations, we are dealing with expressions of the type 1 + β π where the exponent π is very large and β is near zero, i.e. the base is close to 1.
For example, the chance of winning the Powerball jackpot (with one ticket) is roughly 1 in 292 million. If 10 million people buy one ticket each for one specific drawing, what is the probability that no one will win the jackpot?
When we study probability, we will learn to draw the following conclusions: The probability p that any specific person wonβt win is p= 1- 1/292,000,000. If we raise that quantity to the power of 10 million, we get the probability that no one wins. Therefore, we are seeking to evaluate the quantity
1 β1
292,000,000
10,000,000
This is 1 + β π, with β = β1/292,000,000 and π = 10,000,000.
A TI-83 Plus evaluates this quantity as 0.9663331774. However, calculators may fail at such a task for large π. We need a better way to evaluate this kind of expression. Let us try the binomial theorem.
The Binomial Theorem and the Exponential Function (2)
The binomial theorem gives us the following expansion:
1 + β π = 1 + πβ +π(π β 1)
2β2 +
π(π β 1)(π β 2)
6β3 +β―+ βπ.
Since π = 10,000,000, this binomial expansion has 10 million terms. Consider though
that β = β1
292,000,000is very small in absolute value, and its powers β2, β3, etc. are far
smaller still. Perhaps most of the terms are negligibly small and can be dropped?
This seems reasonable, but we must not be so quick. There are still the binomial coefficients attached to the powers of β, and we know that they can be quite large.
The absolute value of the k-th term of the binomial expansion of 1 + β π is πΆ π, π |β|π .Using the definition of combinations, we can rewrite this as:
πΆ π, π |β|π =π π β 1 β β― β (π β π + 1)
π!|β|π .
The Binomial Theorem and the Exponential Function (3)
Observe that each of the π factors in the numerator is at most π:
πΆ π, π |βπ| β€π β π β¦ β π
π!|β|π =
π|β| π
π!.
Notice that π|β| =10,000,000
292,000,000=
5
146β 0.345 is a small quantity. Its powers π|β| π
decrease exponentially. The denominator π! grows even faster than exponential. This means that the quantities πΆ π, π |βπ| go to zero extremely quickly as π grows, and that we can obtain a good approximation by keeping only a few terms of the binomial expansion. For example, with just 3 terms, we get the very good approximation
1 β1
292,000,000
10,000,000
β 1 β5
146+
25
42632= 0.9663398β¦
In Calculus 2, you learn a technique for estimating and controlling the approximation error of a alternating sums and series. This would allow us to determine precisely how many terms we need to keep to satisfy a desired approximation accuracy. Here, it suffices that the binomial theorem can be used to approximate values of 1 + β π. Notice that this method works best when π β < 1.
The Binomial Theorem and the Exponential Function (4)
There is an even simpler approximation method available, one that only requires calc 1 knowledge. The expression 1 + β π may remind you of the limit definition of the exponential function:
ππ₯ = limπββ
1 +π₯
π
π
.
If π₯ is small and π is large, non-technically speaking, then
ππ₯ β 1 +π₯
π
π
.
If β is small, we can substitute π₯ = πβ and get 1 + β π β ππβ.
Applied to our lottery problem, we get
1 β1
292,000,000
10,000,000
β πβ5
146 = 0.966333β¦ .
Alternating Sum of Combinations (I)
π₯ = 1, π¦ = β1:
0 =
π=0
π
πΆ π, π (β1)π
This shows that the alternating sum of the combinations for a given π add up to 0.
Since the terms with odd kβs in this sum have negative signs in front of them, we can move them to the left side and get the following identity:
π=0,odd
π
πΆ π, π =
π=0,even
π
πΆ π, π
This means that for given π, the πΆ(π, π) with odd π add up to the same number as the πΆ(π, π) with even π.
Alternating Sum of Combinations (II)
Example: π = 5
πΆ 5,1 + πΆ 5,3 + πΆ 5,5 = 5 + 10 + 1 = 16
πΆ 5,0 + πΆ 5,2 + πΆ 5,4 = 1 + 10 + 5 = 16
You may think that this is not a particularly impressive identity after all, since both sums contain the same terms, just in a different order. This is generally true if π is odd. However, if π is even, then the terms are different (and there are different numbers of them too), so the fact that their sum is equal is not an obvious fact. Let us take π = 6 as a second example:
πΆ 6,1 + πΆ 6,3 + πΆ 6,5 = 6 + 20 + 6 = 32
πΆ 6,0 + πΆ 6,2 + πΆ 6,4 + πΆ 6,6 = 1 + 15 + 15 + 1 = 32
Pascalβs Triangle
There is another interesting relationship between combinations that is usually visualized by arranging the combinations in a triangular fashion called Pascalβs Triangle.
In Pascalβs Triangle, each combination is the sum of the two combinations diagonally above it:
π
π+
π
π + 1=
π + 1
π + 1
for integers π β₯ 1 and 1 β€ π < π.
As an exercise, you should try to prove this using the definition of combinations.
Image credit: Wikipedia public domain image.