AA HL · Proof, complex numbers and counting · course

Counting and the extended binomial theorem.

AA HL resourcesPDF

Counting is multiplying the number of choices at each step, then dividing when the order does not matter. The same $\binom nr$ that counts choices gives the coefficients of $(1+x)^{n}$; at HL the power $n$ may also be negative or a fraction, and the expansion becomes an infinite series that is only valid for small $x$.

ICounting principlesAHL 1.10 · product rule, $n!$, ${}^{n}P_r$, ${}^{n}C_r$, restrictions

I.1 The product principle

Definition 1

the product principle

If a first choice can be made in $m$ ways and then, whatever it was, a second in $n$ ways, the two together can be made in $m\times n$ ways. Or between two separate cases means add; and then means multiply. In particular, $n$ different objects can be put in a row in $n!=n(n-1)\cdots2\times1$ ways.
Example 1

A password is one letter (from $26$) followed by three different digits. How many passwords are there?

What you do
What you write
Step 1 Count each place in turn
$26$, then $10$, $9$, $8$
Step 2 Multiply
$26\times10\times9\times8=18\,720$

Apply

  1. A meal: one of $4$ starters, $6$ mains, $3$ desserts.
    Answer$72$
  2. Seven different books in a row.
    Answer$7!=5040$

I.2 Permutations and combinations

Definition 2

permutations and combinations

An ordered selection of $r$ objects from $n$ different objects is a permutation; an unordered one is a combination: $\displaystyle {}^{n}P_r=\frac{n!}{(n-r)!},\qquad {}^{n}C_r=\binom nr=\frac{n!}{r!\,(n-r)!}=\frac{{}^{n}P_r}{r!}.$ Order matters for a line, a code, a podium; it does not for a team, a committee, a hand of cards.
Example 2

Twelve runners race. In how many ways can the gold, silver and bronze medals go? In how many ways can three of them be picked for a relay squad?

What you do
What you write
Step 1 Podium: order matters
${}^{12}P_3=12\times11\times10=1320$
Step 2 Squad: order does not matter
$\binom{12}{3}=\dfrac{1320}{3!}=220$
Watch out 1
Not required in the exam: arrangements of identical objects and arrangements round a circle. Before counting, decide whether order matters; a team chosen with a captain is a combination times a choice of captain.

Apply

  1. A committee of $4$ from $9$ people.
    Answer$126$
  2. A code of $3$ different letters from A to H.
    Answer${}^{8}P_3=336$
  3. A team of $5$ from $8$, then a captain.
    Answer$56\times5=280$

I.3 Next to each other: one block

Property 1

restrictions

Together: glue the objects into one block, arrange the block with the rest, then multiply by the arrangements inside the block. Never next to each other: arrange the others first, then place the restricted objects in the gaps between and at the ends. At least one: often the total minus the number with none.
Example 3

Six different books, three of them on maths, are put on a shelf. In how many ways, if the maths books stay together?

What you do
What you write
Step 1 Glue into one block
$1$ block $+\,3$ books $=4$ objects
Step 2 Arrange the objects
$4!=24$
Step 3 Arrange inside the block
$3!=6$
Step 4 Multiply
$24\times6=144$

Apply

  1. Seven people in a row, two friends side by side.
    Answer$6!\times2=1440$

I.4 Never next to each other: the gaps

Example 4

Four boys and three girls, all different, stand in a row with no two girls next to each other. How many rows?

What you do
What you write
Step 1 Arrange the others first
boys: $4!=24$
Step 2 Count the gaps
between and at the ends: $5$ gaps
Step 3 Place the girls in the gaps, in order
${}^{5}P_3=60$
Step 4 Multiply
$24\times60=1440$
Figure 1 — Exam-style question 1 (c). Objects kept apart go into the gaps.

Apply

  1. Five different red flags and two different blue flags in a row, blues apart.
    Answer$5!\times{}^{6}P_2=3600$

I.5 At least one: the complement

Example 5

A committee of $4$ is chosen from $5$ men and $6$ women. How many committees contain at least one man?

What you do
What you write
Step 1 Total, with no restriction
$\binom{11}{4}=330$
Step 2 None: only women
$\binom64=15$
Step 3 Total minus none
$330-15=315$

Apply

  1. A group of $3$ from $4$ seniors and $6$ juniors, at least one senior.
    Answer$120-20=100$

IIThe binomial theorem for any rational powerAHL 1.10 · $(1+x)^{n}$, $n\in\mathbb{Q}$, validity $|x|\lt 1$

II.1 $(1+x)^{n}$ for a rational $n$

Property 2

the extended binomial theorem

For any rational $n$ and $|x|\lt 1$, $\displaystyle (1+x)^{n}=1+nx+\frac{n(n-1)}{2!}x^{2}+\frac{n(n-1)(n-2)}{3!}x^{3}+\cdots$ When $n$ is a positive integer the series stops after $n+1$ terms (SL 1.9). Otherwise it never stops: the terms used give an approximation, and the series is only valid for $|x|\lt 1$.
Example 6

Expand $(1+x)^{3/2}$ up to the term in $x^{3}$, and state where it is valid.

What you do
What you write
Step 1 The formula with $n=\tfrac32$, each factor in brackets
$1+\tfrac32x+\dfrac{\left(\frac32\right)\left(\frac12\right)}{2!}x^{2}+\dfrac{\left(\frac32\right)\left(\frac12\right)\left(-\frac12\right)}{3!}x^{3}$
Step 2 Simplify
$1+\tfrac32x+\tfrac38x^{2}-\tfrac1{16}x^{3}$
Step 3 Validity
$|x|\lt 1$

Apply

  1. $(1+x)^{1/4}$ up to $x^{2}$.
    Answer$1+\frac x4-\frac{3x^{2}}{32}$, $|x|\lt 1$
  2. $(1+x)^{-3}$ up to $x^{2}$.
    Answer$1-3x+6x^{2}$, $|x|\lt 1$

II.2 Validity and approximation

Example 7

Expand $(1-x)^{-1}$ up to $x^{3}$ and use it to approximate $\dfrac{1}{0.96}$.

What you do
What you write
Step 1 Expand with $n=-1$, $-x$ in brackets
$1+x+x^{2}+x^{3}$
Step 2 Choose $x$ inside $|x|\lt 1$
$1-x=0.96$: $x=0.04$
Step 3 SubstituteThe true value is $1.0416666\ldots$
$1+0.04+0.0016+0.000064=1.041664$
Figure 2 — Example 7. Inside $|x|\lt 1$ the series closes in; outside it does not.

Apply

  1. Use $(1+x)^{1/3}\approx1+\frac x3-\frac{x^{2}}9$ to approximate $\sqrt[3]{1.03}$.
    Answer$1.0099$
  2. Can the series of $(1-x)^{-1}$ with $x=3$ approximate $-\frac12$?
    AnswerNo: $x=3$ is outside $|x|\lt 1$

II.3 A bracket that does not start with 1

Property 3

a bracket that does not start with 1

Take out the first term first: $\displaystyle (a+bx)^{n}=a^{n}\left(1+\frac{b}{a}x\right)^{n},\qquad\text{valid for }\left|\frac{b}{a}x\right|\lt 1,\ \text{that is }|x|\lt \left|\frac ab\right|.$ The factor $a^{n}$ multiplies every term: $(4+x)^{1/2}=2\left(1+\tfrac x4\right)^{1/2}$.
Example 8

Expand $(8-x)^{1/3}$ up to $x^{2}$, and state where it is valid.

What you do
What you write
Step 1 Take out $a^{n}$
$8^{1/3}\left(1-\tfrac x8\right)^{1/3}=2\left(1-\tfrac x8\right)^{1/3}$
Step 2 Expand the bracket
$1+\tfrac13\left(-\tfrac x8\right)+\dfrac{\left(\frac13\right)\left(-\frac23\right)}{2!}\left(-\tfrac x8\right)^{2}=1-\tfrac x{24}-\tfrac{x^{2}}{576}$
Step 3 Multiply by $a^{n}$
$2-\tfrac x{12}-\tfrac{x^{2}}{288}$
Step 4 Validity
$\left|\tfrac x8\right|\lt 1$: $|x|\lt 8$
Watch out 2
The coefficients are $\dfrac{n(n-1)\cdots}{r!}$, not $\binom nr$ read from Pascal: Pascal's triangle has no row $-\tfrac12$. Signs alternate as soon as $n$ or $x$ is negative: write every factor in brackets.

Apply

  1. $(2+x)^{-1}$ up to $x^{2}$.
    Answer$\tfrac12-\tfrac x4+\tfrac{x^{2}}8$, $|x|\lt 2$

IIIExam-style questionsfrom the shortest to the longest · every one in steps, with its marks

A Counting

Exam-style question 1Paper 1 · no calculator · [Maximum mark: 7]

A gardener plants nine different shrubs in a straight row: four flowering shrubs and five evergreen shrubs. Find the number of possible rows in which

(a)the four flowering shrubs are next to each other;[2]
(b)the row starts and ends with an evergreen shrub;[2]
(c)no two flowering shrubs are next to each other.[3]
More questions like this

Working (a)

What you do
What you write
Step 1 Glue into one block
$6!\times4!$
The block of four and the five evergreens: six objects.
Step 2 Compute
$=17\,280$

Working (b)

What you do
What you write
Step 1 Fill the ends first
$5\times4\times7!$
Evergreens at both ends, then the seven others in any order.
Step 2 Compute
$=100\,800$

Working (c)

What you do
What you write
Step 1 Arrange the others first
$5!$ rows of evergreens
Step 2 Place in the gaps, in order
six gaps: ${}^{6}P_4=360$
Or $\binom64\times4!$.
Step 3 Multiply
$120\times360=43\,200$

Play this question in Mark it: find each mark yourself →

B The extended binomial theorem

Exam-style question 2Paper 1 · no calculator · [Maximum mark: 7]

Consider the function $f(x)=\sqrt{1+4x}$.

(a)Find the binomial expansion of $f(x)$ in ascending powers of $x$, up to and including the term in $x^{3}$.[3]
(b)State the set of values of $x$ for which this expansion is valid.[1]
(c)By choosing a suitable value of $x$, use your answer to part (a) to find an approximation to $\sqrt{26}$, correct to five decimal places.[3]
More questions like this

Working (a)

What you do
What you write
Step 1 The formula with $n=\tfrac12$
$1+\tfrac12(4x)+\dfrac{\frac12\left(-\frac12\right)}{2!}(4x)^{2}+\dfrac{\frac12\left(-\frac12\right)\left(-\frac32\right)}{3!}(4x)^{3}$
The general form with $n=\tfrac12$ and $4x$ in brackets.
Step 2 Simplify
$=1+2x-2x^{2}+4x^{3}$
A1 for two correct terms after $1$.

Working (b)

What you do
What you write
Step 1 Validity: $|4x|\lt 1$
$|4x|\lt 1$, $-\tfrac14\lt x\lt \tfrac14$

Working (c)

What you do
What you write
Step 1 Choose $x$ inside the interval
$\sqrt{26}=5\sqrt{1.04}=5\,f(0.01)$
Choosing $x=0.01$, inside the interval of (b).
Step 2 Substitute
$5(1+0.02-0.0002+0.000004)$
Step 3 Approximation
$\approx5.09902$

Play this question in Mark it: find each mark yourself →

Exam-style question 3Paper 1 · no calculator · [Maximum mark: 8]

Consider the expression $\dfrac{1+ax}{(2-x)^{2}}$, where $a\in\mathbb{R}$.

(a)Find the first three terms of the binomial expansion of $(2-x)^{-2}$ in ascending powers of $x$.[4]
(b)State the values of $x$ for which this expansion is valid.[1]
(c)The coefficient of $x^{2}$ in the expansion of $\dfrac{1+ax}{(2-x)^{2}}$ is $\dfrac12$. Find the value of $a$.[3]
More questions like this

Working (a)

What you do
What you write
Step 1 Take out $a^{n}$
$(2-x)^{-2}=2^{-2}\left(1-\tfrac x2\right)^{-2}$
Taking out the $2$ first.
Step 2 Expand with $n=-2$
$\tfrac14\left(1+(-2)\left(-\tfrac x2\right)+\dfrac{(-2)(-3)}{2!}\left(-\tfrac x2\right)^{2}\right)$
Step 3 Simplify
$=\tfrac14+\tfrac14x+\tfrac{3}{16}x^{2}$
A1 for two correct terms.

Working (b)

What you do
What you write
Step 1 Validity
$|x|\lt 2$

Working (c)

What you do
What you write
Step 1 Collect the $x^{2}$ terms
$\tfrac{3}{16}+a\times\tfrac14$
Two ways to make $x^{2}$: $1\times\tfrac3{16}x^{2}$ and $ax\times\tfrac14x$.
Step 2 Set equal to $\tfrac12$
$\tfrac3{16}+\tfrac a4=\tfrac12$
Step 3 Solve
$a=\tfrac54$

Play this question in Mark it: find each mark yourself →

C Counting on Paper 2

Exam-style question 4Paper 2 · calculator · [Maximum mark: 7]

A choir of six singers is chosen from seven sopranos and eight altos.

(a)Find the number of choirs that contain at least two sopranos.[3]
(b)The choir is chosen at random. Find the probability that it contains exactly three sopranos.[2]
(c)A choir of three sopranos and three altos stands in a line, sopranos and altos alternating. Find the number of possible lines.[2]
More questions like this

Working (a)

What you do
What you write
Step 1 Total
$\binom{15}{6}=5005$ in total
Step 2 None, then exactly one
none: $\binom86=28$; one: $7\times\binom85=392$
The complement: no soprano or exactly one.
Step 3 Total minus the rest
$5005-28-392=4585$

Working (b)

What you do
What you write
Step 1 Favourable over total
$\dfrac{\binom73\binom83}{\binom{15}6}=\dfrac{35\times56}{5005}$
Step 2 Compute
$=0.392$
$\tfrac{56}{143}$.

Working (c)

What you do
What you write
Step 1 Alternate, then arrange each group
$2\times3!\times3!$
Start with a soprano or with an alto.
Step 2 Compute
$=72$

Play this question in Mark it: find each mark yourself →

IVWhich method? Read the questionthe whole topic on one page

The question says
You write
Objects are “arranged in a row”, or form “a code”, “in order”: order matters, $n!$ or ${}^{n}P_r$.
multiply the choices place by place D1
People are chosen for “a team” or “a committee”, “chosen” with no order: order does not matter, $\binom nr$.
one $\binom nr$ per group, multiplied D2
Some objects must be “next to each other”: treat them as one block.
arrange the block with the rest, $\times$ inside P1
Some objects must have “no two next to each other”: place the others first and use the gaps.
others first, then ${}^{\text{gaps}}P_k$ P1
The question asks for “at least one” of something: count the complement.
total minus none P1
You must expand $(1+x)^{n}$ with $n\lt 0$ or $n\notin\mathbb{Z}$: $1+nx+\frac{n(n-1)}{2!}x^{2}+\cdots$, an infinite series.
each factor in brackets, then validity $|x|\lt 1$ P2
You must expand $(a+bx)^{n}$ with such an $n$: first write it as $a^{n}\left(1+\frac bax\right)^{n}$.
factor first; valid for $|x|\lt \left|\frac ab\right|$ P3
After an expansion, you must “approximate $\sqrt{k}$”: choose a value of $x$ inside the interval of validity.
substitute, then scale back P2
In the exam 1

command terms

Find the number of ways: show the product that counts them. State the values of $x$ for which … is valid: an inequality in $x$, from $|\ldots|\lt 1$. Hence: use the expansion just found.