Naturals.N={0,1,2,3,…}, N∗=N∖{0}. In this course 0∈N. Every n has a successorn+1, every n≥1 has a predecessorn−1 (needed for induction).
Integers.Z={0,±1,±2,…}: negatives are added so that subtraction is always possible.
Rationals.Q={nm:m∈Z,n∈N∗}.
The denominator is positive (the sign goes in the numerator) and never zero. The fraction representing a number is not unique (43=86=129) but there is always a unique one in lowest terms, with m and n coprime. A rational has a decimal expansion that is either finite or periodic (41=0.25, 31=0.3, 71=0.142857): in the division m:n the remainders are among 0,…,n−1, so one repeats (or is 0) and the digits repeat from then on.
Reals (intuitive definition).R is the set of all decimal expansions r=m.d1d2d3…, including those that neither end nor become periodic, like 2=1.41421356… or π=3.14159265… Non-rational reals are irrational. Then
N⊊Z⊊Q⊊R,
with −1∈Z∖N, 21∈Q∖Z, 2∈R∖Q.
Geometric:Q is not in one-to-one correspondence with the points of a line: the diagonal c of the unit square satisfies c2=12+12=2 (Pythagoras), and marking it on the line from 0 gives a point with no rational coordinate. The rationals leave holes.
This motivates R: there x2=2 is solvable and the real line has no holes.
Intervals
For a<b:
Symbol
Set
Name
[a,b]
a≤x≤b
closed interval
[a,b)
a≤x<b
closed left, open right
(a,b]
a<x≤b
open left, closed right
(a,b)
a<x<b
open interval
[a,+∞), (a,+∞)
x≥a, x>a
closed / open half-line
(−∞,b], (−∞,b)
x≤b, x<b
closed / open half-line
Square bracket = endpoint included (full dot on the line), round = excluded (empty dot). At ±∞ the bracket is always round, because ±∞ are not real numbers. (Some books write [a,b[ for [a,b): same thing.)
Fields
Definition (field).X is a field if it has a sum and a product such that for all a,b,c∈X:
Sum: (1) a+b=b+a; (2) a+(b+c)=(a+b)+c; (3) there is a unique neutral element0 with a+0=a; (4) every a has a unique opposite−a with a+(−a)=0.
Product: (1) ab=ba; (2) a(bc)=(ab)c; (3) there is a unique neutral element 1 with 1⋅a=a; (4) every a=0 has a unique reciprocala−1 with aa−1=1.
Distributive law:a(b+c)=ab+ac.
Q is a field (32 has reciprocal 23). N is not (no opposites: −3∈/N); Z is not (no reciprocals: 21∈/Z). Zero has no reciprocal (anything times 0 is 0): this is why one cannot divide by zero. Difference and quotient are defined: a−b=a+(−b), ba=a⋅b−1 (b=0). From these few rules all the rules for equations follow, e.g. the zero-product law: ab=0⟺a=0 or b=0 (if a=0, multiplying ab=0 by a−1 gives b=0).
Ordered fields
X is ordered if there is a relation ≤ that is reflexive (a≤a), antisymmetric (a≤b and b≤a imply a=b) and transitive. It is totally ordered if any two elements are comparable (a≤b or b≤a). The power set P(X) with ⊆ is ordered but not totally: with X={1,2}, {1} and {2} cannot be compared. Then a<b means a≤b and a=b.
Definition (totally ordered field). A field, totally ordered, with compatible operations: a≤b⟺a+c≤b+c for all c; a≤b⟺ca≤cb for all c>0.
Q and R are totally ordered fields; N, Z are totally ordered sets but not fields. All the rules for inequalities follow:
Operation on both sides of a≤b
Result
add any c
a+c≤b+c
multiply by c>0
ca≤cb
multiply by c<0
ca≥cb (order reversed)
reciprocals, if 0<a≤b
a1≥b1
Why multiplying by c<0 reverses: −c>0, so a≤b⟺−ca≤−cb; adding ca+cb gives cb≤ca. (Example: 2<3 but −2>−3.) Never multiply an inequality by a quantity of unknown sign (e.g. by x): treat the cases separately.
Absolute value
Definition.∣x∣=x if x≥0, and ∣x∣=−x if x<0.
In the second case x is negative so −x is positive (∣−5∣=5): hence ∣x∣≥0. When there is an expression inside, first decide its sign: ∣3−7∣=∣−4∣=4, ∣π−4∣=4−π.
Geometric meaning.∣x∣ is the distance of x from 0; ∣a−b∣=∣b−a∣ is the distance between a and b; ∣x−2∣ is the distance of x from 2. The graph of ∣x∣ is a "V" with vertex at the origin; ∣x−2∣ has vertex at x=2.
Properties (for all x,y∈R):
∣x∣≥0, and ∣x∣=0⟺x=0;
∣−x∣=∣x∣;
∣xy∣=∣x∣∣y∣, and yx=∣y∣∣x∣ for y=0;
∣x∣2=x2, hence x2=∣x∣ (not x!): (−3)2=3;
−∣x∣≤x≤∣x∣;
triangle inequality:∣x+y∣≤∣x∣+∣y∣, and its corollary ∣x∣−∣y∣≤∣x−y∣;
∣xy∣≤2x2+y2.
Proofs. (3) by signs: if x,y≥0, ∣xy∣=xy=∣x∣∣y∣; if x,y<0, xy>0 and ∣x∣∣y∣=(−x)(−y)=xy; if x≥0>y, ∣xy∣=−xy=x(−y)=∣x∣∣y∣; the last case is analogous. (5) If x≥0, ∣x∣=x and −∣x∣≤0≤x; if x<0, x=−∣x∣<0≤∣x∣. (6) Add −∣x∣≤x≤∣x∣ and −∣y∣≤y≤∣y∣ to get −(∣x∣+∣y∣)≤x+y≤∣x∣+∣y∣, which means ∣x+y∣≤∣x∣+∣y∣. Equality holds when x,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∣+y2. ■
Equations and inequalities with ∣x∣ (r>0):
Condition
Equivalent to
∣x∣<r
−r<x<r
∣x∣≤r
−r≤x≤r
∣x∣>r
x<−r or x>r
∣x∣≥r
x≤−r or x≥r
∣x∣=r
x=±r
∣x−a∣<r
a−r<x<a+r (interval of centre a, radius r)
For r<0: ∣x∣=r and ∣x∣≤r have no solution, ∣x∣≥r holds for all x. For r=0: ∣x∣≤0 only at x=0. Proof of ∣x∣<r⟺−r<x<r: if x≥0 it reads 0≤x<r; if x<0 it reads −x<r, i.e. x>−r (multiplying by −1 reverses), so −r<x<0; join the two cases.
With expressions f,g: ∣f∣<g⟺−g<f<g (a system, intersection); ∣f∣>g⟺f<−gorf>g (union); ∣f∣=g⟺f=±g (with g≥0); ∣f∣≤∣g∣⟺f2≤g2 (squaring is legitimate because both sides are ≥0, for non-negative a,b we have a≤b⟺a2≤b2; without moduli it is not, −3<2 but 9>4).
Examples.∣2x−1∣≥3: 2x−1≤−3 or 2x−1≥3, i.e. x≤−1 or x≥2. ∣2x−1∣<5⟺−4<2x<6⟺−2<x<3. ∣x−2∣=3⟺x=5 or x=−1. ∣x−1∣<∣x+2∣: squaring, x2−2x+1<x2+4x+4, so x>−21 (geometrically: closer to 1 than to −2, the midpoint being −21).
Cauchy-Schwarz inequality (for lists). For reals a1,…,an, b1,…,bn:
i=1∑naibi≤∑ai2∑bi2,equivalently(∑aibi)2≤(∑ai2)(∑bi2).Proof. Put A=∑ai2, B=∑aibi, C=∑bi2. For every real t, 0≤∑(ait+bi)2=At2+2Bt+C. If A=0 all ai=0 so B=0 and the claim is 0≤0. If A>0 take t=−AB: 0≤AB2−A2B2+C=C−AB2, so B2≤AC. Taking square roots, ∣B∣≤AC. ■ Equality holds when the lists are proportional. Example: a=(1,2,3), b=(4,5,6): 322=1024≤14⋅77=1078. With bi=1: (∑ai)2≤n∑ai2.
Common mistakes
Multiplying an inequality by an expression of unknown sign without distinguishing cases.
Writing x2=x.
Solving ∣f∣<g as a union, or ∣f∣>g as a system.
Squaring both sides of an inequality whose sides can be negative.
Versione ripasso
Sets.N={0,1,2,…} (here 0∈N), Z, Q={nm:m∈Z,n∈N∗} (unique form in lowest terms; decimals finite or periodic), R = all decimal expansions. N⊊Z⊊Q⊊R.
Q is not enough:c2=2⇒c∈/Q (contradiction with nm in lowest terms). So x2=2 has no rational solution and Q leaves holes in the line.
Field: sum (commutative, associative, 0, opposite) and product (commutative, associative, 1, reciprocal for a=0) plus the distributive law. Q,R are fields; N (no opposite) and Z (no reciprocal) are not. a−b=a+(−b), ba=ab−1. Zero-product law: ab=0⟺a=0 or b=0.
Totally ordered field: order reflexive, antisymmetric, transitive, any two comparable; a≤b⟺a+c≤b+c; a≤b⟺ca≤cb for c>0. (P(X),⊆) is ordered but not totally.
Multiply by c<0: order reverses. Reciprocals of 0<a≤b: a1≥b1.
Absolute value:∣x∣=x for x≥0, −x for x<0; distance from 0; ∣a−b∣ distance between a and b.
∣x∣≥0; ∣xy∣=∣x∣∣y∣; ∣x∣2=x2, x2=∣x∣; −∣x∣≤x≤∣x∣.
Triangle inequality∣x+y∣≤∣x∣+∣y∣ (add −∣x∣≤x≤∣x∣ and the same for y); ∣x∣−∣y∣≤∣x−y∣.
For r>0: ∣x∣<r⟺−r<x<r; ∣x∣>r⟺x<−r or x>r; ∣x−a∣<r⟺a−r<x<a+r.