Mascot image.

MA0 0

Math Prepa for University

Every lesson so far, in one document · 1 chapter

back to the contents

Lesson 1

Numbers, and Sets

Taught

We note early that the notes below and onwards assume the basic algebra and arithmetic of a GCSE math course; everything past that point is built up here from the start.

The Number Line

Two ideas carry almost all of what follows: the number line, which is where numbers live, and the set, which is how we talk about a collection of them at once.

We start with the number line. Here is an infinite line.

Figure 1.1. An infinite line.

The arrowheads are there to say that the line is meant to extend in both directions, to infinity. Now let us fix a point on this line (can be any point, but we do normally like it being in the middle), and label it 00.

0
Figure 1.2. A zero point fixed on the line.

This point represents the number zero, and it is the point against which every other number is measured. Numbers sitting to the left of 00 are called negative, numbers sitting to the right are called positive, and 00 itself is neither.

One thing is still missing; we can now say which side of 00 a point lies on, but not how far along it lies, so let us finally fix a unit of length.

01one unit
Figure 1.3. A unit of length fixed on the line.

This unit of length is what we use, among other things, to compare how far the other numbers sit from zero.

Definition 1.1 (The Number Line).

The infinite line above, together with its fixed zero point and its fixed unit of length, is the (real) number line. The numbers represented by the points of the number line are called real numbers, and the collection of all of them is written R\RR.

A few real numbers, and where they sit:

−π−2.2log(1/30)01√2e
Figure 1.4. Seven real numbers on the number line.

The Natural Numbers

The natural numbers are the numbers we count with. Counting is done by incrementing a quantity, one object at a time, and on the number line an increment is a move to the right by the unit length. The distance we have moved from zero is then the number of times we moved, which is exactly the number of objects counted.

Definition 1.2 (Natural Numbers).

The natural numbers (sometimes called whole numbers) are the numbers represented by those points of the number line that can be reached by starting at 00 and moving right by a whole unit length some number of times.

012345
Figure 1.5. The natural numbers. The point 00 is drawn hollow because we do not count it as one of them.

Remark (A Convention).

Whether 00 counts as a natural number is a matter of convention; but my personal preference is we do not count it, so N={1,2,3,},\NN = \{1, 2, 3, \ldots\}, and when we do want zero alongside them we write N0={0,1,2,}.\NN_0 = \{0, 1, 2, \ldots\}.

The Integers

The natural numbers count, but they cannot measure the difference between two counts; if an increment in quantity is a move to the right by the unit length, then a decrement is a move to the left by the unit length, and allowing both directions gives the integers.

Definition 1.3 (Integers).

The integers are the numbers represented by those points of the number line that can be reached by starting at 00 and moving in either direction by a whole unit length some number of times. The collection of all of them is written Z\ZZ.

−5−4−3−2−1012345
Figure 1.6. The integers.

Closure

One property that ordinary arithmetic quietly assumes has not been mentioned yet.

Definition 1.4 (Closure).

A collection of numbers is closed under an operation if carrying out that operation on any two of its members again produces a member of that same collection.

The real numbers are closed under addition, subtraction, multiplication and division: the sum, difference, product and ratio of any two real numbers is again a real number. Division is the one case needing a footnote, and we come back to it below.

Smaller collections need not behave so well: If aa and bb are natural numbers then so are a+ba + b and abab, and if aa and bb are integers then so are a+ba + b, aba - b and abab; but by our definition the naturals are not closed under subtraction, since 121 - 2 is not a natural number, and the integers are not closed under division, since 1/21/2 is not an integer. Each failure is a reason to enlarge the collection we are working with.

Problem 1.1.

Which of the four operations is the collection of negative integers closed under?

The Rational Numbers

The integers were forced on us by subtraction; division forces the next enlargement. Where an integer is what we get by laying whole units end to end, a rational number is what we get by first cutting the unit into equal segments.

Definition 1.5 (Rational Number).

A rational number is a real number that can be written as a fraction whose numerator is an integer and whose denominator is a nonzero integer; that is, xx is rational if and only if there are integers aa and bb with b0b \neq 0 such that x=a/b.x = a/b. The collection of all rational numbers is written Q\QQ.

Placing them on the line takes a little more work than placing the integers did. Given a positive integer bb, the number 1/b1/b is the length obtained by breaking the unit length into bb equal parts. For b=3b = 3:

11/31/31/3
Figure 1.7. The unit length broken into three equal parts.

The numbers of the form a/ba/b with aa an integer are then those reached by starting at 00 and moving left or right by 1/b1/b units some number of times, with aa deciding both the direction and the number of steps.

−2−1012−8/3−7/3−6/3−5/3−4/3−3/3−2/3−1/30/31/32/33/34/35/36/37/38/3
Figure 1.8. Thirds on the number line. Every integer is a whole number of thirds, three for each unit.

Nothing new happens when bb is negative, because then b-b is positive and a/b=a/b,a/b = -a/-b, so the picture for a negative denominator is the picture for a positive one.

Remark (Why the denominator cannot be zero).

In terms of the picture above, a/0a/0 asks us to break the unit into zero equal parts, which does nothing at all: there is no piece left to step by, so no point on the line gets named. The same objection can be made in one line. Dividing by bb is meant to undo multiplying by bb, so if a/0a/0 were a number qq we would need a=q0=0a = q \cdot 0 = 0. If a0a \neq 0 there is then no such qq at all, and if a=0a = 0 then every qq qualifies. Either there is no answer or there is no way to choose between the answers, so we leave a/0a/0 undefined.

The Rationals are Closed

The rationals are closed under addition, subtraction and multiplication as the integers are, and unlike the integers they are also closed under division. This is quick to see.

Let xx and yy be rational. By the definition we may write x=a/bx = a/b and y=c/dy = c/d, where aa, bb, cc, dd are integers and b0b \neq 0, d0d \neq 0. Then

x+y=ab+cd=ad+bcbd.x + y = \frac{a}{b} + \frac{c}{d} = \frac{ad + bc}{bd}.

The integers are closed under multiplication, so adad, bcbc and bdbd are integers; they are closed under addition, so ad+bcad + bc is an integer; and bd0bd \neq 0, since neither bb nor dd is zero. So x+yx + y is an integer over a nonzero integer, which is to say it is rational. The same follows for the rest. For the difference and the product,

xy=adbcbd,xy=acbd,x - y = \frac{ad - bc}{bd}, \qquad xy = \frac{ac}{bd},

and both are again an integer over a nonzero integer. For the quotient, suppose also that y0y \neq 0, so that c0c \neq 0; then

xy=abdc=adbc,\frac{x}{y} = \frac{a}{b} \cdot \frac{d}{c} = \frac{ad}{bc},

and bc0bc \neq 0, so x/yx/y is rational as well.

Problem 1.2.

Where exactly in the argument above was it used that bb and dd are nonzero? Would anything go wrong if aa or cc were zero?

Sets

The number line says what a single number is; to speak about many at once — the naturals, the integers, the solutions of an equation — we need the second idea.

Definition 1.6 (Set).

A set is a collection of distinguishable objects, mathematical or otherwise.

The objects need not be numbers. The set of all animals in this building called Bob is a perfectly good set, and so is the set of letters appearing in the word “banana”, which is the collection consisting of bb, aa and nn.

Definition 1.7 (Membership).

The objects collected in a set are its elements. If aa is one of the objects collected in the set AA, we say aa is an element of AA, or that aa belongs to AA, and write aA.a \in A. If aa is not one of them we write aAa \notin A, read ”aa is not in AA”.

Example 1.8.

Let BB be the set of animals in this building called Bob. If the cat is called Bob then the catB\text{the cat} \in B, and if the dog is called Rex then the dogB\text{the dog} \notin B. Numbers behave the same way: 2Z-2 \in \ZZ, while 2N-2 \notin \NN.

Subsets

In the example above, every animal called Bob is also an animal in the building. That situation is common enough to deserve a name: given two sets AA and BB, it may happen that every element of AA is also an element of BB, which is to say that whenever xAx \in A we also have xBx \in B.

Definition 1.9 (Subset).

A set AA is included in a set BB, or is a subset of BB, if every element of AA is also an element of BB. We write AB.A \subset B.

If every element of AA lies in BB and every element of BB lies in AA, then the two collections have exactly the same members, and we call them equal: A=BA = B precisely when ABA \subset B and BAB \subset A.

Remark.

Sometimes we want to say that AA is contained in BB and that at least one element of BB is missing from AA, so that the two are not equal. Then we call AA a proper subset of BB and write ABA \subsetneq B.

The collections of numbers built up in the first half of this chapter now line up in a chain,

NN0ZQR,\NN \subsetneq \NN_0 \subsetneq \ZZ \subsetneq \QQ \subsetneq \RR,

and every inclusion in it is proper: 00 lies in N0\NN_0 but not in N\NN, 1-1 lies in Z\ZZ but not in N0\NN_0, 1/21/2 lies in Q\QQ but not in Z\ZZ, and 2\sqrt{2} lies in R\RR but not in Q\QQ — the last of these being a claim we do not settle here, though Exercise 1.6 does.

Remark (Decorating the symbols).

Three decorations on these symbols come up constantly. A star removes zero, so Z\ZZ^{*}, Q\QQ^{*} and R\RR^{*} are the integers, rationals and reals apart from 00. A subscript plus keeps the non-negative ones and a subscript minus the non-positive ones, giving Z+\ZZ_{+}, Q+\QQ_{+}, R+\RR_{+} and Z\ZZ_{-}, Q\QQ_{-}, R\RR_{-}. The two can be combined: R+\RR_{+}^{*} is the set of strictly positive real numbers.

It is worth pointing out how much the symbol \subset resembles the symbol <<, and where the resemblance stops. Given two numbers aa and bb, exactly one of a<ba < b, a=ba = b, b<ab < a holds; two numbers cannot be different and yet fail to be comparable. Sets are not like this. Two sets can differ without either one being contained in the other.

Example 1.10.

Let A={1,2}A = \{1, 2\} and B={2,3}B = \{2, 3\}. Then ABA \neq B, but A⊄BA \not\subset B, since 1A1 \in A and 1B1 \notin B, and also B⊄AB \not\subset A, since 3B3 \in B and 3A3 \notin A. Neither set comes first.

Remark.

As in the example, a slash through the symbol denies it: A⊄BA \not\subset B says that AA is not a subset of BB, which is to say that at least one element of AA escapes BB. It is not used often.

Problem 1.3.

Is NN0\NN \in \NN_0? Is NN0\NN \subset \NN_0? These are not the same question.

Problem 1.4.

Is

3+434Q?\frac{\sqrt{3} + \sqrt{4}}{\sqrt{3} - \sqrt{4}} \in \QQ\,?

Listing and Describing

Describing a set in a sentence, as we have been doing, is exact but slow. Two shorter notations do most of the work. The first is simply to list the elements, separated by commas and enclosed in curly brackets. This is called the roster method:

A={2,3,5,7}.A = \{2, 3, 5, 7\}.

A list may be too long to write out, or infinite, or of a length depending on some variable. In those cases we write out enough of it to make the pattern plain and leave the rest implicit, using an ellipsis:

N={1,2,3,},{2,4,6,,100}.\NN = \{1, 2, 3, \ldots\}, \qquad \{2, 4, 6, \ldots, 100\}.

Remark.

There is some genuine ambiguity here, since the reader is expected to work out what pattern the "\ldots" is meant to suggest. Usually that is obvious. Sometimes it is not: {0,n,3,2,}\{0, n, 3, 2, \ldots\} is meaningless.

In contrast to a list, the second notation describes the members implicitly by a rule. This is set-builder notation: we write

{xx has some property},\{\, x \mid x \text{ has some property} \,\},

read “the set of all elements xx such that xx has that property”, the bar being read as “such that”. So the rationals, defined earlier in words, can be written

Q={ab  |  aZ and bZ with b0}.\QQ = \left\{\, \frac{a}{b} \;\middle|\; a \in \ZZ \text{ and } b \in \ZZ \text{ with } b \neq 0 \,\right\}.

Each notation has its own strength. A list says exactly what is in the set and nothing about why those things and not others; a rule says exactly why and leaves you to work out what actually satisfies it. The set {2,3,5,7}\{2, 3, 5, 7\} names its four members at a glance and hides that they are the primes below 1010.

Problem 1.5.

Write each of these sets both ways, as a list and by a rule: the even integers between 6-6 and 66; the integers whose square is 99; the real numbers whose square is 1-1.

Two Special Sets

The Empty Set

Calling a set a collection of objects is slightly misleading, because it suggests there has to be something there. There does not.

Every set carries with it a test for membership: given an object, either it belongs or it does not. Nothing in that test requires any object to pass it. Consider the set of all real numbers greater than 55 but less than 33. Any such number would belong to the set, and there is no such number, so the collection is empty — and it is still perfectly well defined, because we can still answer the membership question for every object we are handed.

Definition 1.11 (The Empty Set).

The set with no elements is called the empty set, written \varnothing.

Remark.

A set is well defined when, given any object, there is an objective rule deciding whether the object belongs to it or not: one of the two answers must happen, and not both. The sets we study are always of this kind. “The set of all large numbers” is not a set in this sense, since nothing decides whether 10610^6 belongs to it.

Remark (The empty set is not zero).

The number 00 and the empty set are not the same thing. Take the set of all numbers that are neither positive nor negative. Exactly one number qualifies, so the set is {0}\{0\}, which has one element and so is not empty. A box with a zero in it is not an empty box.

The Universe of Discourse

At certain times we wish to limit membership in a set not only by the rule but also by what is eligible for membership in the first place: when solving an equation about lengths, nobody intends “the colour blue” to be a candidate.

Definition 1.12 (Universe of Discourse).

The universe of discourse, usually written UU, is a set fixed in advance such that for every object bb and every set AA under discussion, bU and AU.b \in U \text{ and } A \subset U.

So, for instance, we may write {k{1,2,3,4}k2}={2,3,4},\{\, k \in \{1,2,3,4\} \mid k \geqslant 2 \,\} = \{2, 3, 4\}, where the eligible objects are the four listed and the rule then keeps three of them.

Once a universe is fixed, every set we can speak of is caught between two bounds: no set can have fewer elements than the empty set, and none can contain an object the universe does not, so

AU.\varnothing \subset A \subset U.
UAxy
Figure 1.9. A set AA drawn inside its universe UU, which is the rectangle surrounding it. Here xAx \in A, while yUy \in U but yAy \notin A.

A picture of this kind, with sets drawn as regions and the universe as the rectangle around them, is called a Venn diagram. It is a way of seeing an argument about sets rather than a way of settling one, but it is a very good way of seeing one.

The Arithmetic of Sets

Just as we combine two numbers to get a third, we can combine two sets to get a third. Doing so gives us an arithmetic of sets, and it has its own operations, its own rules, and its own closure.

Throughout this section every set is a subset of a fixed universe of discourse UU, as above.

Union

Definition 1.13 (Union).

The union of sets AA and BB, written ABA \cup B, is the set of all elements belonging to at least one of AA and BB:

AB={xxA or xB}.A \cup B = \{\, x \mid x \in A \text{ or } x \in B \,\}.
UAB
Figure 1.10. The union ABA \cup B is the whole of the shaded region.

The word “or” here is the inclusive one: it means at least one, not exactly one. If Tom goes to the shop, or Jerry does, or both of them do, then in every one of those three cases somebody from the union went.

Intersection

Definition 1.14 (Intersection).

The intersection of sets AA and BB, written ABA \cap B, is the set of all elements belonging to both AA and BB at once:

AB={xxA and xB}.A \cap B = \{\, x \mid x \in A \text{ and } x \in B \,\}.
UAB
Figure 1.11. The intersection ABA \cap B is the overlap.

The intersection of two sets can be empty even when neither set is. Take I=ZI = \ZZ, let AA be the even integers and BB the odd ones; no integer is both, so AB=A \cap B = \varnothing. This is one of the reasons the empty set has to exist at all: without it, the intersection of two perfectly good sets would sometimes fail to be a set.

Complement

Definition 1.15 (Complement).

The complement of a set AA, written AA', is the set of all elements of the universe UU that are not in AA:

A={xxU but xA}.A' = \{\, x \mid x \in U \text{ but } x \notin A \,\}.
UAA′
Figure 1.12. The complement AA' is everything inside the universe but outside AA.

The complement depends entirely on the universe. We never speak of all the non-AA’s in the world; only of all the elements of UU which are not in AA. Since everything under discussion lies in UU anyway, we could equally have written A=UAA' = U \cap A', and it is sometimes useful to remember that the II is silently there.

Relative Complement

Definition 1.16 (Relative Complement).

The relative complement of AA in BB, also called the difference and written BAB - A, is the set of all elements of BB that are not in AA:

BA={xxB but xA}.B - A = \{\, x \mid x \in B \text{ but } x \notin A \,\}.
UAB
Figure 1.13. The difference BAB - A: the part of BB that does not overlap AA.

The difference is not really a fourth operation, because it can be written with the three we already have:

BA=BA.B - A = B \cap A'.

An element of BAB - A is one that is in BB and is not in AA, and “not in AA” is exactly “in AA'”.

Combining the Operations

Expressions can be built up out of these operations as freely as arithmetic expressions are built out of ++ and \cdot, with brackets settling the order. So A(BC)A \cap (B \cup C) is read ”AA intersect the union of BB and CC”, and moving the bracket to give (AB)C(A \cap B) \cup C need not leave the set alone.

One combination is worth recording, because it is the picture of a union taken apart:

AB=(AB)(AB)(BA).A \cup B = (A \cap B') \cup (A \cap B) \cup (B \cap A').

The three pieces on the right are disjoint — no element lies in two of them — and they name the three regions of the diagram: the part of AA outside BB, the overlap, and the part of BB outside AA.

ABUABBA
Figure 1.14. A union broken into three disjoint parts.

What is True of All Sets

Not everything that looks natural is true. It is tempting to expect complementation to pass through a union the way a minus sign passes through a bracket, giving (AB)=AB(A \cup B)' = A' \cup B', and that is false in general. What is true is

(AB)=AB,(A \cup B)' = A' \cap B',

which is one of De Morgan’s laws: to be outside both AA and BB is to be outside AA and also outside BB, and the union has turned into an intersection along the way.

The distinction matters more than the particular formula. What we are after in this arithmetic are the statements that hold for all sets, not the ones that happen to come out right for a convenient choice of AA and BB.

Problem 1.6.

Draw the two-circle diagram and shade (AB)(A \cup B)'. Then shade ABA' \cup B' on a fresh copy, and ABA' \cap B' on another. Which two agree?

Problem 1.7.

Take U={1,2,3,4,5,6}U = \{1, 2, 3, 4, 5, 6\}, A={1,2,3}A = \{1, 2, 3\} and B={3,4}B = \{3, 4\}. Write out ABA \cup B, ABA \cap B, AA', BAB - A and (AB)(A \cup B)' as lists.

Problem 1.8.

Is ABA - B the same set as BAB - A? Compare with aba - b and bab - a for numbers.

Finally, both of the operations we started with are closed: given two sets, ABA \cup B is a set and ABA \cap B is a set, so the results can be combined again in their turn. That is what makes this an arithmetic rather than a collection of one-off constructions.

The Inclusion–Exclusion Principle

Write N(X)N(X) for the number of elements of a finite set XX. The question of this section is what NN does to a union, and the answer is not the one most people guess.

Counting a Union

The mistake to get out of the way first is treating \cup as though it were ++. A union does combine two sets, but it is not numerically additive unless the sets are completely separate.

Suppose 2020 students take Math 209, making up a set AA, and 3030 students take Bio 232, making up a set BB. Intuition says N(AB)=20+30=50N(A \cup B) = 20 + 30 = 50, and that is right if and only if no student takes both courses. Suppose 77 students take both. Those 77 are among the 2020 and they are also among the 3030, so adding 20+3020 + 30 counts each of them twice, although each of them is one person. That leaves 1313 taking only Math 209 and 2323 taking only Bio 232.

UAB13237
Figure 1.15. The three regions hold 1313, 77 and 2323 students, so 4343 students in all.

Counting the diagram region by region gives 13+7+23=4313 + 7 + 23 = 43 distinct students, and the general rule follows.

For finite sets AA and BB,

N(AB)=N(A)+N(B)N(AB),N(A \cup B) = N(A) + N(B) - N(A \cap B),

and this is called the inclusion–exclusion principle.

Here 20+307=4320 + 30 - 7 = 43, as counting the regions said it should be.

The intersection is the controlling factor. Every element of ABA \cap B contributes 11 to N(A)N(A) and another 11 to N(B)N(B) although it is only one element, so the sum N(A)+N(B)N(A) + N(B) counts the intersection exactly twice, and subtracting it once puts things right. The wrong answer 5050 minus the correct answer 4343 is 77, which is the size of the intersection and nothing else.

What the Two Sizes Alone Will Tell You

If all we are told is N(A)=20N(A) = 20 and N(B)=30N(B) = 30, we cannot recover N(AB)N(A \cup B); we can only bound it, since

N(AB)=50N(AB).N(A \cup B) = 50 - N(A \cap B).

At one extreme the sets are disjoint, N(AB)=0N(A \cap B) = 0 and N(AB)=50N(A \cup B) = 50. At the other, AA sits entirely inside BB, so N(AB)=20N(A \cap B) = 20 and N(AB)=30N(A \cup B) = 30. The union therefore has at least 3030 and at most 5050 elements, and by choosing the intersection we can arrange for any answer between the two.

Adding is Safe on Disjoint Regions

Behind all of this is one rule: numbers may be added when the regions they count are mutually exclusive. The three regions ABA \cap B', ABA \cap B and ABA' \cap B of Figure 1.14 do not overlap, so

N(AB)=N(AB)+N(AB)+N(AB),N(A \cup B) = N(A \cap B') + N(A \cap B) + N(A' \cap B),

and this addition needs no correction, because no element has been counted twice. The subtraction in the two-set formula is the price of using N(A)N(A) and N(B)N(B), which overlap, instead of the disjoint regions.

Remark (Finite sets only).

From here on every set is finite. The formula becomes troublesome for infinite sets, because we cannot reliably subtract one infinity from another. Take A=NA = \NN. If BB is the set of even natural numbers then ABA - B is the odd ones, which is infinite; but if BB is instead the set of natural numbers greater than 1010, then AB={1,2,,10}A - B = \{1, 2, \ldots, 10\}, which has exactly 1010 elements. In both cases AA and BB are infinite, so no arithmetic on their sizes alone can tell those two answers apart.

Example 1.17 (A Hand of Cards).

What is the chance of drawing a card that is either a heart or a face card from a standard deck of 5252?

There are 1313 hearts, making a set HH, and 1616 face cards — aces, kings, queens and jacks — making a set FF. The trap is to answer 13+16=2913 + 16 = 29. Four cards, the ace, king, queen and jack of hearts, lie in both sets, so N(HF)=4N(H \cap F) = 4 and

N(HF)=13+164=25.N(H \cup F) = 13 + 16 - 4 = 25.

So the chance is 25/5225/52, not the 29/5229/52 the intuitive count gives.

Three Sets

For finite sets AA, BB and CC the principle reads

N(ABC)=  N(A)+N(B)+N(C)N(AB)N(AC)N(BC)+N(ABC).\begin{aligned} N(A \cup B \cup C) = \;& N(A) + N(B) + N(C) \\ & - N(A \cap B) - N(A \cap C) - N(B \cap C) \\ & + N(A \cap B \cap C). \end{aligned}

The name says what is happening: include, then exclude, then include again. Follow an element that lies in all three sets. The first line counts it three times, once in each of N(A)N(A), N(B)N(B) and N(C)N(C). The second line subtracts it three times, once for each pair, which leaves it counted zero times. The third line adds it back once. It ends up counted once, which is correct. An element in exactly two of the sets is counted twice on the first line, subtracted once on the second and untouched by the third, so it too is counted once.

Example 1.18 (Language Classes).

Every student in a graduating class must take at least one of French, German or Spanish, giving sets FF, GG and SS with

N(F)=90,N(G)=80,N(S)=110,N(FG)=35,N(FS)=40,N(GS)=50,\begin{aligned} N(F) &= 90, & N(G) &= 80, & N(S) &= 110, \\ N(F \cap G) &= 35, & N(F \cap S) &= 40, & N(G \cap S) &= 50, \end{aligned}

and N(FGS)=20N(F \cap G \cap S) = 20. How large is the class?

Straight from the formula,

N(FGS)=90+80+110354050+20=280125+20=175.N(F \cup G \cup S) = 90 + 80 + 110 - 35 - 40 - 50 + 20 = 280 - 125 + 20 = 175.

The diagram gets there another way, by filling the seven disjoint regions from the inside out. Put 2020 in the centre. Each pair intersection already contains that 2020, so the pair-only regions hold 3520=1535 - 20 = 15, 4020=2040 - 20 = 20 and 5020=3050 - 20 = 30. Each single set contains the three regions just filled, so the parts taken by one language alone hold

90(15+20+20)=35,80(15+20+30)=15,110(20+20+30)=40.90 - (15 + 20 + 20) = 35, \qquad 80 - (15 + 20 + 30) = 15, \qquad 110 - (20 + 20 + 30) = 40.
FGS35152015304020
Figure 1.16. The seven disjoint regions of FGSF \cup G \cup S, filled from the centre outwards.

Adding the seven regions, which is safe because they do not overlap,

35+15+40+15+20+30+20=175,35 + 15 + 40 + 15 + 20 + 30 + 20 = 175,

agreeing with the formula. The diagram carries more than the total: it also shows, for instance, that 1515 students took German and neither of the other two.

More Than Three

The pattern continues, with the signs alternating. Add the sets taken one at a time; subtract the intersections taken two at a time; add those taken three at a time; subtract those taken four at a time; and carry on alternating until the intersection of all of them has been used.

Problem 1.9.

In a group of 5050 people, 3030 read the news online and 2525 read it on paper. What is the largest the overlap could be, and what is the smallest, given that everybody reads it one way or the other?

Problem 1.10.

Write out the four-set formula in full. How many terms does it have, and how many of them carry a minus sign?

The Real Numbers

The first section of this chapter named the real numbers, as the points of the number line, and left it at that. The reason for leaving it there is that the real numbers are notoriously awkward to pin down, and doing it properly is the business of an analysis course rather than this one. For now the following will serve.

Definition 1.19 (Real Numbers, Informally).

A real number is a number that can be written as a decimal expansion, possibly one that never terminates and never repeats. These are exactly the numbers represented by the points of the number line: every point is a real number, and every real number is a point.

There also exist irrational numbers, meaning real numbers not contained in Q\QQ. One example is the ratio between the circumference of a circle and its diameter, which is known as π\pi; another is 2\sqrt{2}. The set of real numbers describes all physical quantities that can be represented on a line, and R\RR is the set of all rational and irrational numbers together.

The Rules of Arithmetic

The operations ++ and \cdot in R\RR — and so also in N\NN, Z\ZZ and Q\QQ — satisfy the following properties. Every manipulation in the rest of these notes is built out of them.

Let a,b,cRa, b, c \in \RR.

  1. Commutativity. a+b=b+aa + b = b + a and ab=baa \cdot b = b \cdot a.
  2. Associativity. (a+b)+c=a+(b+c)(a + b) + c = a + (b + c) and (ab)c=a(bc)(a \cdot b) \cdot c = a \cdot (b \cdot c).
  3. Distributivity. (a+b)c=ac+bc(a + b) \cdot c = a \cdot c + b \cdot c and a(b+c)=ab+aca \cdot (b + c) = a \cdot b + a \cdot c.
  4. Neutral elements. a+0=0+a=aa + 0 = 0 + a = a and a1=1a=aa \cdot 1 = 1 \cdot a = a.
  5. Inverses. There is a number a-a with a+(a)=0a + (-a) = 0, and if a0a \neq 0 there is a number 1/a1/a with a1/a=1a \cdot 1/a = 1.

We call 00 the neutral element with respect to ++ and 11 the neutral element with respect to \cdot, and we call a-a the negative of aa and 1/a1/a the reciprocal of aa. None of these properties is claimed for subtraction or division, and in general several of them fail there; that is the point of Exercise 1.9.

What Follows from the Rules

A surprising amount of ordinary algebra is nothing but these five rules used carefully. We record the pieces we shall need.

If a+b=0a + b = 0 then b=ab = -a and a=ba = -b. Adding a-a to both sides of a+b=0a + b = 0 gives a+a+b=a-a + a + b = -a, and the left-hand side is 0+b=b0 + b = b, so b=ab = -a. Adding b-b to both sides instead gives a=ba = -b in the same way.

As a matter of convention, we shall write

abinstead ofa+(b).a - b \qquad\text{instead of}\qquad a + (-b).

With that convention, associativity and commutativity mean that a sum involving three terms may be written in many ways, all of them the same number:

(ab)+c=(a+(b))+c=a+(b+c)=a+(cb)=(a+c)b,(a - b) + c = \bigl(a + (-b)\bigr) + c = a + (-b + c) = a + (c - b) = (a + c) - b,

so we may also write this sum as ab+c=a+cba - b + c = a + c - b.

(a)=a-(-a) = a. By definition a-a is the number that adds to aa to give 00; but (a)+a=0(-a) + a = 0 says exactly that aa is the number which adds to a-a to give 00, and that number is (a)-(-a).

(a+b)=ab-(a + b) = -a - b. We show this by adding ab-a - b to a+ba + b: rearranging, (a+b)+(ab)=(a+(a))+(b+(b))=0+0=0(a + b) + (-a - b) = \bigl(a + (-a)\bigr) + \bigl(b + (-b)\bigr) = 0 + 0 = 0, so ab-a - b is the negative of a+ba + b.

0a=00 \cdot a = 0. Here distributivity does the work:

0a+a=0a+1a=(0+1)a=1a=a.0 \cdot a + a = 0 \cdot a + 1 \cdot a = (0 + 1) \cdot a = 1 \cdot a = a.

Adding a-a to both sides gives 0a+aa=aa=00 \cdot a + a - a = a - a = 0, and the left-hand side is simply 0a+0=0a0 \cdot a + 0 = 0 \cdot a. So 0a=00 \cdot a = 0.

(1)a=a(-1) \cdot a = -a. We show this the same way:

(1)a+a=(1)a+1a=(1+1)a=0a=0,(-1) \cdot a + a = (-1) \cdot a + 1 \cdot a = (-1 + 1) \cdot a = 0 \cdot a = 0,

and a number that adds to aa to give 00 is the negative of aa.

(ab)=(a)b-(ab) = (-a)b. What has to be shown is that (a)b(-a)b is the negative of abab, which amounts to showing that the two add to zero; and by distributivity ab+(a)b=(a+(a))b=0b=0ab + (-a)b = \bigl(a + (-a)\bigr)b = 0 \cdot b = 0.

(ab)=a(b)-(ab) = a(-b). We show this by the same computation with the factors the other way round: ab+a(b)=a(b+(b))=a0=0ab + a(-b) = a\bigl(b + (-b)\bigr) = a \cdot 0 = 0.

(a)(b)=ab(-a)(-b) = ab. Applying the previous two facts in turn, (a)(b)=(a(b))=((ab))=ab(-a)(-b) = -\bigl(a(-b)\bigr) = -\bigl(-(ab)\bigr) = ab.

Problem 1.11.

A number has only one negative. Show this: if a+b=0a + b = 0 and a+c=0a + c = 0, then b=cb = c.

Problem 1.12.

A nonzero number has only one reciprocal. Show this: if ab=1ab = 1 and ac=1ac = 1, then b=cb = c.

Problem 1.13.

Show that if ab=0ab = 0 then a=0a = 0 or b=0b = 0.

Fractions

With the rules of arithmetic written down we can say precisely how fractions behave, since every rule about them comes out of those five.

Throughout this section mm, nn, rr, ss are integers, and any letter standing in a denominator is nonzero.

The rule for cross-multiplying says that

mn=rsif and only ifms=rn.\frac{m}{n} = \frac{r}{s} \qquad\text{if and only if}\qquad ms = rn.

This is the rule that turns a question about two fractions into a question about two integers, and it is the one to reach for whenever two fractions have to be compared.

The cancellation rule says that for a nonzero integer aa,

aman=mn.\frac{am}{an} = \frac{m}{n}.

To test the equality we apply the rule for cross-multiplying, so what has to hold is (am)n=m(an)(am)n = m(an), and that is true by associativity and commutativity. For instance,

45=(2)(4)(2)(5)=810.\frac{4}{5} = \frac{(-2)(4)}{(-2)(5)} = \frac{-8}{-10}.

In dealing with quotients of integers which may be negative, it is useful to observe that

mn=mn,\frac{-m}{n} = \frac{m}{-n},

which cross-multiplying turns into (m)(n)=mn(-m)(-n) = mn, something we already know. Both are equal to m/n-m/n, and for this reason we shall write

mn=mn=mn-\frac{m}{n} = \frac{-m}{n} = \frac{m}{-n}

without worrying about which of the three is meant.

Definition 1.20 (Lowest Form).

A fraction r/sr/s of positive integers is in lowest form if rr and ss have no common divisor other than 11.

Any positive rational number has an expression as a fraction in lowest form. Start from any way of writing it as a quotient of positive integers m/nm/n. We know 11 is a common divisor of mm and nn, and any common divisor is at most equal to mm or nn, so among all common divisors there is a greatest one; call it dd and write m=drm = dr and n=dsn = ds with rr and ss positive integers. Cancelling dd,

mn=drds=rs,\frac{m}{n} = \frac{dr}{ds} = \frac{r}{s},

and rr and ss have no common divisor left, since one would have made dd larger.

Cancellation also explains addition. Given m/nm/n and r/sr/s we have seen that

mn=smsn,rs=nrns,\frac{m}{n} = \frac{sm}{sn}, \qquad \frac{r}{s} = \frac{nr}{ns},

so both now have the common denominator snsn, and adding is then adding numerators:

mn+rs=ms+nrns.\frac{m}{n} + \frac{r}{s} = \frac{ms + nr}{ns}.

Multiplication needs no such preparation, since

mnrs=mrns.\frac{m}{n} \cdot \frac{r}{s} = \frac{mr}{ns}.

These are the formulas the closure argument earlier in the chapter used, and the two of them together are why Q\QQ is closed under all four operations while Z\ZZ is not.

Problem 1.14.

Put 84/12684/126 in lowest form, and check the answer by cross-multiplying against the original.

Rearranging a Relation

Suppose three numbers are related by

a+b=c.a + b = c.

Adding b-b to both sides gives a=cba = c - b: the bb has crossed the equals sign and changed sign. That single move, together with the corresponding one for multiplication, is the whole of elementary equation solving.

Example 1.21.

Solve 3x+4=193x + 4 = 19. Adding 4-4 to both sides gives 3x=153x = 15; multiplying both sides by 1/31/3 gives x=5x = 5.

Distributivity is what lets a bracket be expanded before the rearranging starts. Used twice,

(x+2)2=(x+2)(x+2)=x(x+2)+2(x+2)=x2+2x+2x+4=x2+4x+4.(x + 2)^2 = (x + 2)(x + 2) = x(x + 2) + 2(x + 2) = x^2 + 2x + 2x + 4 = x^2 + 4x + 4.

Equations, Identities and Inequalities

Consider the following four expressions.

(x+2)2=2x+7[1](x+2)2=x2+4x+4[2]x2>1[3](x+2)2[4]\begin{aligned} (x + 2)^2 &= 2x + 7 & &[1] \\ (x + 2)^2 &= x^2 + 4x + 4 & &[2] \\ x - 2 &> 1 & &[3] \\ (x + 2)^2 & & &[4] \end{aligned}

By inspection we see that these four expressions are all different in nature, and by investigating each of them in turn we shall identify the differences.

Equations

Substituting 11 for xx in the left-hand side (LHS) and right-hand side (RHS) of [1][1] separately, we find

LHS=(1+2)2=32=9,RHS=2+7=9,\text{LHS} = (1 + 2)^2 = 3^2 = 9, \qquad \text{RHS} = 2 + 7 = 9,

so LHS == RHS when x=1x = 1. Substituting 22 for xx in the same way, however,

LHS=(2+2)2=16,RHS=4+7=11,\text{LHS} = (2 + 2)^2 = 16, \qquad \text{RHS} = 4 + 7 = 11,

so LHS \neq RHS when x=2x = 2. Now rearranging the original expression gives

x2+4x+4=2x+7x2+2x3=0(x+3)(x1)=0,x^2 + 4x + 4 = 2x + 7 \quad\Longrightarrow\quad x^2 + 2x - 3 = 0 \quad\Longrightarrow\quad (x + 3)(x - 1) = 0,

from which LHS == RHS if and only if either x+3=0x + 3 = 0, that is x=3x = -3, or x1=0x - 1 = 0, that is x=1x = 1. The equality holds for no other value of xx.

Definition 1.22 (Equation).

An expression of this type, in which the two sides are equal only for a number of distinct values of the unknown quantity, is called an equation. The process of finding those values is called solving the equation.

Sets give us a tidy way of stating the answer. The problem “solve (x+2)2=2x+7(x + 2)^2 = 2x + 7” becomes “find the solution set of (x+2)2=2x+7(x + 2)^2 = 2x + 7”, and we write S={3,1}.S = \{-3, 1\}.

Remark.

The same question can also be answered in set-builder notation, where S={xR(x+2)2=2x+7},S = \{\, x \in \RR \mid (x + 2)^2 = 2x + 7 \,\}, which is a statement of a different kind: the list tells us what the set contains but not the property its members share, while the rule tells us the property but not the members. Solving the equation is exactly the work of turning the second description into the first.

Recalling that two sets are equal when each is contained in the other, this gives a rather meaningful interpretation of what it is for two equations to be the same problem: two equations are equivalent when they have the same solution set. Each rearrangement above replaced an equation by an equivalent one, and that is what entitled us to read the answer off the final line.

Problem 1.15.

Are x2=xx^2 = x and x=1x = 1 equivalent? Compare their solution sets.

Identities

Now take [2][2]. Substituting 11 for xx in both sides,

LHS=(1+2)2=9,RHS=12+41+4=9,\text{LHS} = (1 + 2)^2 = 9, \qquad \text{RHS} = 1^2 + 4 \cdot 1 + 4 = 9,

and substituting 1-1 for xx as before,

LHS=(1+2)2=1,RHS=(1)2+4(1)+4=1.\text{LHS} = (-1 + 2)^2 = 1, \qquad \text{RHS} = (-1)^2 + 4(-1) + 4 = 1.

Whatever other numerical value we substitute for xx we find that LHS == RHS, so it appears that the two sides agree for all values of xx. Expanding the bracket, as we did above, says the same thing in algebra; the following geometric illustration says it a third way, without any algebra at all. Consider a square of side x+2x + 2 units.

(x + 2)2x2x2x2x2x22x2x4
Figure 1.17. One square, counted two ways.

Since these two squares are identical, their areas are identical. The left one has area (x+2)2(x + 2)^2, and the right one has been cut into four pieces of areas x2x^2, 2x2x, 2x2x and 44. Hence (x+2)2=x2+4x+4(x + 2)^2 = x^2 + 4x + 4 for all values of xx, and we say that (x+2)2(x+2)^2 is identical to x2+4x+4x^2 + 4x + 4.

Definition 1.23 (Identity).

A relationship whose two sides are equal for any value of the unknown quantity is called an identity. Using the symbol \equiv for “is identical to”, the relationship above is written (x+2)2x2+4x+4.(x + 2)^2 \equiv x^2 + 4x + 4.

The two sides of an identity are not two things that happen to agree; they are, in fact, two forms of the same expression. We shall use the identity symbol whenever we are dealing with an identity relationship, and we strongly recommend that the reader does the same.

Problem 1.16.

State which of the following are equations and which are identities.

  1. x29=(x3)(x+3)x^2 - 9 = (x - 3)(x + 3)
  2. p2+2p3=32pp2p^2 + 2p - 3 = 3 - 2p - p^2
  3. y1=1yy - 1 = \dfrac{1}{y}
  4. 2qq21=1q1+1q+1\dfrac{2q}{q^2 - 1} = \dfrac{1}{q - 1} + \dfrac{1}{q + 1}

Inequalities

The third relationship, x2>1x - 2 > 1, is obviously different from the first two. Reading from left to right, the symbol >> means “is greater than”, and << means “is less than”.

By inspection we see that for x2x - 2 to have a value greater than one, xx must have a value greater than three:

if x2>1,thenx>3.\text{if } x - 2 > 1, \quad\text{then}\quad x > 3.

Definition 1.24 (Inequality).

A relationship between two expressions using one of <<, >>, \leqslant, \geqslant is called an inequality.

Here the number line does the explaining. Consider a line as being made up of adjacent points; then all the real values the variable xx can take are represented by positions of points on that line, and the position of a point to the left of a second point corresponds to a value of xx less than the value at the second point:

99<1,10<5,-99 < 1, \qquad -10 < -5, \qquad \ldots

The values of xx given by the statement x>3x > 3 can then be represented by a section of this line.

12345x > 312345x ⩾ 3
Figure 1.18. A hollow circle leaves the endpoint out; a solid one takes it in.

From this we see that not all values of xx satisfy the inequality, but that there is an infinite set of values which do: the solution of an inequality is a range, or several ranges, of values of the variable involved. Note that x=3x = 3 is not included in the range, and this is what the hollow circle records. For x3x \geqslant 3, which means xx is greater than or equal to 33, the value x=3x = 3 is included in the range, and the circle is filled in.

Problem 1.17.

Find the range of values of xx for which the following inequalities are true, and illustrate the range on a number line.

  1. x+11x + 1 \leqslant -1
  2. 0x40 \geqslant x - 4
  3. 3<4x3 < 4 - x

Expressions

The fourth of the four, (x+2)2(x + 2)^2, differs from the other three in the simplest possible way: it asserts nothing. It is a term, not a relationship, so there is nothing to solve and nothing to check. It has a value once xx is given, and that is all.

Powers

We have been writing x2x^2 and (x+2)2(x + 2)^2 without comment, on the strength of school algebra. The notation is worth setting down properly, because we are about to push it a long way past whole-number exponents.

Definition 1.25 (Powers with Natural Exponents).

Let aRa \in \RR and nNn \in \NN. Then ”aa raised to the power of nn” is defined as

an=aaan occurrences of a,a^n = \underbrace{a \cdot a \cdots a}_{n \text{ occurrences of } a},

where aa is called the base and nn the exponent.

Power Rules

Let a,bRa, b \in \RR and m,nNm, n \in \NN. Then

anam=an+m,anbn=(ab)n,(an)m=anm.a^n \cdot a^m = a^{n+m}, \qquad a^n \cdot b^n = (a \cdot b)^n, \qquad (a^n)^m = a^{nm}.

Each of the three is a matter of counting the factors. For the first, writing both powers out gives nn copies of aa followed by mm more, which is n+mn + m copies in all:

anam=aan copiesaam copies=an+m.a^n \cdot a^m = \underbrace{a \cdots a}_{n \text{ copies}} \cdot \underbrace{a \cdots a}_{m \text{ copies}} = a^{n+m}.

For the second, nn copies of aa beside nn copies of bb can be paired off, one aa to one bb, by commutativity, giving nn copies of aba \cdot b:

anbn=aan copiesbbn copies=(ab)(ab)n copies=(ab)n.a^n \cdot b^n = \underbrace{a \cdots a}_{n \text{ copies}} \cdot \underbrace{b \cdots b}_{n \text{ copies}} = \underbrace{(ab) \cdots (ab)}_{n \text{ copies}} = (a b)^n.

For the third, (an)m(a^n)^m is mm copies of a block of nn copies of aa, which is nmnm copies of aa altogether:

(an)m=aanaanm blocks=anm.(a^n)^m = \underbrace{\underbrace{a \cdots a}_{n} \cdots \underbrace{a \cdots a}_{n}}_{m \text{ blocks}} = a^{nm}.

Remark.

We define a0=1a^0 = 1, and the reason is the first power rule: that is the only value making a0an=a0+n=ana^0 \cdot a^n = a^{0+n} = a^n come out right for all nNn \in \NN.

Definition 1.26 (Powers with Negative Integer Exponents).

Let aRa \in \RR^{*} and let nNn \in \NN. Then ”aa raised to the power of n-n” is defined as

an=1an.a^{-n} = \frac{1}{a^n}.

Remark.

Again the definition is forced rather than chosen. If the power rules are to hold for integer exponents then we need

anan=an+n=a0=1,a^{-n} \cdot a^{n} = a^{-n+n} = a^0 = 1,

and this makes sense if and only if ana^{-n} is the reciprocal of ana^n, which requires a0a \neq 0. With this definition the power rules above also hold for m,nZm, n \in \ZZ.

Roots

How should the square root of a number aa be defined? Each of the obvious attempts has a problem.

  1. “The number which, raised to the power 22, gives aa.” But there may be two such numbers, since (1)2=12=1(-1)^2 = 1^2 = 1.
  2. “A number which, raised to the power 22, gives aa.” Then 2-2 would be a square root of 44, and 4\sqrt{4} would not name one number.
  3. a1/2a^{1/2}.” But we have not yet said what raising to the power 1/21/2 means.

The way out is to demand a single number by insisting that it be the non-negative one.

Definition 1.27 (Square Root).

For a0a \geqslant 0, the square root of aa, written a\sqrt{a} or a1/2a^{1/2}, is the non-negative real number such that (a)2=a\left(\sqrt{a}\right)^2 = a.

Remark.

Every word of that definition is doing work, in particular the condition a0a \geqslant 0 and the word non-negative. Both 22 and 2-2 square to 44; only 22 is 4\sqrt{4}.

Definition 1.28 (nn-th Root).

Let nNn \in \NN. For a0a \geqslant 0, the nn-th root of aa, written an\sqrt[n]{a} or a1/na^{1/n}, is the non-negative real number such that (an)n=a\left(\sqrt[n]{a}\right)^n = a.

With roots in hand, an exponent may be any rational number at all.

Definition 1.29 (Powers with Rational Exponents).

For a0a \geqslant 0 and a rational exponent r=p/qr = p/q with pZp \in \ZZ and qNq \in \NN, ”aa raised to the power of rr” is defined as

ar=(ap)1/q.a^{r} = \left(a^{p}\right)^{1/q}.

The power rules above hold with mm and nn rational as well, and from here on we use them without comment.

Problem 1.18.

Simplify each of the following.

  1. y1/6y2/3y1/4\dfrac{y^{1/6} \cdot y^{-2/3}}{y^{1/4}}
  2. (t)3t2t5\dfrac{\left(\sqrt{t}\right)^3 \cdot t^2}{\sqrt{t^5}}
  3. x2+x5/2x1/2\dfrac{x^2 + x^{5/2}}{x^{-1/2}}
  4. m3/2m1/2m1/2+m1/2\dfrac{m^{3/2} - m^{-1/2}}{m^{1/2} + m^{-1/2}}

Remarkable Identities

Three expansions come up so often that they are worth knowing by sight rather than working out each time.

Let a,bRa, b \in \RR. Then

(a+b)2=a2+2ab+b2,(ab)2=a22ab+b2,(a+b)(ab)=a2b2.(a + b)^2 = a^2 + 2ab + b^2, \qquad (a - b)^2 = a^2 - 2ab + b^2, \qquad (a + b)(a - b) = a^2 - b^2.

The first comes out of distributivity used twice, exactly as the expansion of (x+2)2(x + 2)^2 did:

(a+b)2=(a+b)(a+b)=a(a+b)+b(a+b)=a2+ab+ba+b2=a2+2ab+b2,(a + b)^2 = (a + b)(a + b) = a(a + b) + b(a + b) = a^2 + ab + ba + b^2 = a^2 + 2ab + b^2,

the last step by commutativity. The other two go the same way.

The first identity is also the picture we drew for (x+2)2(x + 2)^2, with the 22 replaced by bb: the big square has area (a+b)2(a+b)^2, and it decomposes into smaller rectangles of areas a2a^2, abab, abab and b2b^2.

ababa2ababb2
Figure 1.19. A visualisation of (a+b)2=a2+2ab+b2(a + b)^2 = a^2 + 2ab + b^2.

Problem 1.19.

Use the third identity to compute 101×99101 \times 99 in your head.

Surds

Expressions such as 4\sqrt{4} and 25\sqrt{25} have exact numerical values, namely 4=2\sqrt{4} = 2 and 25=5\sqrt{25} = 5. Expressions such as 2\sqrt{2}, 3\sqrt{3}, 5\sqrt{5} cannot be written as numerically exact quantities. We might say that

2=1.4correct to 2 significant figures,\sqrt{2} = 1.4 \quad\text{correct to 2 significant figures,}

or that

2=1.4142136correct to 8 significant figures,\sqrt{2} = 1.4142136 \quad\text{correct to 8 significant figures,}

but we can never write down an exact quantity equal to 2\sqrt{2}. Such numbers are the irrational numbers met earlier, and it is often convenient to leave them in the form 2\sqrt{2}, or 3\sqrt{3}, and so on.

Definition 1.30 (Surd).

A root left in its root form, rather than replaced by a decimal approximation, is called a surd.

Remark.

Recall that 2\sqrt{2} means the positive square root of 22. So although x2=4x^2 = 4 is solved by both x=2x = 2 and x=2x = -2, we still have 4=2\sqrt{4} = 2.

Surds occur frequently in solutions, so it is useful to be able to simplify them. The tool is the power rule ab=ab\sqrt{ab} = \sqrt{a}\sqrt{b}: look for a square factor and take it outside.

Example 1.31.

Express 48\sqrt{48} as the simplest possible surd.

48=16×3=163=43.\sqrt{48} = \sqrt{16 \times 3} = \sqrt{16} \cdot \sqrt{3} = 4\sqrt{3}.

Example 1.32.

Expand and simplify (233)(3+23)(2 - 3\sqrt{3})(3 + 2\sqrt{3}) and (527)(5+27)(5 - 2\sqrt{7})(5 + 2\sqrt{7}).

For the first,

(233)(3+23)=693+436(3)2=6536×3=1253.\begin{aligned} (2 - 3\sqrt{3})(3 + 2\sqrt{3}) &= 6 - 9\sqrt{3} + 4\sqrt{3} - 6\left(\sqrt{3}\right)^2 \\ &= 6 - 5\sqrt{3} - 6 \times 3 \\ &= -12 - 5\sqrt{3}. \end{aligned}

For the second, the brackets are of the form (a+b)(ab)(a + b)(a - b), so the middle terms cancel:

(527)(5+27)=25107+1074(7)2=2528=3.\begin{aligned} (5 - 2\sqrt{7})(5 + 2\sqrt{7}) &= 25 - 10\sqrt{7} + 10\sqrt{7} - 4\left(\sqrt{7}\right)^2 \\ &= 25 - 28 \\ &= -3. \end{aligned}

Problem 1.20.

Expand and simplify.

  1. (22+1)(22)(2\sqrt{2} + 1)(\sqrt{2} - 2)
  2. (332)(33+2)(3\sqrt{3} - 2)(3\sqrt{3} + 2)
  3. (263)2\left(2\sqrt{6} - 3\right)^2

Rationalising the Denominator

When the solution to a problem comes out containing surds, it is accepted practice to leave the answer in surd form, simplified as far as possible, unless an approximation has been asked for. Simplifying a fractional answer can often be managed by removing the surds from the denominator, and this process is called rationalising the denominator.

Example 1.33.

Rationalise the denominator of 32\dfrac{3}{\sqrt{2}}.

32=3222=322.\frac{3}{\sqrt{2}} = \frac{3}{\sqrt{2}} \cdot \frac{\sqrt{2}}{\sqrt{2}} = \frac{3\sqrt{2}}{2}.

The expansion of (527)(5+27)(5 - 2\sqrt{7})(5 + 2\sqrt{7}) above is the one to remember, because it is what makes this work in general: a bracket of the form (a+b)(ab)(a + b)(a - b) gives a2b2a^2 - b^2, and squaring kills any surd in aa or in bb. So a denominator a+ba + b is rationalised by multiplying above and below by aba - b.

Example 1.34.

Simplify 351+35\dfrac{3 - \sqrt{5}}{1 + 3\sqrt{5}}.

We multiply numerator and denominator by 1351 - 3\sqrt{5}:

351+35=(35)(135)(1+35)(135)=1810512(35)2=1810544=95522=55922.\begin{aligned} \frac{3 - \sqrt{5}}{1 + 3\sqrt{5}} &= \frac{(3 - \sqrt{5})(1 - 3\sqrt{5})}{(1 + 3\sqrt{5})(1 - 3\sqrt{5})} = \frac{18 - 10\sqrt{5}}{1^2 - \left(3\sqrt{5}\right)^2} \\ &= \frac{18 - 10\sqrt{5}}{-44} = \frac{9 - 5\sqrt{5}}{-22} = \frac{5\sqrt{5} - 9}{22}. \end{aligned}

Problem 1.21.

Rationalise the denominator.

  1. 13+25\dfrac{1}{3 + 2\sqrt{5}}
  2. 165\dfrac{1}{\sqrt{6} - \sqrt{5}}
  3. 12+1+121\dfrac{1}{\sqrt{2} + 1} + \dfrac{1}{\sqrt{2} - 1}

Even and Odd

The last idea of the chapter costs nothing new and will be used constantly. It is a way of splitting the integers in two.

Definition 1.35 (Even and Odd).

An integer is even if it is twice an integer, and odd if it is one more than twice an integer. In set notation, the even integers and the odd integers are

E={aZa=2k for some kZ},O={aZa=2k+1 for some kZ}.E = \{\, a \in \ZZ \mid a = 2k \text{ for some } k \in \ZZ \,\}, \qquad O = \{\, a \in \ZZ \mid a = 2k + 1 \text{ for some } k \in \ZZ \,\}.

Every integer belongs to exactly one of EE and OO: dividing by 22 leaves a remainder of either 00 or 11, and no integer can be written in both forms.

The Parity of a Sum

Let aa and bb be positive integers.

  1. If aa is even and bb is even, then a+ba + b is even.
  2. If aa is even and bb is odd, then a+ba + b is odd.
  3. If aa is odd and bb is even, then a+ba + b is odd.
  4. If aa is odd and bb is odd, then a+ba + b is even.

We show the first. If aa and bb are even then a=2ka = 2k and b=2lb = 2l for some integers kk and ll, so by distributivity

a+b=2k+2l=2(k+l),a + b = 2k + 2l = 2(k + l),

and k+lk + l is an integer, so a+ba + b is twice an integer. The other three are left as problems below; each is the same computation with a +1+1 carried along.

The Parity of a Square

Let aa be a positive integer. If aa is even then a2a^2 is even, and if aa is odd then a2a^2 is odd.

If a=2ka = 2k then a2=(2k)2=4k2=2(2k2)a^2 = (2k)^2 = 4k^2 = 2(2k^2), which is even. If a=2k+1a = 2k + 1 then

a2=(2k+1)2=4k2+4k+1=2(2k2+2k)+1,a^2 = (2k + 1)^2 = 4k^2 + 4k + 1 = 2(2k^2 + 2k) + 1,

which is one more than twice an integer, and so odd.

This can also be read backwards: if a2a^2 is even then aa is even. Every integer is either even or odd, and not both. If aa were odd, what we have just shown would make a2a^2 odd; but a2a^2 is even, so the odd case is ruled out, and aa must be even. This is the step Exercise 1.6 turns on.

Problem 1.22.

Show the three remaining parts of the parity-of-a-sum result.

Problem 1.23.

Show that if nn is even then (1)n=1(-1)^n = 1, and that if nn is odd then (1)n=1(-1)^n = -1.

Problem 1.24.

Show that if mm and nn are odd then the product mnmn is odd.

Exercises

Exercise 1.1.

Compute

(43+52)652552.\left(\frac{4}{3} + \frac{5}{2}\right) \cdot \frac{6}{5} - \frac{2}{5} \cdot \frac{5}{2}.

Exercise 1.2.

Simplify:

A=2+89+519,B=1+18+3411256+13+2,C=5127381556.A = 2 + \cfrac{8}{9 + \cfrac{5}{19}}, \qquad B = \frac{1 + \frac{1}{8} + \frac{3}{4} - \frac{1}{12}}{\frac{5}{6} + \frac{1}{3} + 2}, \qquad C = \frac{\frac{5}{12}}{\frac{7}{3} \cdot \frac{8}{15} - \frac{5}{6}}.

Exercise 1.3.

Bigger, smaller, or equal?

(i) 514 and 621,(ii) 275 and 163,(iii) 313 and 2191.\text{(i) } \frac{5}{14} \text{ and } \frac{6}{21}, \qquad \text{(ii) } \frac{27}{5} \text{ and } \frac{16}{3}, \qquad \text{(iii) } \frac{3}{13} \text{ and } \frac{21}{91}.

Exercise 1.4.

Compute

(i) 1(234),(ii) 1(234),(iii) 1234.\text{(i) } \frac{1}{\left(\dfrac{2}{\frac{3}{4}}\right)}, \qquad \text{(ii) } \frac{1}{\left(\dfrac{\frac{2}{3}}{4}\right)}, \qquad \text{(iii) } \frac{\frac{1}{2}}{\frac{3}{4}}.

Exercise 1.5.

Let x,y,zRx, y, z \in \RR be such that the following formulas are defined. Simplify:

(i) (4xy+3yz)(4zxy2y),(ii) xyzx2x+zy,(iii) x111x.\text{(i) } \left(\frac{4}{xy} + \frac{3}{yz}\right)\left(\frac{4z}{xy} - \frac{2}{y}\right), \qquad \text{(ii) } \frac{\frac{x}{y} - z}{\frac{x^2}{x} + \frac{z}{y}}, \qquad \text{(iii) } \frac{x}{1 - \frac{1}{1 - x}}.

Exercise 1.6.

Let us assume 2\sqrt{2} is a rational number, that is, that there exist a,bZa, b \in \ZZ with a/b=2a/b = \sqrt{2}. Suppose this fraction is reduced as much as possible.

  1. By squaring the equation, show that aa is even.
  2. Is bb even or odd?
  3. Show that the two answers cannot both hold.
  4. What do you conclude about 2\sqrt{2}?

Exercise 1.7.

Taking inspiration from the previous exercise, show that p\sqrt{p} is not a rational number when pp is prime. (Reminder: an integer is called prime when it has exactly two divisors.)

Exercise 1.8.

Let xQx \in \QQ and yQy \notin \QQ. Show that x+yQx + y \notin \QQ.

Exercise 1.9.

Show that division in R\RR is neither commutative, nor associative, nor distributive over ++.

Exercise 1.10.

Let a,bR+a, b \in \RR_{+}^{*}.

  1. If a=ba = b, can we say a=b\sqrt{a} = \sqrt{b}?
  2. If a=b\sqrt{a} = \sqrt{b}, can we say a=ba = b?
  3. Can we say a+b=a+b\sqrt{a + b} = \sqrt{a} + \sqrt{b}?

Exercise 1.11.

Show that 1+23=13+431 + 2\sqrt{3} = \sqrt{13 + 4\sqrt{3}}.

Exercise 1.12.

Let a,bRa, b \in \RR^{*}. Simplify the following expressions, where that is possible:

(i) (a2b3)2,(ii) a2+aba3,(iii) a2+b2ab.\text{(i) } \left(a^{-2} b^3\right)^2, \qquad \text{(ii) } \frac{a^2 + ab}{a^3}, \qquad \text{(iii) } \frac{a^2 + b^2}{ab}.

Exercise 1.13.

Let a,b,cRa, b, c \in \RR. What is (a+b+c)2(a + b + c)^2?

Exercise 1.14.

Let a>0a > 0 and b>0b > 0 with aba \neq b. Show that

1ab=a+bab.\frac{1}{\sqrt{a} - \sqrt{b}} = \frac{\sqrt{a} + \sqrt{b}}{a - b}.

Exercise 1.15.

Compute

626+2.\sqrt{\sqrt{6} - \sqrt{2}} \cdot \sqrt{\sqrt{6} + \sqrt{2}}.

Exercise 1.16.

Simplify:

(i) (1+a)2(1a)2,(ii) (a2+b2)2(a2b2)2.\text{(i) } (-1 + a)^2 - (1 - a)^2, \qquad \text{(ii) } \left(a^2 + b^2\right)^2 - \left(a^2 - b^2\right)^2.

Exercise 1.17.

Simplify:

(i) 3an+16xn+79bx+13xn2bx+13a,(ii) a33a8.\text{(i) } \frac{3a^{n+1} \cdot 6x^{n+7} \cdot 9b^{x+1}}{3x^{n} \cdot 2b^{x+1} \cdot 3a}, \qquad \text{(ii) } \sqrt[3]{a^3} \cdot \sqrt{a^8}.

Exercise 1.18.

Let AA be the set whose elements are aa, bb, cc and dd.

  1. Write AA in roster form.
  2. How many subsets does AA have? How many of them have exactly two elements? List those by the roster method.
  3. If a fair coin is tossed four times, is there a fifty-fifty chance of getting two heads and two tails? How is that question related to the previous part?
  4. Now let AA have six members instead. How many subsets does it have, and how many of them have exactly two elements, exactly three, exactly four? Two of those three counts agree; say why.

Exercise 1.19.

The universe of discourse decides what an answer looks like.

  1. Write the solution set of x4=1x^4 = 1 in set-builder notation, and then in roster form when the universe is (i) the complex numbers, (ii) the real numbers, (iii) the positive real numbers, (iv) the even integers. (Reminder: the complex numbers are the numbers a+bia + b\,i with aa and bb real and i2=1i^2 = -1.)
  2. Write the solution set of (2x3)(x+1)(x+7)=0(2x - 3)(x + 1)(x + 7) = 0 in set-builder notation, and then in roster form when the universe is (i) the rational numbers, (ii) the real numbers, (iii) the integers, (iv) the positive integers.

Exercise 1.20.

Brackets matter in set expressions just as they do in arithmetic.

  1. Show that (AB)C(A \cap B) \cup C and A(BC)A \cap (B \cup C) need not be equal. What is the most general condition on AA, BB and CC under which they are equal?
  2. Why is it ambiguous to write ABCA \cap B \cup C? Is it ambiguous to write ABCA \cap B \cap C?
  3. Show that (AB)C(A \cup B) \cap C and A(BC)A \cup (B \cap C) need not be equal, and that (AB)C(A \cup B) \cap C and (AC)(BC)(A \cap C) \cup (B \cap C) always are.

Exercise 1.21.

Cancelling is not as free for sets as it is for numbers.

  1. Show that it is possible to have XB=XCX \cup B = X \cup C and yet BCB \neq C.
  2. Show that if XB=XCX \cup B = X \cup C and also XB=XCX \cap B = X \cap C, then B=CB = C.

Exercise 1.22.

For real numbers aa and bb we say aa is less than bb, and write a<ba < b, if and only if bab - a is positive, that is, if b=a+hb = a + h for some positive hh. If a<ba < b we also say bb is greater than aa and write b>ab > a. Using only this definition and the rules of arithmetic, show the following.

  1. If a<ba < b then a+c<b+ca + c < b + c, and also ac<bca - c < b - c.
  2. If a<ba < b and c<dc < d then a+c<b+da + c < b + d. Is ac<bda - c < b - d also true in this case? Explain.
  3. If a<ba < b and cc is positive then ac<bcac < bc. What happens if the restriction that cc be positive is dropped?
  4. If a<ba < b and aa and bb are either both positive or both negative, which is to say ab>0ab > 0, then 1/b<1/a1/b < 1/a.

Check Yourself

 

Fresh questions on the whole chapter — none of them is worked out above. Do each on paper first; the box only tells you whether you got there.

Answers are checked in your browser, as often as you like. Nothing is sent anywhere and nothing is kept but your own work. A formula may be written with the symbols themselves or with ~ & | -> <-> ^, and \and, \or, \to expand as you type.

Exercise 1.23.

Which one operation is the set {1,0,1}\{-1, 0, 1\} closed under?

answer one of these

Exercise 1.24.

Exactly one of the following is true. Which?

answer one of these

Exercise 1.25.

For which value of aa does a0\dfrac{a}{0} fail because too many numbers qualify, rather than because none does?

answer one of these

Exercise 1.26.

Which of these sets is empty?

answer one of these

Exercise 1.27.

The chapter gives one of De Morgan’s two laws. What is (AB)(A \cap B)' equal to, for all sets AA and BB?

answer one of these

Exercise 1.28.

For finite sets, N(AB)N(A \cap B') is equal to which of these?

answer one of these

Exercise 1.29.

Which of these is an identity rather than an equation?

answer one of these

Exercise 1.30.

What is the solution set of x2x6=0x^2 - x - 6 = 0?

answer one of these

Exercise 1.31.

Simplify p1/2p3/4p1/4\dfrac{p^{1/2} \cdot p^{-3/4}}{p^{-1/4}}.

answer one of these

Exercise 1.32.

Express 72\sqrt{72} as the simplest possible surd.

answer one of these

Exercise 1.33.

Expand and simplify (432)(4+32)(4 - 3\sqrt{2})(4 + 3\sqrt{2}).

answer one of these

Exercise 1.34.

Rationalise the denominator of 53\dfrac{5}{\sqrt{3}}.

answer one of these

Exercise 1.35.

Work out the value of

5+454.\frac{\sqrt{5} + \sqrt{4}}{\sqrt{5} - \sqrt{4}}.
answer one of these

Exercise 1.36.

A set AA has 1212 elements and a set BB has 1818. Which values can N(AB)N(A \cup B) take?

answer one of these

Exercise 1.37.

Of 4040 students, 2222 play football and 1818 play chess, and 77 do both. How many play at least one of the two?

answer one of these

Exercise 1.38.

Let aa be a positive integer whose square a2a^2 is odd. What follows about aa?

answer one of these