Salta al contenuto
Note per Studenti Number Sets, Ordered Fields and Absolute Value Report

Number Sets, Ordered Fields and Absolute Value

In questa pagina 6

Prerequisites: Logic and Proof TechniquesPropositions, connectives, predicates and quantifiers with the rules for negating them, and the three basic proof techniques (direct, contrapositive, contradiction).Logic and Proof Techniques →, Sets and Set OperationsWays of describing a set, subsets and equality, the power set, finite and infinite sets, union, intersection, difference, complement, De Morgan laws and the Cartesian product.Sets and Set Operations →. The property that distinguishes R\mathbb{R} from Q\mathbb{Q} is in Completeness of the Reals - Supremum and InfimumUpper and lower bounds, maximum and minimum, supremum and infimum with their epsilon characterization, the completeness axiom of the reals (continuity, separation, existence of the sup), density of the rationals, the Archimedean property and a method for sup and inf of a set.Completeness of the Reals - Supremum and Infimum →.

The number sets

Naturals. N={0,1,2,3,… }\mathbb{N} = \{0,1,2,3,\dots\}, N∗=N∖{0}\mathbb{N}^* = \mathbb{N} \setminus \{0\}. In this course 0∈N0 \in \mathbb{N}. Every nn has a successor n+1n+1, every n≥1n \ge 1 has a predecessor n−1n-1 (needed for induction).

Integers. Z={0,±1,±2,… }\mathbb{Z} = \{0, \pm1, \pm2, \dots\}: negatives are added so that subtraction is always possible.

Rationals. Q={mn:m∈Z, n∈N∗}.\mathbb{Q} = \Big\{\frac mn : m \in \mathbb{Z},\ n \in \mathbb{N}^*\Big\}. The denominator is positive (the sign goes in the numerator) and never zero. The fraction representing a number is not unique (34=68=912\frac34 = \frac68 = \frac9{12}) but there is always a unique one in lowest terms, with mm and nn coprime. A rational has a decimal expansion that is either finite or periodic (14=0.25\frac14 = 0.25, 13=0.3‾\frac13 = 0.\overline3, 17=0.142857‾\frac17 = 0.\overline{142857}): in the division m:nm : n the remainders are among 0,…,n−10, \dots, n-1, so one repeats (or is 00) and the digits repeat from then on.

Reals (intuitive definition). R\mathbb{R} is the set of all decimal expansions r=m.d1d2d3…r = m.d_1d_2d_3\dots, including those that neither end nor become periodic, like 2=1.41421356…\sqrt2 = 1.41421356\dots or π=3.14159265…\pi = 3.14159265\dots Non-rational reals are irrational. Then N⊊Z⊊Q⊊R,\mathbb{N} \subsetneq \mathbb{Z} \subsetneq \mathbb{Q} \subsetneq \mathbb{R}, with −1∈Z∖N-1 \in \mathbb{Z} \setminus \mathbb{N}, 12∈Q∖Z\frac12 \in \mathbb{Q} \setminus \mathbb{Z}, 2∈R∖Q\sqrt2 \in \mathbb{R} \setminus \mathbb{Q}.

Why Q\mathbb{Q} is not enough

Theorem. If c∈Rc \in \mathbb{R} and c2=2c^2 = 2, then c∉Qc \notin \mathbb{Q}.

(Proof by contradiction: write c=mnc = \frac mn in lowest terms; m2=2n2m^2 = 2n^2 makes mm even, then nn even, contradicting coprimality; see Logic and Proof TechniquesPropositions, connectives, predicates and quantifiers with the rules for negating them, and the three basic proof techniques (direct, contrapositive, contradiction).Logic and Proof Techniques →. Note 9970≈1.41429\frac{99}{70} \approx 1.41429 is close to 2\sqrt2 but (9970)2=98014900≠2(\frac{99}{70})^2 = \frac{9801}{4900} \ne 2.) Consequences:

  1. Analytic: x2=2x^2 = 2 has no solution in Q\mathbb{Q}.
  2. Geometric: Q\mathbb{Q} is not in one-to-one correspondence with the points of a line: the diagonal cc of the unit square satisfies c2=12+12=2c^2 = 1^2 + 1^2 = 2 (Pythagoras), and marking it on the line from 00 gives a point with no rational coordinate. The rationals leave holes.

This motivates R\mathbb{R}: there x2=2x^2 = 2 is solvable and the real line has no holes.

Intervals

For a<ba < b:

Symbol Set Name
[a,b][a,b] a≤x≤ba \le x \le b closed interval
[a,b)[a,b) a≤x<ba \le x < b closed left, open right
(a,b](a,b] a<x≤ba < x \le b open left, closed right
(a,b)(a,b) a<x<ba < x < b open interval
[a,+∞)[a,+\infty), (a,+∞)(a,+\infty) x≥ax \ge a, x>ax > a closed / open half-line
(−∞,b](-\infty,b], (−∞,b)(-\infty,b) x≤bx \le b, x<bx < b closed / open half-line

Square bracket = endpoint included (full dot on the line), round = excluded (empty dot). At ±∞\pm\infty the bracket is always round, because ±∞\pm\infty are not real numbers. (Some books write [a,b[[a,b[ for [a,b)[a,b): same thing.)

Fields

Definition (field). XX is a field if it has a sum and a product such that for all a,b,c∈Xa,b,c \in X:

Sum: (1) a+b=b+aa + b = b + a; (2) a+(b+c)=(a+b)+ca + (b + c) = (a + b) + c; (3) there is a unique neutral element 00 with a+0=aa + 0 = a; (4) every aa has a unique opposite −a-a with a+(−a)=0a + (-a) = 0.

Product: (1) ab=baab = ba; (2) a(bc)=(ab)ca(bc) = (ab)c; (3) there is a unique neutral element 11 with 1⋅a=a1 \cdot a = a; (4) every a≠0a \ne 0 has a unique reciprocal a−1a^{-1} with aa−1=1a a^{-1} = 1.

Distributive law: a(b+c)=ab+aca(b + c) = ab + ac.

Q\mathbb{Q} is a field (23\frac23 has reciprocal 32\frac32). N\mathbb{N} is not (no opposites: −3∉N-3 \notin \mathbb{N}); Z\mathbb{Z} is not (no reciprocals: 12∉Z\frac12 \notin \mathbb{Z}). Zero has no reciprocal (anything times 00 is 00): this is why one cannot divide by zero. Difference and quotient are defined: a−b=a+(−b)a - b = a + (-b), ab=a⋅b−1\frac ab = a \cdot b^{-1} (b≠0b \ne 0). From these few rules all the rules for equations follow, e.g. the zero-product law: ab=0  ⟺  a=0ab = 0 \iff a = 0 or b=0b = 0 (if a≠0a \ne 0, multiplying ab=0ab = 0 by a−1a^{-1} gives b=0b = 0).

Ordered fields

XX is ordered if there is a relation ≤\le that is reflexive (a≤aa \le a), antisymmetric (a≤ba \le b and b≤ab \le a imply a=ba = b) and transitive. It is totally ordered if any two elements are comparable (a≤ba \le b or b≤ab \le a). The power set P(X)\mathcal{P}(X) with ⊆\subseteq is ordered but not totally: with X={1,2}X = \{1,2\}, {1}\{1\} and {2}\{2\} cannot be compared. Then a<ba < b means a≤ba \le b and a≠ba \ne b.

Definition (totally ordered field). A field, totally ordered, with compatible operations: a≤b  ⟺  a+c≤b+ca \le b \iff a + c \le b + c for all cc; a≤b  ⟺  ca≤cba \le b \iff ca \le cb for all c>0c > 0.

Q\mathbb{Q} and R\mathbb{R} are totally ordered fields; N\mathbb{N}, Z\mathbb{Z} are totally ordered sets but not fields. All the rules for inequalities follow:

Operation on both sides of a≤ba \le b Result
add any cc a+c≤b+ca + c \le b + c
multiply by c>0c > 0 ca≤cbca \le cb
multiply by c<0c < 0 ca≥cbca \ge cb (order reversed)
reciprocals, if 0<a≤b0 < a \le b 1a≥1b\frac1a \ge \frac1b

Why multiplying by c<0c < 0 reverses: −c>0-c > 0, so a≤b  ⟺  −ca≤−cba \le b \iff -ca \le -cb; adding ca+cbca + cb gives cb≤cacb \le ca. (Example: 2<32 < 3 but −2>−3-2 > -3.) Never multiply an inequality by a quantity of unknown sign (e.g. by xx): treat the cases separately.

Absolute value

Definition. ∣x∣=x|x| = x if x≥0x \ge 0, and ∣x∣=−x|x| = -x if x<0x < 0.

In the second case xx is negative so −x-x is positive (∣−5∣=5|-5| = 5): hence ∣x∣≥0|x| \ge 0. When there is an expression inside, first decide its sign: ∣3−7∣=∣−4∣=4|3 - 7| = |-4| = 4, ∣π−4∣=4−π|\pi - 4| = 4 - \pi.

Geometric meaning. ∣x∣|x| is the distance of xx from 00; ∣a−b∣=∣b−a∣|a - b| = |b - a| is the distance between aa and bb; ∣x−2∣|x - 2| is the distance of xx from 22. The graph of ∣x∣|x| is a "V" with vertex at the origin; ∣x−2∣|x - 2| has vertex at x=2x = 2.

Properties (for all x,y∈Rx, y \in \mathbb{R}):

  1. ∣x∣≥0|x| \ge 0, and ∣x∣=0  ⟺  x=0|x| = 0 \iff x = 0;
  2. ∣−x∣=∣x∣|-x| = |x|;
  3. ∣xy∣=∣x∣∣y∣|xy| = |x||y|, and ∣xy∣=∣x∣∣y∣\big|\frac xy\big| = \frac{|x|}{|y|} for y≠0y \ne 0;
  4. ∣x∣2=x2|x|^2 = x^2, hence x2=∣x∣\sqrt{x^2} = |x| (not xx!): (−3)2=3\sqrt{(-3)^2} = 3;
  5. −∣x∣≤x≤∣x∣-|x| \le x \le |x|;
  6. triangle inequality: ∣x+y∣≤∣x∣+∣y∣|x + y| \le |x| + |y|, and its corollary ∣∣x∣−∣y∣∣≤∣x−y∣\big||x| - |y|\big| \le |x - y|;
  7. ∣xy∣≤x2+y22|xy| \le \frac{x^2 + y^2}{2}.

Proofs. (3) by signs: if x,y≥0x, y \ge 0, ∣xy∣=xy=∣x∣∣y∣|xy| = xy = |x||y|; if x,y<0x, y < 0, xy>0xy > 0 and ∣x∣∣y∣=(−x)(−y)=xy|x||y| = (-x)(-y) = xy; if x≥0>yx \ge 0 > y, ∣xy∣=−xy=x(−y)=∣x∣∣y∣|xy| = -xy = x(-y) = |x||y|; the last case is analogous. (5) If x≥0x \ge 0, ∣x∣=x|x| = x and −∣x∣≤0≤x-|x| \le 0 \le x; if x<0x < 0, x=−∣x∣<0≤∣x∣x = -|x| < 0 \le |x|. (6) Add −∣x∣≤x≤∣x∣-|x| \le x \le |x| and −∣y∣≤y≤∣y∣-|y| \le y \le |y| to get −(∣x∣+∣y∣)≤x+y≤∣x∣+∣y∣-(|x| + |y|) \le x + y \le |x| + |y|, which means ∣x+y∣≤∣x∣+∣y∣|x + y| \le |x| + |y|. Equality holds when x,yx, y have the same sign; geometrically, going through an intermediate point is never shorter than the direct path. (7) 0≤(∣x∣−∣y∣)2=x2−2∣xy∣+y20 \le (|x| - |y|)^2 = x^2 - 2|xy| + y^2. ■\blacksquare

Equations and inequalities with ∣x∣|x| (r>0r > 0):

Condition Equivalent to
∣x∣<r\lvert x \rvert < r −r<x<r-r < x < r
∣x∣≤r\lvert x \rvert \le r −r≤x≤r-r \le x \le r
∣x∣>r\lvert x \rvert > r x<−rx < -r or x>rx > r
∣x∣≥r\lvert x \rvert \ge r x≤−rx \le -r or x≥rx \ge r
∣x∣=r\lvert x \rvert = r x=±rx = \pm r
∣x−a∣<r\lvert x - a \rvert < r a−r<x<a+ra - r < x < a + r (interval of centre aa, radius rr)

For r<0r < 0: ∣x∣=r|x| = r and ∣x∣≤r|x| \le r have no solution, ∣x∣≥r|x| \ge r holds for all xx. For r=0r = 0: ∣x∣≤0|x| \le 0 only at x=0x = 0. Proof of ∣x∣<r  ⟺  −r<x<r|x| < r \iff -r < x < r: if x≥0x \ge 0 it reads 0≤x<r0 \le x < r; if x<0x < 0 it reads −x<r-x < r, i.e. x>−rx > -r (multiplying by −1-1 reverses), so −r<x<0-r < x < 0; join the two cases.

With expressions f,gf, g: ∣f∣<g  ⟺  −g<f<g|f| < g \iff -g < f < g (a system, intersection); ∣f∣>g  ⟺  f<−g|f| > g \iff f < -g or f>gf > g (union); ∣f∣=g  ⟺  f=±g|f| = g \iff f = \pm g (with g≥0g \ge 0); ∣f∣≤∣g∣  ⟺  f2≤g2|f| \le |g| \iff f^2 \le g^2 (squaring is legitimate because both sides are ≥0\ge 0, for non-negative a,ba, b we have a≤b  ⟺  a2≤b2a \le b \iff a^2 \le b^2; without moduli it is not, −3<2-3 < 2 but 9>49 > 4).

Examples. ∣2x−1∣≥3|2x - 1| \ge 3: 2x−1≤−32x - 1 \le -3 or 2x−1≥32x - 1 \ge 3, i.e. x≤−1x \le -1 or x≥2x \ge 2. ∣2x−1∣<5  ⟺  −4<2x<6  ⟺  −2<x<3|2x - 1| < 5 \iff -4 < 2x < 6 \iff -2 < x < 3. ∣x−2∣=3  ⟺  x=5|x - 2| = 3 \iff x = 5 or x=−1x = -1. ∣x−1∣<∣x+2∣|x - 1| < |x + 2|: squaring, x2−2x+1<x2+4x+4x^2 - 2x + 1 < x^2 + 4x + 4, so x>−12x > -\frac12 (geometrically: closer to 11 than to −2-2, the midpoint being −12-\frac12).

Cauchy-Schwarz inequality (for lists). For reals a1,…,ana_1,\dots,a_n, b1,…,bnb_1,\dots,b_n: ∣∑i=1naibi∣≤∑ai2 ∑bi2,equivalently(∑aibi)2≤(∑ai2)(∑bi2).\Big|\sum_{i=1}^n a_ib_i\Big| \le \sqrt{\sum a_i^2}\,\sqrt{\sum b_i^2}, \quad \text{equivalently} \quad \Big(\sum a_ib_i\Big)^2 \le \Big(\sum a_i^2\Big)\Big(\sum b_i^2\Big). Proof. Put A=∑ai2A = \sum a_i^2, B=∑aibiB = \sum a_ib_i, C=∑bi2C = \sum b_i^2. For every real tt, 0≤∑(ait+bi)2=At2+2Bt+C0 \le \sum(a_it + b_i)^2 = At^2 + 2Bt + C. If A=0A = 0 all ai=0a_i = 0 so B=0B = 0 and the claim is 0≤00 \le 0. If A>0A > 0 take t=−BAt = -\frac BA: 0≤B2A−2B2A+C=C−B2A0 \le \frac{B^2}{A} - \frac{2B^2}{A} + C = C - \frac{B^2}{A}, so B2≤ACB^2 \le AC. Taking square roots, ∣B∣≤AC|B| \le \sqrt A\sqrt C. ■\blacksquare Equality holds when the lists are proportional. Example: a=(1,2,3)a = (1,2,3), b=(4,5,6)b = (4,5,6): 322=1024≤14⋅77=107832^2 = 1024 \le 14 \cdot 77 = 1078. With bi=1b_i = 1: (∑ai)2≤n∑ai2(\sum a_i)^2 \le n\sum a_i^2.

Common mistakes

  • Multiplying an inequality by an expression of unknown sign without distinguishing cases.
  • Writing x2=x\sqrt{x^2} = x.
  • Solving ∣f∣<g|f| < g as a union, or ∣f∣>g|f| > g as a system.
  • Squaring both sides of an inequality whose sides can be negative.

Versione ripasso

Sets. N={0,1,2,… }\mathbb{N} = \{0,1,2,\dots\} (here 0∈N0 \in \mathbb{N}), Z\mathbb{Z}, Q={mn:m∈Z,n∈N∗}\mathbb{Q} = \{\frac mn : m \in \mathbb{Z}, n \in \mathbb{N}^*\} (unique form in lowest terms; decimals finite or periodic), R\mathbb{R} = all decimal expansions. N⊊Z⊊Q⊊R\mathbb{N} \subsetneq \mathbb{Z} \subsetneq \mathbb{Q} \subsetneq \mathbb{R}.

Q\mathbb{Q} is not enough: c2=2⇒c∉Qc^2 = 2 \Rightarrow c \notin \mathbb{Q} (contradiction with mn\frac mn in lowest terms). So x2=2x^2 = 2 has no rational solution and Q\mathbb{Q} leaves holes in the line.

Intervals: [a,b][a,b], [a,b)[a,b), (a,b](a,b], (a,b)(a,b), half-lines; square bracket = included; ±∞\pm\infty never included.

Field: sum (commutative, associative, 00, opposite) and product (commutative, associative, 11, reciprocal for a≠0a \ne 0) plus the distributive law. Q,R\mathbb{Q}, \mathbb{R} are fields; N\mathbb{N} (no opposite) and Z\mathbb{Z} (no reciprocal) are not. a−b=a+(−b)a - b = a + (-b), ab=ab−1\frac ab = ab^{-1}. Zero-product law: ab=0  ⟺  a=0ab = 0 \iff a = 0 or b=0b = 0.

Totally ordered field: order reflexive, antisymmetric, transitive, any two comparable; a≤b  ⟺  a+c≤b+ca \le b \iff a + c \le b + c; a≤b  ⟺  ca≤cba \le b \iff ca \le cb for c>0c > 0. (P(X),⊆)(\mathcal{P}(X), \subseteq) is ordered but not totally.

  • Multiply by c<0c < 0: order reverses. Reciprocals of 0<a≤b0 < a \le b: 1a≥1b\frac1a \ge \frac1b.

Absolute value: ∣x∣=x|x| = x for x≥0x \ge 0, −x-x for x<0x < 0; distance from 00; ∣a−b∣|a - b| distance between aa and bb.

  • ∣x∣≥0|x| \ge 0; ∣xy∣=∣x∣∣y∣|xy| = |x||y|; ∣x∣2=x2|x|^2 = x^2, x2=∣x∣\sqrt{x^2} = |x|; −∣x∣≤x≤∣x∣-|x| \le x \le |x|.
  • Triangle inequality ∣x+y∣≤∣x∣+∣y∣|x + y| \le |x| + |y| (add −∣x∣≤x≤∣x∣-|x| \le x \le |x| and the same for yy); ∣∣x∣−∣y∣∣≤∣x−y∣\big||x| - |y|\big| \le |x - y|.
  • For r>0r > 0: ∣x∣<r  ⟺  −r<x<r|x| < r \iff -r < x < r; ∣x∣>r  ⟺  x<−r|x| > r \iff x < -r or x>rx > r; ∣x−a∣<r  ⟺  a−r<x<a+r|x - a| < r \iff a - r < x < a + r.
  • ∣f∣<g  ⟺  −g<f<g|f| < g \iff -g < f < g (system); ∣f∣>g  ⟺  f<−g∨f>g|f| > g \iff f < -g \vee f > g (union); ∣f∣≤∣g∣  ⟺  f2≤g2|f| \le |g| \iff f^2 \le g^2.
  • Example: ∣2x−1∣≥3  ⟺  x≤−1|2x - 1| \ge 3 \iff x \le -1 or x≥2x \ge 2; ∣x−1∣<∣x+2∣  ⟺  x>−12|x - 1| < |x + 2| \iff x > -\frac12.
  • Cauchy-Schwarz: (∑aibi)2≤(∑ai2)(∑bi2)(\sum a_ib_i)^2 \le (\sum a_i^2)(\sum b_i^2), proved from 0≤∑(ait+bi)20 \le \sum(a_it + b_i)^2 with t=−BAt = -\frac BA.

Mistakes: unknown-sign multiplication; x2=x\sqrt{x^2} = x; system vs union with moduli; squaring sides that may be negative.

Teoria collegata