This whole subtopic is higher level. Nothing in it is on an SL paper.
Educerie · IB Diploma · Mathematics: analysis and approaches
IB Mathematics AA 1.10 · HL only
Counting principles and the extended binomial theorem
How many ways can something happen, without listing them all, and what does (1+x)n look like when n is negative or a fraction?
What you will learn
HL Understand the multiplication and addition principles as the basis of every count.
HL Know when to use n!, nPr or nCr, and how to handle restrictions, cases and complements.
HL Understand the extended binomial expansion for negative and fractional powers and why it needs |b ÷ a| < 1.
HL Know how to use the first few terms of an expansion to approximate a value.
You must be able to
HL Expand (a + bx)^n for a negative or fractional n up to a given power and state where it is valid.
HL Calculate the number of arrangements or selections under restrictions such as together, apart or at least.
HL Explain whether order matters and choose between permutations and combinations accordingly.
HL Solve an equation involving nPr or nCr for n, rejecting impossible roots.
HL Find an unknown constant in a bracket from a given coefficient of an extended expansion.
HL Use an expansion, alone or combined with partial fractions, to approximate a value or a function.
In the exam. Paper 1 (no calculator): a counting question (4 to 7 marks), and an expansion such as (1−2x)1/2 up to x3 with its interval of validity (5 to 7 marks). Paper 2: counting with large numbers, often inside a probability question. Paper 3 uses 1.10 more often than either other paper: counting arguments and the extended expansion appear inside longer investigations, as a count to set up and then generalise, or an expansion used to approximate a value or to spot a pattern in coefficients. Most questions are "Find" questions: the work is the method, so every line of it earns marks.
1The two counting principles
The multiplication principle
The multiplication principle = if one choice has m ways and, for each of those, a second has n ways, the two together have m×n ways.
Listen for and: a sandwich and a drink, a first digit and a second digit.
The addition principle
The addition principle = if a choice has m ways orn different ways, with no overlap between the lists, it has m+n ways.
Listen for or: by bus or by train.
Figure 1 draws both. A tree has 3 branches that each split 2 ways. Two lists give one item to pick.
Figure 1 · "And" multiplies, "or" adds
When repetition is allowed, the options do not shrink.
Example: a locker code has one letter from P to T, then two digits, then one of the vowels A, E, U. It has 5×10×10×3=1500 possibilities.
When the two lists overlap, "or" needs a correction
An outcome in both lists is counted twice if you just add.
Example: how many whole numbers from 1 to 100 are divisible by 4 or by 6? There are 25 multiples of 4 and 16 multiples of 6. The 8 multiples of 12 (100÷12 rounded down) are in both lists.
25+16−8=33
2Arranging everything: n factorial
Now take away repetition. Six friends sit in a row of six cinema seats. The first seat takes any of the 6. The second has 5 people left, the third 4, and so on down to 1.
6×5×4×3×2×1=720
That product is 6!, read "six factorial". In general, n different objects can be arranged in a row in n! ways. Remember 0!=1: there is exactly one way to arrange nothing.
Figure 2 shows the idea behind every count here: fill the places one at a time, and multiply the choices at each place. It also points ahead. Stopping after three places gives 9×8×7, not 9!.
Figure 2 · Filling places one at a time
Simplifying factorials. Cancel the shared tail: 8!10!=90 and (n−1)!(n+1)!=(n+1)n.
Most questions add a restriction. A few moves handle almost all of them.
Deal with the restricted positions first
Seven different books stand on a shelf. One particular book must be at either end.
It takes one of the 2 end places. The other 6 books fill the remaining 6 places in 6! ways. Total 2×6!=1440.
Glue together things that must be together
If Ana and Ben must sit next to each other, tie them into one block (Figure 3).
Now there are 5 units to arrange: the block and the other four people. That is 5! ways. Inside the block, Ana and Ben can sit in 2! orders.
Figure 3 · Two people who must sit together
5!×2!=120×2=240
The block can be bigger. Six pupils line up and three named pupils must stand side by side. That is 4 units in 4! orders, and 3! orders inside the block, so 4!×3!=144.
There can also be several blocks. Four different poetry books and three different novels go on a shelf, each kind kept together. The two blocks stand in 2! orders. Then each block is arranged inside, so 2!×4!×3!=288.
Subtract from the total for "not". "Ana and Ben must not sit together" means everything except the arrangements where they do.
6!−5!×2!=720−240=480
Keep someone out of the ends
By filling the ends from everybody else. If Ana must not sit at either end, the end seats take 2 of the other 5 people in 5×4 ways. The middle is filled in 4! ways.
That gives 5×4×4!=480. It is also 6!−2×5!, the total minus the rows with Ana at an end.
Keep apart: place the others first, then use the gaps
Arrange the objects with no condition. Then slot the awkward ones into the gaps between them, at most one to a gap. k objects in a row leave k+1 gaps, counting both ends.
Use this when three or more must all be kept apart. "Total minus all together" still leaves the arrangements where just two of them touch.
Worked example 1 (gaps). A concert has 5 different poems and 4 different songs. In how many running orders are no two songs back to back?
poems first: 5!=120gaps: 6; the songs go into 4 of them, in order: 6P4=6×5×4×3=360total=120×360=43200
A fixed order between two people
If Ana must be somewhere before Ben, swapping their seats turns each such arrangement into one with Ben before Ana.
So exactly half of all arrangements qualify: 21×6!=360.
3Permutations: choosing some, in order
Permutation
A permutation = an ordered selection.
Example: nine runners race for gold, silver and bronze. Gold can go to any of 9. Silver goes to any of the 8 left. Bronze goes to any of 7. There are 9×8×7=504 possible podiums, as Figure 2 shows.
That is 9! with the unwanted tail 6! divided away, the form the formula booklet uses.
nPr=(n−r)!n! is the number of ways of choosing r objects from n different objects in order.
So 9P3=6!9!=504. In practice you never write the factorials out. nPr is r numbers multiplied together, counting down from n. On Paper 2 the GDC has an nPr function.
More places than objects
Three cars park in a row of 7 empty bays. That is 7P3=210 ways: 7 bays for the first car, 6 for the second, 5 for the third.
If the three must use neighbouring bays, the block of three can start at bay 1 up to bay 5. That is 5 positions. The cars order themselves inside it in 3! ways: 5×6=30.
Worked example 2. Paper 1. How many four-digit numbers can be made from the digits 1 to 9, with no digit repeated, if the number must be greater than 7000 and even?
Two places carry conditions. The first digit must be 7, 8 or 9. The last must be 2, 4, 6 or 8. They compete for the digit 8, so split on the first digit.
first digit 8: last digit 2, 4 or 6→1×3=3first digit 7 or 9: last digit 2, 4, 6 or 8→2×4=8middle two digits: any 2 of the 7 left, in order→7P2=42total=(3+8)×42=462
Restricted places go first. When they share an option, split into cases. Start from a free place and you cannot know what the restricted ones have left.
A place that cannot be 0. How many four-digit odd numbers can be made from the digits 0 to 9 with no digit repeated?
The last digit is odd: 5 choices.
The first digit is neither 0 nor the digit used at the end: 8 choices.
The middle two places take any of the 8 digits left, in order.
That gives 5×8×8P2=2240. Without the odd condition the count is 9×9P3=4536. 10P4=5040 is wrong, because it includes the 9P3=504 lists that begin with 0.
Letters of a word
PLANET has six different letters, so 6!=720 arrangements.
To start with a consonant and end with a vowel, the first place has 4 choices (P, L, N, T). The last has 2 (A, E). The four letters left fill the middle in 4! ways: 4×2×24=192.
Words with repeated letters, and arrangements round a circle, are not on the syllabus.
4Combinations: choosing some, order ignored
Combination
A combination = a selection where order does not matter.
Example: a committee of three chosen from nine people is the same committee whichever of them you name first.
Figure 4 links the two counts. Choosing 3 letters from A, B, C, D in order gives 4P3=24 ordered lists.
They come in groups of 3!=6 with the same three letters. If order does not matter, each group counts once. So there are 624=4 selections.
Figure 4 · Why ⁿCᵣ = ⁿPᵣ ÷ r!
nCr=r!nPr=r!(n−r)!n! is the number of ways of choosing r objects from n different objects when order does not matter.
This is the nCr of 1.9, where it counted the ways of choosing which r brackets supply the b. The committee of three from nine: 9C3=3!9P3=6504=84.
Every counting question turns on one decision, and Figure 5 puts it first. Ask: "if I swapped two of the chosen items, would I have something different?"
A podium, a code, a queue: yes, so use nPr.
A committee, a team, a set of lottery numbers: no, so use nCr.
Figure 5 · Choosing the right count
Two facts to use on sight
Symmetry. Choosing which r objects to take is the same as choosing which n−r to leave behind. So nCr=nCn−r, and nC0=nCn=1.
Neighbouring entries. Neighbouring entries of Pascal's triangle add up: nCr+nCr+1=n+1Cr+1. For example 9C3+9C4=84+126=210=10C4.
The triangle is named after Pascal, but it was known in China centuries earlier through Yang Hui.
Choose, then arrange
Rearranged, the link reads nCr×r!=nPr: choose which r objects, then put them in order.
Example: picking 3 of 8 volunteers and then giving them three different jobs is 8C3×3!=56×6=336=8P3.
When only one order is allowed, the arrangement step contributes a factor of 1. You just count the sets.
Example: four rings are taken from 9 rings of different sizes and stacked, each smaller than the one below. Every set of four can be stacked in exactly one way. So there are 9C4=126 stacks.
Groups without names
Splitting 8 players into two teams of 4 looks like 8C4=70. But choosing a team also fixes the other one, so each split is counted twice. There are 270=35 splits.
If the teams are labelled (Red and Blue), the 70 stands. In general, divide by k! when k groups of the same size have no labels.
How big these numbers get
A lottery that picks 6 numbers from 1 to 49 has 49C6=13983816 possible tickets.
Two tickets a week would take, on average, about 134 000 years to win. The guide asks whether it is ethical to sell such tickets to people who cannot picture numbers that large.
5Harder selections: cases, complements and conditions
Split into cases for exactly or at least when the cases are few.
Cases are joined by or, so add them.
Within a case, choices from different groups are joined by and, so multiply.
Worked example 3. Paper 1. An expedition crew of 5 is chosen from 5 medics and 9 climbers. In how many ways can this be done if the crew must contain at least 2 medics?
"At least 2 medics" means 2, 3, 4 or 5 of them, with the rest climbers.
Subtract from the total when the unwanted part is smaller than the wanted part. Here the unwanted crews are those with 0 or 1 medic.
all crews: 14C5=2002no medic: 9C5=126one medic: 5×9C4=5×126=630at least 2 medics: 2002−126−630=1246
Both routes agree. For "at least one climber" the complement is a single crew: 2002−5C5=2001.
A named person must be in, or out
In. Put one particular climber in the crew and choose the other 4 from the remaining 13: 13C4=715.
Out. Leave him out and choose all 5 from the other 13: 13C5=1287.
Check. The two add to 14C5=2002, as they must.
If two particular climbers refuse to go together, take away the crews that contain both of them (choose the other 3 from 12): 2002−12C3=2002−220=1782.
Counting inside a probability question
Probability is favourable outcomes over all outcomes. Count both the same way.
Example: eight friends sit in a random order in a row. The chance that two named friends are side by side is 8!7!×2!=82=41.
Choosing points
A handshake, a line or a diagonal is decided by a pair of points. A triangle is decided by three. So they are counted with nC2 and nC3.
Example: a 12-sided polygon has 12C2=66 pairs of vertices. 12 of those pairs are sides, so it has 66−12=54 diagonals.
Three points on one straight line make no triangle, so take those away. With 10 points, 6 of them on one line and no other three in line, there are 10C3−6C3=120−20=100 triangles.
Solving for n
Once r is fixed, nPr and nCr are polynomials in n.
Example: everyone at a gathering shakes hands once with everyone else, and there are 91 handshakes. Then nC2=91, so n(n−1)=182 and n=14. The root −13 is rejected.
Reject any root that is negative or too small for the selection to make sense.
Worked example 4. Paper 1. Given that nP3=20×nC2, where n≥3, find n.
n(n−1)(n−2)=20×2n(n−1)=10n(n−1)since n≥3,n(n−1)=0, so divide: n−2=10n=12
Say why you may divide by a common factor such as n(n−1): it is not zero, because n≥3. Use nCr=nCn−r to shorten the algebra. An awkward n+1Cn−1 is just n+1C2=2(n+1)n.
6The binomial theorem when n is not a whole number
In 1.9 the expansion of (1+x)n, for n a positive integer, could be written without nCr at all:
(1+x)n=1+nx+2!n(n−1)x2+3!n(n−1)(n−2)x3+⋯
Each coefficient is nCr written out. This form never asks you to choose r things from n, so nothing stops you putting in n=−1 or n=21.
Each coefficient comes from the one before by multiplying by rn−r+1. That is a quick way to check a run of them.
The formula booklet gives the extended version, but not the validity condition. You must know that.
(a+b)n=an(1+n(ab)+2!n(n−1)(ab)2+⋯),n∈Q. When n is not a positive integer the series is infinite, and it is valid only for ab<1.
Two things change when n stops being a positive whole number. Figure 6 shows the first.
Figure 6 · Coefficients of (1 + x)ⁿ for three values of n
The expansion never ends
For n=3, every coefficient from x4 on contains the factor (n−3)=0.
For n=−1 or n=21 the factors never reach zero. The series goes on for ever, and you are asked for the first few terms, "up to and including the term in x3".
The expansion is only valid for small x
An infinite series can only equal a finite number if its terms shrink fast enough. Take n=−1:
(1+x)−1=1−x+x2−x3+x4−⋯
That is a geometric series with first term 1 and common ratio −x. From 1.8 it converges only when ∣−x∣<1. Then its sum is 1−(−x)1=1+x1, exactly what it should be.
Put x=2 in. The right-hand side is 1−2+4−8+⋯, which never settles on a value. The left-hand side is 31.
Figure 7 shows the same thing on a graph. Inside −1<x<1, more terms bring the polynomial closer to the curve. Outside it, more terms make things worse.
Figure 7 · 1 ÷ 1 + x and the first few terms of its expansion
So whenever n is negative or a fraction, the condition for (1+x)n is ∣x∣<1, whatever n is. If x is replaced by something else, the condition applies to that something.
Worked example 5. Paper 1. Expand (1+32x)−3 in ascending powers of x up to and including the term in x3, and state the values of x for which the expansion is valid.
Here n=−3 and the "x" of the formula is 32x. Put it in brackets every time.
(1+32x)−3=1+(−3)(32x)+2!(−3)(−4)(32x)2+3!(−3)(−4)(−5)(32x)3+⋯=1−2x+6(94x2)−10(278x3)+⋯=1−2x+38x2−2780x3+⋯valid for 32x<1, so ∣x∣<23
Worked example 6. Paper 1. Find the expansion of (1−6x)1/3 in ascending powers of x up to the term in x3, and state where it is valid.
The formula's "x" is −6x, so the factor that carries a sign is raised to each power.
(1−6x)1/3=1+31(−6x)+2!31(−32)(−6x)2+3!31(−32)(−35)(−6x)3+⋯=1−2x+(−91)(36x2)+815(−216x3)+⋯=1−2x−4x2−340x3−⋯231(−32)=−91 and 631(−32)(−35)=16210=815valid for ∣−6x∣<1, so ∣x∣<61
The errors to avoid are the ones from 1.9: not raising the −6 to the power, and losing a minus sign.
When the bracket does not start with 1. Take out the first term as a factor, raised to the power n. The guide writes this step as (a+b)n=an(1+ab)n.
Worked example 7. Paper 1. Find the first three terms in the expansion of (27+9x)2/3, and state the values of x for which it is valid.
(27+9x)2/3=272/3(1+279x)2/3=9(1+3x)2/3=9[1+32(3x)+2!32(−31)(3x)2+⋯]=9[1+92x−91(9x2)+⋯]=9+2x−9x2+⋯valid for 3x<1, so ∣x∣<3
Two slips live in the first line.
The 27 must come out as 272/3=9, not 27.
The 9x inside must be divided by 27.
A multiple of x in the bracket. The same step works when the second term is bx. The "x" of the formula is abx. Then solve abx<1 for x. For (4−5x)−1/2:
(4−5x)−1/2=4−1/2(1−45x)−1/2=21[1+(−21)(−45x)+2!(−21)(−23)(−45x)2+⋯]=21[1+85x+83(1625x2)+⋯]=21+165x+25675x2+⋯valid for 45x<1, so ∣x∣<54
To explain why an expansion cannot be used at a particular x, show that the value breaks the condition. The expansion above is not valid at x=1, because 45×1=45≥1.
Finding an unknown from a coefficient. Build the coefficient of a chosen term from the formula and set it equal to the given number.
Worked example 8. Paper 1. The coefficient of x2 in the expansion of (1+kx)−4, where k>0, is 90. Find k, and then the coefficient of x.
2!(−4)(−5)(kx)2=10k2x210k2=90⇒k2=9⇒k=3(k>0)coefficient of x:(−4)(3)=−12
Without the condition k>0, both k=3 and k=−3 work. A question that does not restrict k wants both values.
7Products, sums and approximations
Worked example 9. Paper 1. Expand (2+5x)(1−2x)−1/2 in ascending powers of x up to and including the term in x2, and state the values of x for which the expansion is valid.
Expand the bracket with the power. Then multiply out, keeping only terms up to x2.
(1−2x)−1/2=1+(−21)(−2x)+2!(−21)(−23)(−2x)2+⋯=1+x+23x2+⋯(2+5x)(1+x+23x2)=2+2x+3x2+5x+5x2+⋯=2+7x+8x2+⋯valid for ∣−2x∣<1, so ∣x∣<21
The factor 2+5x is a polynomial, so it adds no restriction of its own.
Worked example 10. Paper 1. Express (1−x)(1+2x)6 in partial fractions, and hence find its expansion up to and including the term in x3, stating the values of x for which it is valid.
Partial fractions (1.11) turn one awkward fraction into two expansions you already know.
Write (1−x)(1+2x)6≡1−xA+1+2xB, so 6≡A(1+2x)+B(1−x). Putting x=1 gives 6=3A, so A=2. Putting x=−21 gives 6=23B, so B=4.
1−x2=2(1+x+x2+x3+⋯)(1−x)−1, valid for ∣x∣<11+2x4=4(1−2x+4x2−8x3+⋯)(1+2x)−1, valid for ∣x∣<21sum=6−6x+18x2−30x3+⋯
When several expansions are combined by adding or multiplying, the result is valid only where every piece is valid. Take the narrower condition. Here ∣x∣<1 and ∣x∣<21 together give ∣x∣<21.
Near x=0 the first few terms of a series are an excellent approximation to the function. Each extra term is a higher power of a small number. The guide names approximating 2, and this is how a surd is approximated.
Worked example 11. Paper 1. (a) Find the first three terms of the expansion of 49+x. (b) By choosing a suitable value of x, use your answer to find an approximation to 2.
49+x=491/2(1+49x)1/2=7[1+21(49x)+2!21(−21)(49x)2+⋯]=7[1+98x−19208x2+⋯]=7+14x−2744x2+⋯valid for ∣x∣<49x=1:50=52≈7+141−27441=2744194032≈5×274419403=1372019403≈1.414213
The true value is 1.414214 to six decimal places, so three terms are correct to five. Two choices made it work.
A small x.x=1 is small next to 49, so the terms shrink fast.
A square factor.50=25×2 leads back from 50 to 2.
The idea returns in AHL 5.19. There, Maclaurin series expand ex and ln(1+x) as power series in the same way.
You cannot substitute just any x
To approximate 50 straight from (1+x)1/2 you would need x=49. That is far outside ∣x∣<1, and the terms would grow instead of shrinking. Pull out a perfect square instead, as above.
The boundary is no better. 2=(1+1)1/2 has ∣x∣=1, which the condition excludes. The terms shrink so slowly that four of them give 1+0.5−0.125+0.0625=1.4375, a poor match for 1.4142….
Practice questions
43 questions on this note, from easy to hard. Each one you get right lights a star of this topic's constellation.
Practice · 1.10 Counting principles and the extended binomial theorem