Eli5 Can someone simply prove me use of combination in binomial expansion

242 views

Like when you expand (x+y)²= (1,1)x² + (2,1)xy + (1,1)y². Its obvious in this case but when the calculation gets complicated its hard to fit in your mind

In: 0

3 Answers

Anonymous 0 Comments

You can think of expanding binomials in terms of a probability tree/tree diagram.

If you have:

> (x + y)^n

if you write it out in full, you get *n* brackets of *(x + y)*, and when you multiply it you need to pick one term (*x* or *y*) from each bracket.

So if you want the *x^r y^(n-r)* term, you need to know how many ways you have got of picking *r* “x”s and *(n-r)* “y”s from a *n* things. Because you only have 2 options (x or y) that is the same as picking just the *r* “x”s (which is why the choose functions are symmetric – *nCr = nC(n-r)* – picking the *r* “x”s is the same as picking the other *(n-r)* “y”s).

And this is just the “choose” function; *nCr* gives you how many ways are there of picking “r” things from “n” options.

For example, if we have *(x+y)^4* we get:

> (x+y)(x+y)(x+y)(x+y)

Our choices are to pick the “x” from all for brackets (only one way to do that, “xxxx”), to pick 3 “x”s and one “y” (four ways for that: xxxy, xxyx, xyxx, yxxx), two of each (6 ways for this: xxyy xyxy xyyx yxxy yxyx yyxx), and then by symmetry, 4 ways to pick one “x” and three “y”s (the reverse of three “x”s), and finally one way to pick all four “y”s (yyyy). So we get:

> (x+y)^4 = x^4 + 4 x^3 y + 6 x^2 y^2 + 4 x y^3 + y^4

——–

If you want to know why the *nCr* formula works…

For the first of your *r* “x”s you have *n* to choose from (so n options, could be the first bracket, second bracket all the way to the final bracket). For the next you now have *n-1* options (as one bracket is already fixed). Then *n-2* for the third, and so on, all the way to the *r*th “x” for which you will have *n-r+1* options. Giving you:

> n (n-1) (n-2) … (n-r+1)

But the order in which you pick doesn’t matter. Picking the first “x” in the first bracket and the second “x” in the second bracket gives you the same result as picking the first “x” in the second bracket and the second “x” in the first bracket. For each option we need divide by the number of ways of re-arranging all those “x”s. Which is just how many ways we can place each “x” in any given pattern. For example, in xxxy, the first “x” can go in position 1, 2 or 3. Once we’ve fixed the first, the second “x” has two options. The third “x” is then fixed. Generalising to *n*, our first “x” has *r* choices (as there are *r* slots to fill), the next has *(r-1)* and so on, all the way down to 1. Meaning we have to divide by:

> r (r-1) (r-2) … 1

Giving us our formula:

> nCr = n (n-1) (n-2) … (n-r+1) / 1 2 3 … (r-1) r = n! / (n-r)! r!

Also gives a neat way to work out the next nCr value. nC0 = 1 for all n. nC1 = n for all n. Then for the next you multiply by the next number down (so *(n-1)*) and divide by the next number up (so 2). And so on.

For example, the “10Cr”s will give us:

> 1, 10, (10 * 9 / 2) = 45, (45 * 8 / 3) = 120, (120 * 7 / 4) = 210, (210 * 6 / 5) = 252, (252 * 5 / 6) = 210 … (and we can see how the pattern repeats.

———-

If you want to explore this further and check you really understand it, try multiplying out a “trinomial”, something like (x + y + z)^n

You are viewing 1 out of 3 answers, click here to view all answers.