Chapter I · Real variables

Arithmetic with real numbers

§§10–11 35 min

How to add, subtract, multiply and divide sections, and why the result is always a well-defined real number.

Why this matters

A number system is useless unless we can calculate in it. If 2\sqrt2 and 3\sqrt3 are sections, what is the section 2+3\sqrt2 + \sqrt3? In §§10–11 Hardy defines the four operations directly in terms of the classes and shows the one fact that makes the definitions work: the new classes squeeze together so tightly that at most one rational can slip between them. After that, all the familiar laws of algebra can be checked, and real numbers can be used exactly like fractions.

The idea

Suppose α\alpha has lower class (a)(a) and upper class (A)(A), and β\beta has (b)(b) and (B)(B). Whatever α+β\alpha + \beta is, it ought to be larger than every sum a+ba + b (each term is below the corresponding number) and smaller than every sum A+BA + B. So form two new classes:

(c)=all sums a+b,(C)=all sums A+B.(c) = \text{all sums } a + b, \qquad (C) = \text{all sums } A + B.

Every cc is less than every CC. The question is whether these two classes leave room for more than one number between them. They do not, because A−aA - a and B−bB - b can both be made as small as we like, and C−c=(A−a)+(B−b)C - c = (A - a) + (B - b).

Explore Pin down a sum between two classes

Try this. With α=2\alpha = \sqrt2 and β=3\beta = \sqrt3, increase the number of decimal places kk and watch the gap between the classes (c)(c) and (C)(C). Then set β=−2\beta = -\sqrt2. Finally try α=12\alpha = \tfrac12, β=13\beta = \tfrac13.

α=2, β=3\alpha = \sqrt2,\ \beta = \sqrt3: the classes (c)=(a+b)(c) = (a+b) and (C)=(A+B)(C) = (A+B)
(c)(C)2.93.03.13.23.33.43.5α + β
  • sums a + b
  • sums A + B
  • α + β
lower memberupper member
α\alphaa = 1.4A = 1.5
β\betab = 1.7B = 1.8
α+β\alpha + \betac = 3.1C = 3.3
Gap: C−c=(A−a)+(B−b)=2×10−1C - c = (A - a) + (B - b) = 2 \times 10^{-1}. Every rational below c is a sum of members of the lower classes, every rational above C one of the upper classes; only the gap is undecided, and it shrinks to nothing as k grows. Here no rational escapes: every rational eventually falls below some c or above some C, and the section is an irrational number near 3.1462644.
What to notice

Using kk-place decimals for a,A,b,Ba, A, b, B gives a gap of exactly 2×10−k2 \times 10^{-k}, so the sum is trapped more tightly at every step. For 2+(−2)\sqrt2 + (-\sqrt2) the rational 00 stays inside every gap: it is the single rational that belongs to neither class, and the sum is 00. For 12+13\tfrac12 + \tfrac13 nothing escapes, because 12+13\tfrac12 + \tfrac13 is itself one of the sums A+BA + B.

So there are two possibilities. Either every rational falls into (c)(c) or (C)(C), and these classes are a section; or exactly one rational is left over, and we put it into (C)(C) (where it becomes the least member, so the sum is that rational). In both cases we get a real number, and that is the definition of α+β\alpha + \beta.

Precise statements

Definition Sum and difference Hardy: §10

Let (c)(c) be the class of all sums a+ba + b and (C)(C) the class of all sums A+BA + B. If every rational lies in (c)(c) or (C)(C), then α+β\alpha + \beta is the section ((c),(C))((c), (C)). Otherwise exactly one rational lies in neither; add it to (C)(C), and α+β\alpha + \beta is the resulting section. The difference is defined by α−β=α+(−β)\alpha - \beta = \alpha + (-\beta).

Theorem The sum is a real number Hardy: §10

For any real numbers α\alpha and β\beta, the classes (c)(c) and (C)(C) leave at most one rational unclassified, and the construction above gives a real number. If α\alpha and β\beta are rational, it is their ordinary sum.

Definition Product and quotient Hardy: §11

For positive α\alpha and β\beta, use sections of the positive rationals: the lower class of αβ\alpha\beta is formed by all products abab and the upper class by all products ABAB, with at most one leftover rational added to the upper class. For other signs,

(−α)β=−αβ,α(−β)=−αβ,(−α)(−β)=αβ,0⋅α=α⋅0=0.(-\alpha)\beta = -\alpha\beta, \quad \alpha(-\beta) = -\alpha\beta, \quad (-\alpha)(-\beta) = \alpha\beta, \quad 0 \cdot \alpha = \alpha \cdot 0 = 0.

For positive α\alpha, the reciprocal 1/α1/\alpha has lower class all 1/A1/A and upper class all 1/a1/a; for negative numbers 1/(−α)=−(1/α)1/(-\alpha) = -(1/\alpha); and α/β=α⋅(1/β)\alpha/\beta = \alpha \cdot (1/\beta) for β≠0\beta \neq 0.

With these definitions every law of elementary algebra (commutative, associative and distributive laws, the rules for signs and inequalities) holds for real numbers. Hardy proves none of them in detail, and leaves a selection as Examples V and VI; a few are below.

Proofs

The proof uses one fact from the previous lessons: in any section, a lower and an upper member can be found as close as we please. (Take any a0a_0, A0A_0, fill the gap with a chain of rationals with small steps, and take the last term in the lower class and the next one.)

Proof The sum is a real number
Strategy

Show that (c)(c) lies below (C)(C), that (c)(c) and (C)(C) have the shape of the two classes of a section, and that the gap between them is too narrow for two rationals. Then add the leftover rational, if any, to the upper class.

Every cc is less than every CC

If c=a+bc = a + b and C=A+BC = A + B then a<Aa < A and b<Bb < B, so c<Cc < C.

(c)(c) is closed downwards and has no greatest member

If r<a+br < a + b then r=a+(r−a)r = a + (r - a) with r−a<br - a < b, so r−ar - a is in (b)(b) (a lower class contains every rational below one of its members) and rr is in (c)(c). If a+b∈(c)a + b \in (c), pick a′>aa' > a in (a)(a) (no greatest member); then a′+ba' + b is a larger member of (c)(c). Similarly (C)(C) is closed upwards.

At most one rational lies in neither class

Suppose r<sr < s were both in neither class. Then c<r<s<Cc < r < s < C for all cc and CC, so C−c>s−rC - c > s - r always. But C−c=(A−a)+(B−b)C - c = (A - a) + (B - b), and we may choose A−a<12(s−r)A - a < \tfrac12(s - r) and B−b<12(s−r)B - b < \tfrac12(s - r). Contradiction.

Form the section

If no rational is left over, (c)(c), (C)(C) is a section whose lower class has no greatest member: a real number. If one rational qq is left over, every cc is below qq and every CC above it (otherwise, by the closure property, qq would be in a class), so adding qq to (C)(C) gives a section in which qq is the least upper member: the rational number qq.

Agreement for rational α\alpha, β\beta

If α\alpha and β\beta are rational, they are the least members of (A)(A) and (B)(B), so α+β\alpha + \beta is a sum A+BA + B and every other A+BA + B is larger: it is the least member of (C)(C). So the new sum is the old one.

For products of positive numbers the argument is the same, with one change in the third step. The gap is now

C−c=AB−ab=(A−a)B+a(B−b).C - c = AB - ab = (A - a)B + a(B - b).

Fix some upper members A0A_0, B0B_0 and only use aa, AA with A≤A0A \le A_0 and bb, BB with B≤B0B \le B_0. Then C−c≤(A−a)B0+A0(B−b)C - c \le (A - a)B_0 + A_0(B - b), which again can be made smaller than any given positive number.

Explore The gap for a product

Try this. Choose α=2\alpha = \sqrt2 and β=3\beta = \sqrt3 and step kk up. Compare the gap with the gap for the sum above. Then choose α=β=2\alpha = \beta = \sqrt2.

α=2, β=3\alpha = \sqrt2,\ \beta = \sqrt3: the classes (c)=(ab)(c) = (ab) and (C)=(AB)(C) = (AB)
(c)(C)2.12.22.32.42.52.62.72.82.93.0αβ
  • products ab
  • products AB
  • αβ
lower memberupper member
α\alphaa = 1.4A = 1.5
β\betab = 1.7B = 1.8
α⋅β\alpha \cdot \betac = 2.38C = 2.70
Gap: C−c=(A−a)B+a(B−b)=10−1(B+a)≈0.32C - c = (A - a)B + a(B - b) = 10^{-1}(B + a) \approx 0.32. Every rational below c is a sum (product) of members of the lower classes, every rational above C one of the upper classes; only the gap is undecided, and it shrinks to nothing as k grows. Here no rational escapes: every rational eventually falls below some c or above some C, and the section is an irrational number near 2.4494897.
What to notice

The product gap is 10−k(B+a)10^{-k}(B + a), a little more than 3×10−k3 \times 10^{-k} here: bigger than the gap for the sum, but still shrinking tenfold at each step. For 2⋅2\sqrt2 \cdot \sqrt2 the rational 22 stays inside every gap; the next lesson is about exactly this.

Worked examples and exercises

Exercise α+(−α)=0\alpha + (-\alpha) = 0 ●●○ Hardy: Examples V, 1

Prove that α+(−α)=0\alpha + (-\alpha) = 0 for every real number α\alpha. Take α\alpha irrational first.

Hint
For irrational α\alpha the lower class of −α-\alpha consists of all −A-A and the upper class of all −a-a. What signs do the sums a+(−A)a + (-A) and A+(−a)A + (-a) have?
Hint
Which rational lies in neither class?

Solution

Let α\alpha be irrational. The lower class of the sum is made of all a−Aa - A, which are negative since a<Aa < A; the upper class of all A−aA - a, which are positive. So 00 is in neither class. By the theorem at most one rational is unclassified, so every other rational is in one of the classes; the negatives cannot be in the upper class (all positive), so all negative rationals are in the lower class and all positive rationals in the upper. Adding the leftover 00 to the upper class gives the section whose lower class is exactly the negatives: the number 00.

If α\alpha is rational, the lower class of −α-\alpha is all −A-A with A>αA > \alpha, and the upper class is all −a-a together with −α-\alpha. The lower sums a−Aa - A are still negative and the upper sums (all A−aA - a, and A−α≥0A - \alpha \ge 0, with α−α=0\alpha - \alpha = 0 among them) are ≥0\ge 0, with 00 the least. The same reasoning gives the section 00.

Exercise Commutative and associative laws ●●○ Hardy: Examples V, 3–4

Prove that α+β=β+α\alpha + \beta = \beta + \alpha and α+(β+γ)=(α+β)+γ\alpha + (\beta + \gamma) = (\alpha + \beta) + \gamma.

Hint
Commutativity is immediate because a+b=b+aa + b = b + a for rationals. For associativity, show that the lower class of each side is the set of rationals below some sum a+b+ca + b + c.

Solution

Commutativity. The classes (a+b)(a + b) and (b+a)(b + a) are the same set of rationals, and so are (A+B)(A + B) and (B+A)(B + A); so the construction produces the same section.

Associativity. By the proof above, the lower class of a sum α+β\alpha + \beta is exactly the set of all a+ba + b, and this equals the set of rationals lying below some a+ba + b (it is closed downwards). Apply this twice: the lower class of (α+β)+γ(\alpha + \beta) + \gamma is the set of all d+cd + c with dd below some a+ba + b, which is the set of rationals below some a+b+ca + b + c. The same description holds for α+(β+γ)\alpha + (\beta + \gamma), since rational addition is associative. Two real numbers with the same lower class are equal.

Exercise Subtraction without addition ●●○ Hardy: Examples V, 9

Define γ=α−β\gamma = \alpha - \beta directly by the classes c=a−Bc = a - B and C=A−bC = A - b, and check that the gap between them shrinks to 00.

Hint
a−B<A−ba - B < A - b because a<Aa < A and −B<−b-B < -b.

Solution

Since a<Aa < A and b<Bb < B, we have a−B<A−ba - B < A - b: every cc is below every CC. The gap is

C−c=(A−b)−(a−B)=(A−a)+(B−b),C - c = (A - b) - (a - B) = (A - a) + (B - b),

which can be made as small as we please, so as before at most one rational is unclassified and we obtain a real number. It is the same as α+(−β)\alpha + (-\beta): for irrational β\beta the lower class of −β-\beta consists of the numbers −B-B, so the sums a+(−B)a + (-B) are exactly the cc‘s here (and similarly for the upper class).

Exercise α⋅(1/α)=1\alpha \cdot (1/\alpha) = 1 ●●○ Hardy: Examples VI, 2

For positive α\alpha, prove that α⋅(1/α)=1\alpha \cdot (1/\alpha) = 1.

Hint
The lower class of 1/α1/\alpha consists of the numbers 1/A1/A. Compare the products a⋅(1/A)a \cdot (1/A) with 11.

Solution

The lower class of the product consists of products a⋅1A=a/Aa \cdot \tfrac1A = a/A, all less than 11 since a<Aa < A. The upper class consists of products A⋅1a=A/aA \cdot \tfrac1a = A/a, all greater than 11. So 11 is in neither, and since at most one rational escapes, it is the one: every other positive rational lies in one of the classes. Putting 11 in the upper class gives the section 11. (If α\alpha is rational, the lower class of 1/α1/\alpha is all 1/A1/A with A>αA > \alpha and the upper class contains 1/α1/\alpha as well, so the products A/aA/a include α/α=1\alpha/\alpha = 1 as their least member; the conclusion is the same.)

Check yourself

Check yourself Enter a number

For α=2\alpha = \sqrt2 and β=3\beta = \sqrt3, take a,Aa, A and b,Bb, B to be the 33-place decimals just below and just above each number. What is C−cC - c?

Why

C−c=(A−a)+(B−b)=0.001+0.001=0.002C - c = (A - a) + (B - b) = 0.001 + 0.001 = 0.002. Concretely a=1.414a = 1.414, A=1.415A = 1.415, b=1.732b = 1.732, B=1.733B = 1.733, so c=3.146c = 3.146 and C=3.148C = 3.148.

Check yourself True or false?

The sum of two irrational numbers is always irrational.

Why

False: 2+(−2)=0\sqrt2 + (-\sqrt2) = 0. In the section picture, 00 is the one rational that escapes both classes, and the definition puts it in the upper class. A leftover rational happens exactly when the sum is rational but α\alpha and β\beta are not.

Check yourself Choose one

Why does Hardy define products first for positive numbers only?

Why

Multiplying by a negative number reverses inequalities. For α=β=−1\alpha = \beta = -1, the lower members a=b=−2a = b = -2 give ab=4ab = 4, while upper members A=B=0A = B = 0 give AB=0AB = 0: the “lower” products are not below the “upper” ones. Restricting to positive members avoids this, and the sign rules handle the rest.

Check yourself Choose one

For which pair is there a rational number that belongs to neither (a+b)(a + b) nor (A+B)(A + B)?

Why

A rational escapes exactly when the sum is a rational number qq that is not itself a sum A+BA + B. With α=1+2\alpha = 1 + \sqrt2 and β=−2\beta = -\sqrt2 the sum is 11, and since neither upper class has a least member, every A+BA + B exceeds 11 and every a+ba + b is below it. For 12+12\tfrac12 + \tfrac12 the sum 11 is itself A+BA + B with A=B=12A = B = \tfrac12. The other two sums are irrational, so nothing escapes.

Hardy’s language

We are then in a position to apply to all real numbers, rational or irrational, the whole of the ideas and methods of elementary algebra.

— G. H. Hardy, §11

Summary

Summary
  • α+β\alpha + \beta is the section with lower class all a+ba + b and upper class all A+BA + B; if one rational is left over it goes into the upper class.
  • The key fact is that the gap C−c=(A−a)+(B−b)C - c = (A - a) + (B - b) can be made as small as we please, so at most one rational is left over.
  • Products of positive numbers use abab and ABAB, with gap (A−a)B+a(B−b)(A - a)B + a(B - b); signs are handled by the usual rules, and 1/α1/\alpha uses 1/A1/A and 1/a1/a.
  • With these definitions all the laws of elementary algebra hold for real numbers.