Unit 1: Numbers and the real line

The line without gaps

Calculus works by taking limits, and limits only make sense if the numbers they head towards actually exist. This unit finds the gaps in the fractions, fills them, and pins down the one property of the real numbers that the whole subject rests on.

123456789101112
In this unit
  1. Why analysis?
  2. Fractions are everywhere
  3. The hole at √2
  4. Decimals and 0.999…
  5. Distance and absolute value
  6. Upper bounds and suprema
  7. The completeness axiom
  8. What completeness buys
  9. How many real numbers?
  10. Practice set
  11. Summary and glossary

Why analysis?

Calculus is astonishingly successful. But early on, nobody could say exactly why it worked. Newton and Leibniz divided by "infinitely small" quantities and then threw them away as if they were zero. The philosopher George Berkeley mocked these as "the ghosts of departed quantities", and he had a point. Some innocent-looking calculations go badly wrong:

Real analysis is the careful version of calculus. It rebuilds limits, continuity, derivatives and integrals on exact definitions, so we can tell which calculations are safe. The pay-off is not just rigour: the same ideas explain why algorithms converge, why approximations work and what can go wrong with infinity. It all starts with a clear idea of what a number is.

Fractions are everywhere

Start with the counting numbers \(\mathbb N = \{1, 2, 3, \dots\}\), the integers \(\mathbb Z = \{\dots, -2, -1, 0, 1, 2, \dots\}\), and the rational numbers \(\mathbb Q\): all fractions \(p/q\) with \(p, q\) integers and \(q \neq 0\). You can add, subtract, multiply and divide fractions (except by zero) and always get a fraction back.

Fractions are dense: between any two different fractions there's another one, their average. Then there's another between that and either end, and so on, so between any two fractions there are infinitely many.

Fractions crowd the lineEvery fraction p/q between 0 and 1, in lowest terms with q up to 30, drawn as a dot at height 1/q. Fractions with small denominators stand tall and sparse, like 1/2 at the top; those with large denominators form a dense haze along the bottom. Between any two points of the line there are infinitely many dots.01/41/23/411/21/31/4
Fractions everywhere. Each fraction \(p/q\) in lowest terms is drawn at height \(1/q\). Zoom in on any stretch of the line, however short, and you'll find dots in it. It looks as if the fractions fill the line completely.

The hole at √2

They don't. Draw a square with side 1. By Pythagoras, its diagonal has length \(d\) with \(d^2 = 1^2 + 1^2 = 2\). Swing the diagonal down onto the number line with a compass and it lands on a definite point.

Finding √2 on the number lineA unit square sits on the number line between 0 and 1. Its diagonal has length √2 by Pythagoras. Swinging the diagonal down with a compass, as a dashed arc, marks a point on the line at about 1.414. That point is not any fraction.012√2√2 ≈ 1.41421…11
A point that should be there. The diagonal of a unit square marks a point on the line whose square is 2.

Theorem

No fraction squares to 2.

Proof

Suppose \(\left(\frac pq\right)^2 = 2\) with the fraction in lowest terms, so \(p\) and \(q\) have no common factor. Then \(p^2 = 2q^2\), so \(p^2\) is even, so \(p\) is even (the square of an odd number is odd). Write \(p = 2k\). Then \(4k^2 = 2q^2\), so \(q^2 = 2k^2\) is even and \(q\) is even too. But then 2 is a common factor of \(p\) and \(q\), contradicting lowest terms. So no such fraction exists. ∎

So the dense, crowded fractions still have a hole exactly where \(\sqrt2\) should be. In fact they are mostly holes: \(\sqrt3\), \(\pi\), \(e\) and most other numbers you meet are not fractions either. A number line made only of fractions would be like a sieve. The real numbers \(\mathbb R\) are what you get when you fill in every hole.

A little history. The discovery that \(\sqrt 2\) is not a ratio of whole numbers is credited to the Pythagoreans, around 500 BCE. It shocked a school whose motto was "all is number", meaning whole numbers and their ratios. A rigorous construction of the real numbers didn't arrive until 1872, when Richard Dedekind and Georg Cantor each published one.

Decimals and 0.999…

One concrete way to think of a real number is as an infinite decimal, like \(\pi = 3.14159\ldots\). Fractions are exactly the decimals that eventually repeat: \(\tfrac17 = 0.\overline{142857}\), \(\tfrac14 = 0.25000\ldots\). Irrational numbers, like \(\sqrt 2 = 1.41421356\ldots\), never settle into a repeating pattern.

What does \(0.999\ldots\) mean? It means the number that the finite decimals \(0.9,\ 0.99,\ 0.999, \dots\) approach. These differ from 1 by \(0.1,\ 0.01,\ 0.001, \dots\), which get smaller than any positive number you could name. So there's no room between \(0.999\ldots\) and 1: they are the same number. A real number can have two decimal names, just as \(\tfrac12\) and \(\tfrac24\) name the same fraction. Unit 2 makes "approach" precise.

Distance and absolute value

Analysis is mostly about closeness, and closeness is measured with the absolute value: \(|x| = x\) if \(x \ge 0\) and \(|x| = -x\) if \(x < 0\). The distance between \(x\) and \(a\) on the line is \(|x - a|\).

Within ε of aA number line with a point a and an open interval from a − ε to a + ε shaded around it. The endpoints are hollow circles because they are not included. The shaded points are exactly the x with |x − a| less than ε.2a − εaa + ε4|x − a| < ε
The most important picture in analysis. "\(|x - a| < \varepsilon\)" means \(x\) is within distance \(\varepsilon\) of \(a\): it lies in the open interval \((a - \varepsilon, a + \varepsilon)\). The Greek letter \(\varepsilon\) (epsilon) traditionally stands for a small positive number.
\( |x + y| \le |x| + |y| \) The triangle inequality. Equivalently, \(|x - z| \le |x - y| + |y - z|\): going from \(x\) to \(z\) via \(y\) is never shorter than going directly.

You'll use the triangle inequality constantly. A typical move: to show \(x\) is close to \(z\), find a \(y\) that is close to both. If \(|x - y| < \tfrac\varepsilon2\) and \(|y - z| < \tfrac\varepsilon2\), then \(|x - z| < \varepsilon\). This is called an "\(\varepsilon/2\) argument".

Upper bounds and suprema

Take a set \(S\) of real numbers. A number \(M\) is an upper bound for \(S\) if every element of \(S\) is at most \(M\). Sets can have many upper bounds; the interesting one is the smallest.

Definition

The supremum (or least upper bound) of \(S\), written \(\sup S\), is the number \(s\) such that (1) \(s\) is an upper bound of \(S\), and (2) no smaller number is an upper bound: for every \(\varepsilon > 0\), some element of \(S\) is bigger than \(s - \varepsilon\). The infimum \(\inf S\), the greatest lower bound, is defined the same way from below.

The least upper boundPoints 1 − 1/n for n = 1, 2, 3 and so on: 0, 1/2, 2/3, 3/4 and onwards, piling up just to the left of 1. The region from 1 rightwards is shaded as the set of upper bounds. Its left end, 1, is the least upper bound, the supremum, but it is not itself one of the points.01/21upper boundssup = 1points 1 − 1/n
Close but never there. The set \(S = \{1 - \tfrac1n : n = 1, 2, 3, \dots\}\) has supremum 1. Every point of \(S\) is less than 1, but points of \(S\) come within any distance \(\varepsilon\) of 1. So the supremum need not belong to the set. When it does, it's called the maximum.

Examples

\(\sup\,[0, 1] = 1\), and it's a maximum. \(\sup\,(0, 1) = 1\), but \((0, 1)\) has no maximum: whatever element you pick, a bigger one is closer to 1. \(\inf\{\tfrac1n\} = 0\), not attained. The set \(\mathbb N\) has no upper bound at all, so no supremum.

The completeness axiom

Here is the property that separates \(\mathbb R\) from \(\mathbb Q\), and the foundation of everything that follows.

The completeness axiom

Every nonempty set of real numbers that has an upper bound has a supremum in \(\mathbb R\).

The fractions fail this test. Let \(S = \{x \in \mathbb Q : x^2 < 2\}\). It's nonempty (it contains 1) and bounded above (by 2). Within the fractions, it has no least upper bound: any fractional upper bound can be lowered a little and stay above \(\sqrt2\), because \(\sqrt2\) itself isn't available. In \(\mathbb R\), \(\sup S = \sqrt2\). Completeness says, precisely, that the real line has no holes.

The real numbers can be constructed from the fractions so that completeness is a theorem, using Dedekind's cuts or Cantor's sequences. But for doing analysis, all you need are the familiar rules of arithmetic and order, plus this one axiom.

What completeness buys

The Archimedean property

For every real number \(x\) there is a natural number \(n > x\). Equivalently, for every \(\varepsilon > 0\) there is an \(n\) with \(\tfrac1n < \varepsilon\).

Proof

If not, \(x\) is an upper bound for \(\mathbb N\), so by completeness \(s = \sup\mathbb N\) exists. Since \(s - 1\) is not an upper bound, some \(n > s - 1\). But then \(n + 1 > s\), and \(n + 1\) is a natural number, contradicting that \(s\) is an upper bound. ∎

It sounds obvious, but it says there are no "infinitely large" or "infinitely small" real numbers: this is exactly what bans Newton's infinitesimals from \(\mathbb R\). It also implies that fractions are dense in the reals: between any two real numbers \(a < b\) there is a fraction (choose \(n\) with \(\tfrac1n < b - a\); some multiple \(\tfrac mn\) must land between them).

Completeness can be expressed in several equivalent ways, and different proofs use different ones. Here's one you can see:

Nested interval property

If \(I_1 \supseteq I_2 \supseteq I_3 \supseteq \cdots\) are closed bounded intervals, each inside the last, then at least one point lies in all of them. If their lengths shrink to 0, exactly one point does.

Trapping √2 by halvingEight horizontal bars stacked downwards. The top bar is the interval from 1 to 2. Each bar below is one half of the bar above, the half whose square straddles 2: 1 to 1.5, then 1.25 to 1.5, then 1.375 to 1.5, and so on. A dashed vertical line at √2 passes through every bar, and the bars shrink towards it.1211.51.251.51.3751.5√2[1.41406, 1.42188]
Halving towards √2. Start with \([1, 2]\), since \(1^2 < 2 < 2^2\). Split it in half and keep the half whose endpoints' squares are on opposite sides of 2. Repeat. The intervals nest and shrink, and the single point they share is \(\sqrt2\). This "bisection" idea comes back in Units 3 and 6.

How many real numbers?

Both \(\mathbb Q\) and \(\mathbb R\) are infinite. Surprisingly, they are infinite in different ways. A set is countable if its elements can be listed as a first, second, third and so on, with every element appearing somewhere in the list.

Listing every fractionA grid of fractions p/q, with numerator p from 1 to 5 across and denominator q from 1 to 5 up. A grey path zigzags back and forth along the diagonals, starting at 1/1, so that it eventually reaches every fraction. Fractions not in lowest terms, like 2/2 and 2/4, are greyed out and skipped.1/12/11/21/32/23/14/13/22/31/41/52/43/34/25/15/24/33/42/53/54/45/35/44/55/5
The fractions can be listed. Arrange the positive fractions in a grid and zigzag along the diagonals, skipping repeats like \(2/2\). Every fraction gets a place in the list. So \(\mathbb Q\) is countable, even though it's dense.

Cantor's theorem (1874)

The real numbers are not countable.

Proof: the diagonal argument

Suppose someone claims to list every real number between 0 and 1 as decimals:

1st0.51049…
2nd0.33333…
3rd0.71828…
4th0.14159…

Build a new number digit by digit: make its \(n\)th digit different from the \(n\)th digit of the \(n\)th number (say, use 4 unless that digit is 4, then use 5). Here the diagonal digits are 5, 3, 8, 5, so the new number begins \(0.4444\ldots\). This new number differs from every listed number in at least one decimal place, so it isn't on the list. (Using only digits 4 and 5 avoids the \(0.999\ldots = 1\) double-naming issue.) So no list can contain every real number. ∎

Combining the two facts: the countable fractions are dense, yet they form a vanishingly thin part of the line. "Almost all" real numbers are irrational. In Unit 12 you'll see how to make "almost all" precise.

Practice set

Mixed questions covering the whole unit. Try each one before opening the answer.

1. Prove that \(\sqrt 3\) is irrational.

Show answer

Suppose \(p^2 = 3q^2\) in lowest terms. Then 3 divides \(p^2\), so 3 divides \(p\) (3 is prime). Write \(p = 3k\): \(9k^2 = 3q^2\), so \(q^2 = 3k^2\) and 3 divides \(q\). That's a common factor, a contradiction.

2. Write \(0.\overline{36} = 0.363636\ldots\) as a fraction.

Show answer

Let \(x = 0.\overline{36}\). Then \(100x = 36.\overline{36}\), so \(99x = 36\) and \(x = \tfrac{36}{99} = \tfrac4{11}\).

3. Describe the set \(\{x : |x - 2| < 3\}\) and the set \(\{x : |x + 1| \ge 2\}\) as intervals.

Show answer

The first is \((-1, 5)\): within 3 of 2. The second says \(x\) is at least 2 away from \(-1\): \((-\infty, -3] \cup [1, \infty)\).

4. Find the supremum and infimum of \(S = \{(-1)^n/n : n \in \mathbb N\} = \{-1, \tfrac12, -\tfrac13, \tfrac14, \dots\}\). Are they attained?

Show answer

\(\sup S = \tfrac12\) (attained at \(n = 2\): every positive term is \(\tfrac1n\) with \(n\) even, at most \(\tfrac12\)). \(\inf S = -1\) (attained at \(n = 1\)). So here both are a maximum and a minimum.

5. Show that if \(s\) is an upper bound of \(S\) and \(s \in S\), then \(s = \sup S\).

Show answer

\(s\) is an upper bound. Any upper bound \(M\) must satisfy \(M \ge s\), because \(s\) is an element of \(S\). So \(s\) is the least upper bound.

6. Is the sum of two irrational numbers always irrational? Is the sum of a rational and an irrational?

Show answer

No: \(\sqrt2 + (-\sqrt2) = 0\). But rational plus irrational is always irrational: if \(r + x = s\) with \(r, s\) rational, then \(x = s - r\) would be rational.

Summary and glossary

  1. The fractions \(\mathbb Q\) are dense but full of holes: \(\sqrt 2\) is not a fraction.
  2. The real numbers \(\mathbb R\) fill those holes. Their defining extra property is completeness: every nonempty set that is bounded above has a least upper bound.
  3. The supremum of a set need not belong to it; points of the set come arbitrarily close to it.
  4. Completeness gives the Archimedean property (no infinitesimals), density of \(\mathbb Q\) in \(\mathbb R\), and nested intervals.
  5. \(|x - a| < \varepsilon\) means "within \(\varepsilon\) of \(a\)"; the triangle inequality controls distances.
  6. \(\mathbb Q\) is countable; \(\mathbb R\) is not (Cantor's diagonal argument).
Rational number
A fraction \(p/q\) of integers with \(q \neq 0\).
Irrational number
A real number that is not rational, like \(\sqrt 2\) or \(\pi\).
Dense
A set is dense in \(\mathbb R\) if every interval, however short, contains points of it.
Upper bound
\(M\) with \(x \le M\) for every \(x\) in the set.
Supremum
The least upper bound, \(\sup S\).
Completeness
Every nonempty set bounded above has a supremum.
Countable
Able to be listed as a sequence.
Powered by Webloyt | Report abuse