Skip to content
Geometry and Algebra Math Analysis 1

Sets, logic and real numbers: the foundations of calculus

Sets and operations, quantifiers and implications, why the square root of 2 is irrational, supremum and completeness of the reals, absolute value and the triangle inequality.

The first chapter of calculus looks like the easiest one: sets, logical symbols, real numbers. In fact it sets the language for the rest of the course. Students who rush through it later struggle to read the definitions of limit and continuity, which are written with exactly these tools.

Sets and operations

A set is a collection of objects, called elements. It can be described by listing the elements, A = \{1, 2, 3\}, or by a property, B = \{x \in \mathbb{R} : x^2 < 4\}, which is the interval (-2, 2). We write x \in A if x belongs to A, and A \subseteq B if every element of A is also in B. Two sets are equal when each is contained in the other: order and repetitions do not matter.

OperationSymbolElements
UnionA \cup Bin A or in B
IntersectionA \cap Bin both A and B
DifferenceA \setminus Bin A but not in B
ComplementA^cnot in A (with respect to a universal set)
Cartesian productA \times Bordered pairs (a, b)

Two rules that come in handy are De Morgan’s laws: (A \cup B)^c = A^c \cap B^c and (A \cap B)^c = A^c \cup B^c. Anyone who has studied logic circuits will recognise them: they are the same laws that turn a NAND gate into an OR of inverted inputs.

A little logic: quantifiers and implications

The definitions of calculus use two quantifiers: \forall (“for every”) and \exists (“there exists”). Their order matters a great deal. “\forall x\ \exists y : y > x” is true in the reals (for every number there is a larger one), while “\exists y\ \forall x : y > x” is false (there is no number larger than all the others).

To negate a statement with quantifiers, swap \forall and \exists and negate the final property. The negation of “for every \varepsilon > 0 there exists \delta > 0 such that…” is “there exists \varepsilon > 0 such that for every \delta > 0…” the property fails. This is exactly how you prove that a limit is not a given number.

An implication P \Rightarrow Q is equivalent to its contrapositive \lnot Q \Rightarrow \lnot P, but not to its converse Q \Rightarrow P. “If a function is differentiable then it is continuous” is true; “if it is continuous then it is differentiable” is false, just think of |x| at 0.

From natural numbers to real numbers

\mathbb{N} \subset \mathbb{Z} \subset \mathbb{Q} \subset \mathbb{R}: each step adds something that was missing. Integers allow subtraction, rationals allow division. The rationals are already “dense” (between two rationals there is always another one), and yet they have holes: \sqrt{2} is not rational.

The classic proof is by contradiction. Suppose \sqrt{2} = \frac{p}{q} with the fraction in lowest terms. Then p^2 = 2q^2, so p^2 is even and p is even too: p = 2k. Substituting, 4k^2 = 2q^2, that is q^2 = 2k^2, so q is even as well. But then the fraction was not in lowest terms: contradiction. ∎

Supremum and completeness

A set A \subseteq \mathbb{R} is bounded above if there is a number M greater than or equal to all its elements (an upper bound). The supremum \sup A is the smallest upper bound. If it belongs to A it is also called the maximum.

Example: A = \{1 - \frac{1}{n} : n \ge 1\} = \{0, \frac12, \frac23, \frac34, \dots\}. Every number \ge 1 is an upper bound, and no number below 1 is, because 1 - \frac1n gets as close to 1 as we like. So \sup A = 1, but 1 does not belong to A: the set has no maximum.

The completeness axiom says that in \mathbb{R} every non-empty set that is bounded above has a supremum. In the rationals this fails: \{q \in \mathbb{Q} : q^2 < 2\} is bounded, but its supremum would be \sqrt 2, which is missing. This apparently technical property is what makes the most important theorems of the course work: the intermediate zero theorem, Bolzano-Weierstrass, the existence of the limit of monotone sequences.

Absolute value and the triangle inequality

|x| is the distance of x from 0, and |x - y| the distance between two numbers. Two facts worth knowing by heart:

  • |x - c| < r means c - r < x < c + r: the neighbourhood of c with radius r;
  • the triangle inequality |x + y| \le |x| + |y|, which is needed in almost every epsilon-delta proof.

With these tools the definition of limit, “for every \varepsilon > 0 there exists \delta > 0 such that 0 < |x - c| < \delta \Rightarrow |f(x) - L| < \varepsilon“, reads without effort: it is a sentence with two quantifiers, two neighbourhoods and an implication.

Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
0
Would love your thoughts, please comment.x
()
x