2. Binomial Expansion and Theorem

Throughout your scientific journey you will likely come across a time where you have to solve an equation like \((x+y)^n\). We will know describe how you go about such a task and will highlight some interesting mathematical relations.

2.1. Definition of a binomial

Polynomials are expressions such as \(a_0 + a_1 x + a_2 x^2 + a_3 x^3\) where \(a_0,\ a_1,\ a_2,\, a_3\) are the polynomial coefficients and \(x\) is the variable. They can have multiple variables (e.g. \(x\) and \(y\)) such as \(a_0 + a_1 x + a_2 x y + a_3 x y^2\).

A binomial is a polynomial with two terms (e.g. \(x + y, x^3 + 1, 4.3 x^5 - 2.2 y\), etc).

The binomial expansionrefers to the computation of powers of binomials:

(2.1)\[(x+y)^n,\, n \in \mathbb{R}\]

Equation (2.1) is a general way to express a binomial expansion - the expansion of more complicated binomials can consider by “swapping in” other functions for the \(x\) and \(y\) (e.g. \(x\to 10 x^3\) and \(y \to \sqrt{17} e^x\)). In this section we will investigate the binomial expansion only for the case where \(n \in \mathbb{N}\).

2.2. The binomial formula

We now set out to calculate the polynomials produced by the expansion of powers of a binomial.

2.2.1. Expanding low powers of binomials by hand

It is possible to expand low powers of binomials (i.e. \(n=0,1,2,3,4,5\)), equation (2.1), by hand:

\[\begin{split}(x+y)^0 &= 1 \ , \\ (x+y)^1 &= x+y \ , \\ (x+y)^2 &= (x+y)(x+y) = x^2 + 2 x y + y^2 \ , \\ (x+y)^3 &= (x+y) (x+y)^2 = x^3 + 3 x^2 y + 2 x y^2 + y^3 \ , \\ (x+y)^4 &= (x+y) (x+y)^3 = x^4 + 4 x^3 y + 6 x^2 y^2 + 4 x y^3 + y^4 \ , \\ (x+5)^5 &= (x+y) (x+y)^4 = x^5 + 5 x^4 y + 10 x^3 y^2 + 10 x^2 y^3 + 5 x y^4 + y^5 \ .\end{split}\]

You can see symmetry and patterns in the polynomials on the right hand side of the expansions. For instance, the combined powers of the \(x\)’s and \(y\)’s are equal to the power of expansion \(n\) and the total number of terms is \(n+1\). But what is the pattern for the coefficients?

The answer to this is not trivial and is a fundamental sequence of numbers - the binomial coefficients.

The binomial coefficient

The binomial coefficent is defined as:

(2.2)\[ \binom{n}{k} = \frac{n!}{k! (n - k)!} \ ,\]

where \(n \in \mathbb{N} \) and \( 0 \leq k \neq n, \, k \in \mathbb{N}\).

Like the number \(\pi\), the binomial coefficient pops up in many unexpected places - particularly in counting problems (the bread-and-butter of the field of combinatorics). The binomial coefficient is the number of ways, disregarding order, that \(k\) objects can be chosen from \(n\) objects. This number \(\binom{n}{k}\) can be casually referred to as “n choose k”, and can be expressed by \(C^n_k\) and hence calculators encode the binomial coefficient by the “\(_n C _k\)” button.

2.2.2. Pascal’s triangle

A very old (it is thought first discovered in 115h century China), but very elegant, way of calculating the binomial coefficients (equation (2.2)) can be found using Pascal’s triangle.

The binomial coefficients have a recurrence relation hidden within them:

\[\binom{n+1}{k} = \binom{n}{k} + \binom{n}{k-1} \]

This follows from the adding of related terms in Pascal’s triangle:

../_images/pascal.png

Fig. 2.1 Pascal’s triangle: a table of binomial coefficients \(\displaystyle \binom{n}{k}\).

In Pascal’s triangle the left-most and right-most values are initially filled out according to the result \(\displaystyle \binom{n}{0} = \binom{n}{n} = 1\). Then, the recursive formula \(\displaystyle \binom{n+1}{k} = \binom{n}{k} + \binom{n}{k-1}\) is used to fill out the rest of each row. The trick is that each value is calculated by adding the two values from the row above that are in the same column and the preceding column.

Pascal’s triangle provides a quick way of finding binomial coefficients by hand. For instance, to compute the expansion of \((x+y)^6\), we can read off the coefficients from the 6th row in Pascal’s triangle:

\[(x+y)^6 = x^6 + 6 x^5 y + 15 x^4 y^6 + 20 x^3 y^3 + 15 x^2 y^4 + 6 x y^5 + y^6 \ .\]

2.2.3. Factorials

We briefly note that the “\(!\)” symbol represents a factorial of an integer. A factorial of integer number \(n\) is defined as the product of all the numbers from \(1\) to \(n\):

\[n! = n \times (n-1) \times (n-2) \times \dots \times 2 \times 1\]

There is also a special case of factorials \(0!=1\) - this might seem unintiutive, but it follows from the reurrence relation

The special cases of the binomial coefficient (equation (2.2)) are thus \(\binom{n}{0}= 1\), \(\binom{n}{1} = n\), \(\binom{n}{n}=1\) and \(\binom{n}{n-1} = n\).

These examples highlight a nice symmetrical property of the binomial coefficient: \(\binom{n}{k} = \binom{n}{n-k}\) (where \(0 \le k \le n\)).

2.2.4. Statement of the binomial formula

The binomial formula

The binomial formula (otherwise known as the binomial theorem) is defined as:

(2.3)\[\begin{split} (x+y)^n &= \sum_{k=0}^n \binom{n}{k} x^k y^{n-k} \\ &= \binom{n}{0} x^0 y^n + \binom{n}{1} x^1 y^{n-1} + \dots + \binom{n}{n-1} x^{n-1} y^{1} + \binom{n}{n} x^n y^0 \end{split}\]

You are not required to be familiar with the details of its derivation but do need to be able to apply the formula to compute binomial expansions. This formula also shows you why \(\displaystyle \binom{n}{k}\) are called binomial coefficients - because they are the coefficients of the polynomial produced by the expansion of powers of binomials.