Skip to main content

MATH 308 — Lec 8 — Proofs with Reals & Sets

Math 308 · October 7, 2026

Lecture 8 — Proofs about Real Numbers and Sets
MATH 308  Bridge to Advanced Mathematics  Chartrand §4.3–4.5

Goals for today. By the end of this lecture you should be able to:

  • prove inequalities about real numbers by starting from a square that is ≥0\ge 0≥0 and rearranging;

  • use the absolute value ∣x∣\left\lvert x \right\rvert∣x∣ as “distance from 000” and prove the triangle inequality;

  • prove a containment A⊆BA \subseteq BA⊆B by the element method — the “for all xxx, x∈A⇒x∈Bx\in A \Rightarrow x\in Bx∈A⇒x∈B” template from Lecture 1;

  • prove a set equality by double containment, and establish identities like the distributive law A∩(B∪C)=(A∩B)∪(A∩C)A \cap (B\cup C) = (A\cap B)\cup(A\cap C)A∩(B∪C)=(A∩B)∪(A∩C).

Proofs involving real numbers (§4.3)

We now prove statements, not just compute. The engine for real-number inequalities is one modest fact: a square is never negative. For every real ttt,

t2≥0,with t2=0 exactly when t=0.t^2 \ge 0, \qquad\text{with } t^2 = 0 \text{ exactly when } t = 0.t2≥0,with t2=0 exactly when t=0.

Almost every inequality below is this fact, wearing a disguise. We also use the order rules you already trust: you may add the same quantity to both sides, and you may multiply both sides by a positive number, without flipping “≤\le≤”.

Example 1. If x∈Rx \in \mathbb{R}x∈R and 0<x<10 < x < 10<x<1, then x2<xx^2 < xx2<x.

Proof. We are given x>0x > 0x>0 and x<1x < 1x<1. Multiply the inequality x<1x < 1x<1 on both sides by the positive number xxx; since x>0x>0x>0 this preserves the direction:

x⋅x<1⋅x,that isx2<x.□x \cdot x < 1 \cdot x, \qquad\text{that is}\qquad x^2 < x. \qquad\squarex⋅x<1⋅x,that isx2<x.□

Notice the shape of the argument: we started from what we were given and pushed forward to what we wanted. That is a direct proof (Lecture 5).

Proposition 1. For all real numbers aaa and bbb,  ab≤a2+b22ab \le \dfrac{a^2 + b^2}{2}ab≤2a2+b2​.

Proof. Let a,b∈Ra,b \in \mathbb{R}a,b∈R be arbitrary. Since (a−b)2≥0(a-b)^2 \ge 0(a−b)2≥0, expanding gives

a2−2ab+b2≥0.a^2 - 2ab + b^2 \ge 0.a2−2ab+b2≥0.

Add 2ab2ab2ab to both sides: a2+b2≥2aba^2 + b^2 \ge 2aba2+b2≥2ab. Dividing by 2>02>02>0 preserves the inequality, so ab≤a2+b22ab \le \tfrac{a^2+b^2}{2}ab≤2a2+b2​, as claimed. ◻

Remark 1. Read Proposition 1 backwards to see the strategy: the thing we wanted, a2+b2≥2aba^2+b^2 \ge 2aba2+b2≥2ab, is equivalent to (a−b)2≥0(a-b)^2 \ge 0(a−b)2≥0, which is obviously true. In your scratch work you may reason from the goal down to something known; in the written proof you reverse the steps so each line follows from the previous one. Never present the scratch direction as the proof.

Absolute value as distance

Definition 1. For x∈Rx \in \mathbb{R}x∈R, the absolute value of xxx is

∣x∣={x,x≥0,−x,x<0.\left\lvert x \right\rvert = \begin{cases} x, & x \ge 0,\\ -x, & x < 0. \end{cases}∣x∣={x,−x,​x≥0,x<0.​

Geometrically ∣x∣\left\lvert x \right\rvert∣x∣ is the distance from xxx to 000 on the number line, and ∣x−y∣\left\lvert x-y \right\rvert∣x−y∣ is the distance between xxx and yyy.

|x| is the distance from x to 0; |x-y| is the distance between x and y.

∣x∣\left\lvert x \right\rvert∣x∣ is the distance from xxx to 000; ∣x−y∣\left\lvert x-y \right\rvert∣x−y∣ is the distance between xxx and yyy.

The single most useful fact about absolute value is the “sandwich” characterization.

Lemma 2. Let a∈Ra \in \mathbb{R}a∈R and let b≥0b \ge 0b≥0. Then ∣a∣≤b\left\lvert a \right\rvert \le b∣a∣≤b  if and only if  −b≤a≤b-b \le a \le b−b≤a≤b.

Proof. (⇒\Rightarrow⇒) Suppose ∣a∣≤b\left\lvert a \right\rvert \le b∣a∣≤b. If a≥0a \ge 0a≥0 then a=∣a∣≤ba = \left\lvert a \right\rvert \le ba=∣a∣≤b, and also a≥0≥−ba \ge 0 \ge -ba≥0≥−b. If a<0a < 0a<0 then −a=∣a∣≤b-a = \left\lvert a \right\rvert \le b−a=∣a∣≤b, so a≥−ba \ge -ba≥−b, and also a<0≤ba < 0 \le ba<0≤b. Either way −b≤a≤b-b \le a \le b−b≤a≤b.

(⇐\Leftarrow⇐) Suppose −b≤a≤b-b \le a \le b−b≤a≤b. If a≥0a \ge 0a≥0 then ∣a∣=a≤b\left\lvert a \right\rvert = a \le b∣a∣=a≤b. If a<0a < 0a<0 then ∣a∣=−a≤b\left\lvert a \right\rvert = -a \le b∣a∣=−a≤b (multiply a≥−ba \ge -ba≥−b by −1-1−1, flipping the inequality). Either way ∣a∣≤b\left\lvert a \right\rvert \le b∣a∣≤b. ◻

Theorem 3 (Triangle inequality). For all real numbers xxx and yyy,  ∣x+y∣≤∣x∣+∣y∣\left\lvert x+y \right\rvert \le \left\lvert x \right\rvert + \left\lvert y \right\rvert∣x+y∣≤∣x∣+∣y∣.

Proof. Let x,y∈Rx,y \in \mathbb{R}x,y∈R. Applying Lemma 2 to a=xa=xa=x, b=∣x∣b=\left\lvert x \right\rvertb=∣x∣ (and to yyy) gives

−∣x∣≤x≤∣x∣,−∣y∣≤y≤∣y∣.-\left\lvert x \right\rvert \le x \le \left\lvert x \right\rvert, \qquad -\left\lvert y \right\rvert \le y \le \left\lvert y \right\rvert.−∣x∣≤x≤∣x∣,−∣y∣≤y≤∣y∣.

Adding these two chains term by term,

−(∣x∣+∣y∣)≤x+y≤∣x∣+∣y∣.-\bigl(\left\lvert x \right\rvert+\left\lvert y \right\rvert\bigr) \le x + y \le \left\lvert x \right\rvert+\left\lvert y \right\rvert.−(∣x∣+∣y∣)≤x+y≤∣x∣+∣y∣.

Now apply Lemma 2 in the other direction, with a=x+ya = x+ya=x+y and b=∣x∣+∣y∣≥0b = \left\lvert x \right\rvert+\left\lvert y \right\rvert \ge 0b=∣x∣+∣y∣≥0: the double inequality above is exactly the statement ∣x+y∣≤∣x∣+∣y∣\left\lvert x+y \right\rvert \le \left\lvert x \right\rvert+\left\lvert y \right\rvert∣x+y∣≤∣x∣+∣y∣. ◻

The name comes from geometry: the length of one side of a triangle never exceeds the sum of the other two. We will lean on Theorem 3 constantly when we make “closeness” precise with limits (Lectures 20–21).

Proofs involving sets (§4.4)

Recall the template from Lecture 1, the one we called the pattern for nearly every proof this term:

A⊆B⟺for every x,  x∈A⇒x∈B.A \subseteq B \quad\Longleftrightarrow\quad \text{for every } x,\ \ x \in A \Rightarrow x \in B.A⊆B⟺for every x,  x∈A⇒x∈B.

To prove A⊆BA \subseteq BA⊆B we therefore run the element method: take an arbitrary x∈Ax \in Ax∈A, and argue that x∈Bx \in Bx∈B. The word “arbitrary” is doing the work of the “for all.”

Proposition 4. For all sets AAA and BBB,  A∩B⊆AA \cap B \subseteq AA∩B⊆A.

Proof. Let x∈A∩Bx \in A \cap Bx∈A∩B be arbitrary. By the definition of intersection, x∈Ax \in Ax∈A and x∈Bx \in Bx∈B. In particular x∈Ax \in Ax∈A. Since xxx was an arbitrary element of A∩BA\cap BA∩B, we conclude A∩B⊆AA \cap B \subseteq AA∩B⊆A. ◻

To prove an equality A=BA = BA=B, recall (Lecture 1) that A=BA = BA=B means A⊆BA \subseteq BA⊆B and B⊆AB \subseteq AB⊆A. So we prove it in two halves. This is the double-containment method, and it is the workhorse of the whole subject.

Theorem 5 (Distributive law). For all sets A,B,CA,B,CA,B,C,  A∩(B∪C)=(A∩B)∪(A∩C)A \cap (B \cup C) = (A \cap B) \cup (A \cap C)A∩(B∪C)=(A∩B)∪(A∩C).

Proof. We prove the two containments separately.

(⊆\subseteq⊆) A∩(B∪C)⊆(A∩B)∪(A∩C)A \cap (B\cup C) \subseteq (A\cap B)\cup(A\cap C)A∩(B∪C)⊆(A∩B)∪(A∩C).  Let x∈A∩(B∪C)x \in A \cap (B\cup C)x∈A∩(B∪C) be arbitrary. Then x∈Ax \in Ax∈A, and x∈B∪Cx \in B \cup Cx∈B∪C, i.e. x∈Bx \in Bx∈B or x∈Cx \in Cx∈C. We consider the two cases.

  • If x∈Bx \in Bx∈B: then x∈Ax \in Ax∈A and x∈Bx \in Bx∈B, so x∈A∩Bx \in A \cap Bx∈A∩B, hence x∈(A∩B)∪(A∩C)x \in (A\cap B)\cup(A\cap C)x∈(A∩B)∪(A∩C).

  • If x∈Cx \in Cx∈C: then x∈Ax \in Ax∈A and x∈Cx \in Cx∈C, so x∈A∩Cx \in A \cap Cx∈A∩C, hence x∈(A∩B)∪(A∩C)x \in (A\cap B)\cup(A\cap C)x∈(A∩B)∪(A∩C).

In either case x∈(A∩B)∪(A∩C)x \in (A\cap B)\cup(A\cap C)x∈(A∩B)∪(A∩C), which proves this containment.

(⊇\supseteq⊇) (A∩B)∪(A∩C)⊆A∩(B∪C)(A\cap B)\cup(A\cap C) \subseteq A \cap (B\cup C)(A∩B)∪(A∩C)⊆A∩(B∪C).  Let x∈(A∩B)∪(A∩C)x \in (A\cap B)\cup(A\cap C)x∈(A∩B)∪(A∩C) be arbitrary. Then x∈A∩Bx \in A\cap Bx∈A∩B or x∈A∩Cx \in A\cap Cx∈A∩C.

  • If x∈A∩Bx \in A\cap Bx∈A∩B: then x∈Ax \in Ax∈A and x∈Bx \in Bx∈B; since x∈Bx\in Bx∈B we have x∈B∪Cx \in B\cup Cx∈B∪C, so x∈A∩(B∪C)x \in A\cap(B\cup C)x∈A∩(B∪C).

  • If x∈A∩Cx \in A\cap Cx∈A∩C: then x∈Ax \in Ax∈A and x∈Cx \in Cx∈C; since x∈Cx\in Cx∈C we have x∈B∪Cx \in B\cup Cx∈B∪C, so x∈A∩(B∪C)x \in A\cap(B\cup C)x∈A∩(B∪C).

In either case x∈A∩(B∪C)x \in A\cap(B\cup C)x∈A∩(B∪C), which proves this containment.

Having shown both containments, A∩(B∪C)=(A∩B)∪(A∩C)A \cap (B\cup C) = (A\cap B)\cup(A\cap C)A∩(B∪C)=(A∩B)∪(A∩C). ◻

The shaded region is A (B C): the part of A lying in B or in C. It coincides with (A B)(A C) — the picture and the proof agree.

The shaded region is A∩(B∪C)A \cap (B\cup C)A∩(B∪C): the part of AAA lying in BBB or in CCC. It coincides with (A∩B)∪(A∩C)(A\cap B)\cup(A\cap C)(A∩B)∪(A∩C) — the picture and the proof agree.

Remark 2. A picture like this is a wonderful guide, but it is not a proof: a Venn diagram cannot certify a statement about all sets, and diagrams for four or more sets stop being trustworthy. The double-containment argument does what the picture cannot.

The same method proves the companion identities. As a second, cleaner example we prove one of De Morgan’s laws — promised (unproven) back in Lecture 1.

Proposition 6 (A De Morgan law). Let A,B⊆UA,B \subseteq UA,B⊆U. Then  (A∪B)c=Ac∩Bc(A \cup B)^{c} = A^{c} \cap B^{c}(A∪B)c=Ac∩Bc.

Proof. Let x∈Ux \in Ux∈U be arbitrary; we show xxx lies in the left side iff it lies in the right side.

x∈(A∪B)c⇔x∉A∪B⇔(x∉A and x∉B)⇔(x∈Ac and x∈Bc)⇔x∈Ac∩Bc.x \in (A\cup B)^{c} \Leftrightarrow x \notin A \cup B \Leftrightarrow \bigl(x \notin A \text{ and } x \notin B\bigr) \Leftrightarrow \bigl(x \in A^{c} \text{ and } x \in B^{c}\bigr) \Leftrightarrow x \in A^{c}\cap B^{c}.x∈(A∪B)c⇔x∈/A∪B⇔(x∈/A and x∈/B)⇔(x∈Ac and x∈Bc)⇔x∈Ac∩Bc.

Since each step is an “if and only if,” an element belongs to one side exactly when it belongs to the other, so the sets are equal. ◻

Remark 3. Proposition 6 shows a second flavor of the element method: instead of two separate containments, we chain iffs so both directions are handled at once. Use double containment when the two directions need different arguments; use the iff-chain when every step reverses cleanly. (Recall from Lecture 1 that we write the complement as AcA^{c}Ac, reserving the overline for the closure of a set of reals, Lecture 21.)

Homework problems

  1. Prove: for all real numbers a,ba,ba,b, if 0≤a≤b0 \le a \le b0≤a≤b then a2≤b2a^2 \le b^2a2≤b2. (Where do you use a≥0a \ge 0a≥0?)

  2. Prove: for every real number xxx,  x2+1≥2∣x∣x^2 + 1 \ge 2\left\lvert x \right\rvertx2+1≥2∣x∣. (Hint: start from (∣x∣−1)2≥0(\left\lvert x \right\rvert-1)^2 \ge 0(∣x∣−1)2≥0.)

  3. Use the element method to prove A−B⊆AA - B \subseteq AA−B⊆A for all sets A,BA,BA,B.

  4. Prove by double containment the other distributive law: A∪(B∩C)=(A∪B)∩(A∪C)A \cup (B \cap C) = (A\cup B)\cap(A\cup C)A∪(B∩C)=(A∪B)∩(A∪C).

  5. Prove the second De Morgan law (A∩B)c=Ac∪Bc(A\cap B)^{c} = A^{c}\cup B^{c}(A∩B)c=Ac∪Bc, either by double containment or by an iff-chain.

  6. True or false, with a one-line reason: if A⊆BA \subseteq BA⊆B then A∩C⊆B∩CA \cap C \subseteq B \cap CA∩C⊆B∩C for every set CCC.

Suggested textbook exercises (Chartrand §4.3–4.5): 4.30, 4.34, 4.40, 4.48, 4.54, 4.60, 4.66.

← Back to Math 308