Factorial is the number of ways to rearrange n items in a line.
n!=n(n−1)(n−2)...2(1)
with 0!=1!=1
The binomial coefficient is the number of ways to make a group of k distinct items from n options.
(kn)=r!(n−r)!n!
The binomial expansion formula for n∈N.
(a+b)n=r=0∑n(rn)an−rbr=an+nan−1b+(2n)an−2b2…
In the expansion, each term will multiply a from n−r out of n factors, and b from r factors. The binomial coefficient counts how many times it happens. For example, (a+b)2=a2+2ab+b2 with 2ab because it can be a in first factor times b in second factor, or b in first times a in second.
For HL candidates, we use combination because order does not matter in a⋅b and b⋅a.
This means that for every way to choose r items from n options, there is a corresponding way to choose n−r items from n options.
(rn)=(n−rn)
This row addition can be used to generate Pascal’s triangle.
(rn)+(r+1n)=(r+1n+1)
This means an item has two states: either in a particular group or not in the group. It sums up a row of Pascal’s triangle.
r=0∑n(rn)=2n
Note that there are n+1 terms in the nth row of Pascal’s triangle.
Example: Find the x5 term in the expansion of (2x2−3x1)4(3x−1)6.
If doing this by hand, first generate the Pascal’s triangle up to n=6.
111111112345613610151410201515161
Applying the binomial expansion formula, the general term for the power of x of the first binomial in the expanded form is x2(4−m)−m=x8−3m. Similarly, the general term for the second binomial is x6−n.
We are looking for
x8−3m⋅x6−n8−3m+6−n9=x5=5=3m+n
Solving over natural numbers with m≤4 and n≤6, the first solution is (m,n)=(1,6) and last solution is (m,n)=(3,0). This means (m,n)=(2,3) is also a solution. Note that (0,9) does not work as 9>6.
Then add up the products of these three multiplications.
We now find the coefficient, ignoring the powers of x.