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:
- Is \(0.999\ldots\) equal to 1, or just very slightly less?
- What is \(1 - 1 + 1 - 1 + \cdots\)? Grouping as \((1 - 1) + (1 - 1) + \cdots\) gives 0. Grouping as \(1 - (1 - 1) - (1 - 1) - \cdots\) gives 1.
- Is there a function that is continuous everywhere but has a slope nowhere? (Yes: Unit 11.)
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.
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.
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|\).
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.
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.
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.
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:
| 1st | 0.51049… |
| 2nd | 0.33333… |
| 3rd | 0.71828… |
| 4th | 0.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
- The fractions \(\mathbb Q\) are dense but full of holes: \(\sqrt 2\) is not a fraction.
- 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.
- The supremum of a set need not belong to it; points of the set come arbitrarily close to it.
- Completeness gives the Archimedean property (no infinitesimals), density of \(\mathbb Q\) in \(\mathbb R\), and nested intervals.
- \(|x - a| < \varepsilon\) means "within \(\varepsilon\) of \(a\)"; the triangle inequality controls distances.
- \(\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.