Skip to content
ELECTRONICS ENGINEERINGelectronics-engineering.com
Geometry and Algebra Math Analysis 1

Sets, logic and real numbers: the basics of Analysis 1

Sets and logic for Analysis 1: operations and De Morgan's laws, quantifiers, the irrationality of the square root of 2, supremum, completeness and absolute value, with examples.

https://www.electronics-engineering.com/en/sets-logic-real-numbers-analysis-1-basics/

Was this page useful? Rate it:
average 3.0 from 1 rating

The first chapter of Analysis 1 looks like the easiest: sets, logical symbols, real numbers. In fact it fixes the language of the whole rest of the course. Anyone who tackles it in a hurry later struggles to read the definitions of limit and continuity, which are written with exactly these tools.

In this lesson you will learn: the operations between sets and De Morgan’s laws; how quantifiers are used and negated; why \sqrt{2} is not rational; what the supremum and infimum are and why the completeness of the reals matters; how to solve inequalities with the absolute value and how to prove the triangle inequality.

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 \mathchar"313C 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 Bare in A or in B
IntersectionA \cap Bare in both A and B
DifferenceA \setminus Bare in A but not in B
ComplementA^care not in A (with respect to a universal set)
Cartesian productA \times Bordered pairs (a, b)

Example

With A = \{1, 2, 3, 4\} and B = \{3, 4, 5\}: A \cup B = \{1, 2, 3, 4, 5\}, A \cap B = \{3, 4\}, A \setminus B = \{1, 2\}, B \setminus A = \{5\}. The Cartesian product A \times B has 4 \cdot 3 = 12 pairs, from (1, 3) to (4, 5); note that (1, 3) \ne (3, 1), because the pairs are ordered.

De Morgan’s laws

Two rules that are often useful 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 recognises them: they are the same ones that turn a NAND gate into an OR of negated inputs.

A little logic: quantifiers and implications

The order of quantifiers

The definitions of Analysis use two quantifiers: \forall (“for every”) and \exists (“there exists”). The order matters enormously. “\forall x\ \exists y : y \mathchar"313E x” is true in the reals (for every number there is a larger one), while “\exists y\ \forall x : y \mathchar"313E x” is false (there is no number larger than all the others).

Negating a statement

To negate a statement with quantifiers, one swaps \forall and \exists and negates the final property. The negation of “for every \varepsilon \mathchar"313E 0 there exists \delta \mathchar"313E 0 such that…” is “there exists \varepsilon \mathchar"313E 0 such that for every \delta \mathchar"313E 0… the property does not hold”. It is exactly the way to show that a limit does not equal a given number.

Implication and contrapositive

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, think of |x| at 0.

The contrapositive is often the most convenient way to prove: “if p^2 is even then p is even” is equivalent to “if p is odd then p^2 is odd”, which is immediate: p = 2m + 1 gives p^2 = 4m^2 + 4m + 1, which is odd. This fact is used in the proof that follows.

From the naturals to the reals

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

Why the square root of 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 therefore p is even: p = 2k. Substituting, 4k^2 = 2q^2, that is q^2 = 2k^2, so q is even too. 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 of the upper bounds. If it belongs to A it is also called the maximum. Symmetrically, the infimum \inf A is the largest of the lower bounds, and if it belongs to A it is the minimum.

Examples

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 smaller than 1 is, because 1 - \frac1n gets as close to 1 as one likes. So \sup A = 1, but 1 does not belong to A: the set has no maximum.

The same set does have a minimum: 0, obtained for n = 1, so \inf A = \min A = 0. Conversely, C = \{\frac1n : n \ge 1\} has maximum 1 but no minimum: \inf C = 0, which is not an element of C.

The completeness axiom

The completeness axiom says that in \mathbb{R} every non-empty set bounded above has a supremum. It is not true in the rationals: \{q \in \mathbb{Q} : q^2 \mathchar"313C 2\} is bounded, but its supremum would be \sqrt 2, which is missing. This property, apparently technical, is what makes the most important theorems of the course work: the intermediate value 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 to know by heart:

  • |x - c| \mathchar"313C r means c - r \mathchar"313C x \mathchar"313C c + r: the neighbourhood of c of radius r;
  • the triangle inequality |x + y| \le |x| + |y|, which is used in almost every epsilon and delta proof.

Inequalities with the absolute value

First example: |x - 3| \mathchar"313C 2 means 1 \mathchar"313C x \mathchar"313C 5, that is the interval (1, 5), centred at 3 with radius 2. Second example: |2x - 1| \ge 3 holds when 2x - 1 \ge 3 or 2x - 1 \le -3, that is x \ge 2 or x \le -1: the solution is (-\infty, -1] \cup [2, +\infty). Check: x = 0 gives |-1| = 1, not a solution, and indeed 0 lies between -1 and 2.

Proof of the triangle inequality

For every real number -|x| \le x \le |x|, and the same for y. Adding the inequalities term by term gives -(|x| + |y|) \le x + y \le |x| + |y|, which by the neighbourhood rule seen above means exactly |x + y| \le |x| + |y|. ∎ Applying it to x = (x - y) + y one also obtains the “reversed” form \big||x| - |y|\big| \le |x - y|, useful to estimate from below.

Reading the definition of limit

With these tools the definition of limit, “for every \varepsilon \mathchar"313E 0 there exists \delta \mathchar"313E 0 such that 0 \mathchar"313C |x - c| \mathchar"313C \delta \Rightarrow |f(x) - L| \mathchar"313C \varepsilon“, can be read without effort: it is a sentence with two quantifiers, two neighbourhoods and an implication.

In summary

  • Union, intersection, difference, complement and Cartesian product are the basic operations; De Morgan swaps union and intersection when passing to complements.
  • The order of the quantifiers changes the meaning; to negate, one swaps \forall and \exists and negates the property.
  • An implication is equivalent to its contrapositive, not to its converse.
  • \sqrt 2 is not rational: the rationals have gaps, which the completeness of the reals closes (every non-empty set bounded above has a supremum).
  • |x - c| \mathchar"313C r describes a neighbourhood; the triangle inequality is the basic tool for epsilon and delta estimates.
Subscribe
Notify of
guest
1 Comment
Oldest
Newest Most Voted
1
0
Would love your thoughts, please comment.x
()
x