Chapter 9 Sets, Inequalities and Functions
In the first semester we have been generating sequences of numbers, for instance, using the Newton-Raphson method for solving non-linear equations (Chapter 2) , or using the rectangle rule for integration (Chapter 3). In this section we will say what real numbers are as limits of these sequences, where we will need to formally define limit. Once we know what real numbers are we will discuss ordering of these numbers with <,>,=<,>,= and the arithmetic of inequalities. The notes here are based on the book An Introduction to Mathematical Analysi by my old lecturer at Manchester John Reade. This book can be found for free at http://www.mathstudio.co.uk/sequences.htm.
9.1 Sets
This section is a revision of set notation. Suppose SS is a set of objects (need not be numbers).
- Membership: We denote membership of the set ss is a member of SS, by s∈Ss∈S. If ss is not a member we write s∉Ss∉S. For example S={S={Toyota, Ford, Renault, Peugeot}} a set of brands of car. Then Ford ∈S∈S, but Mercedes ∉S∉S. For a numerical example, let S={x:0≤x≤1}S={x:0≤x≤1}. Then 0.5∈S0.5∈S, but 1.5∉S1.5∉S. We have introduced the notation S={s:P(s)S={s:P(s) is true}}.
-
Relations and operations: We have the following ways of operating with sets:
- Subset: If SS and TT are sets, S⊂TS⊂T (SS is a subset of TT) if s∈Ss∈S implies s∈Ts∈T. Another way of writing this is to use the universal quantifier ‘for all’. Using this we can write ∀x∈S,s∈T∀x∈S,s∈T;
- Union: If SS and TT are sets, S∪T={s:s∈Sors∈T}S∪T={s:s∈Sors∈T};
- Intersection: If SS and TT are sets, S∩T={s:s∈Sands∈T}S∩T={s:s∈Sands∈T};
- Set difference: If SS and TT are sets, S∖T={s∈S:s∉T}S∖T={s∈S:s∉T}.
- Cardinality or size: If a set is finite, then the number of elements in the set is called its cardinality or size. We denote the cardinality of a set AA using |A||A|. This idea can be expanded to sets such as ZZ or even RR, but this will not be covered in this module.
In addition to the universal quantifier we have the existential quantifier ∃∃. We use this to say that at least one element of a set exists which satisfies some property. For instance ∃s∈N∃s∈N such that s>0s>0.
This is a nice Youtube video which discusses elementary set thoery.
9.2 Ordered sets
The sets N,Z,Q,RN,Z,Q,R all satisfy the following ordering axioms. We use the sign << (less than) for the ordering. Let SS denote one of these sets.- Trichotomy (total order): If s,t∈S either s<t, t<s or s=t;
- Transitivity: If s,t,u∈S, s<t and t<u, then s<u;
-
Compatability: If s,t,u∈S and s<t then s+u<t+u;
- if 0<u then su<tu,
- and (ii) if u<0 then tu<su.
We use the sign > than for convenience: s<t means that t>s. We use the signs s≤t and s≥t to mean s is less than or equal to t and s is greater than or equal to t respectively.
We also have the following field axioms which you will immediately see are needed for us to do a lot of the arithmetic calculutions and algebra we have become accustomed to. Let us use the notation F to refer to any sets which satisfy these axioms.
- Additive identity: ∃0∈F such that 0+s=s+0=s∀s∈F;
- Additive inverse: ∀s∈F∃−s∈F such that s+(−s)=(−s)+s=0;
- Additive associativity: If s,t,u∈F the (s+t)+u=s+(t+u);
- Additive commutativity: If s,t∈F then s+t=t+s;
- Multiplicative identity: ∃1∈F such that 1⋅s=s⋅1=s∀s∈F;
- Multiplicative inverse: ∀s≠0∈F∃s−1∈F such that s−1⋅s=s⋅s−1=1;
- Multiplicative associativity: If s,t,u∈F then s⋅(t⋅u)=(s⋅t)⋅u;
- Multiplicative commutativity: If s,t∈F then s⋅t=t⋅s;
- Distributivity: If s,t,u∈F then s⋅(t+u)=s⋅t+s⋅u;
- 0≠1.
In this video Tom will explain about these rules, and use them to prove some other results.
Example 9.1 Solve the following inequality for x∈F: x+4<2x+6.
Solution: Adding -4 to both sides (compatibility) we have x<2x+2. Adding −2x to both sides (compatibility) then gives −x<2. Multiplying both sides by -1 ((ii) in multiplicative part of compatibility) gives x>−2. We can check this by trying e.g. x=−1 as this is part of our solution set. −1+4=3<4=2(−1)+6.Here is video on solving linear inequalities.
Proposition 9.1 Let x,a∈F with a>0. Then x2<a2 if and only if −a<x<a.
Proof: We will break the proof into a number of steps. First we will show that if −a<x<a then x2<a2. We will do this by splitting into three cases:- If x=0 then the proposition is trivial.
- If 0<x<a then by the compatability law (multiplying by a) 0<ax<a2, and (multiplying by x) 0<x2<ax. Hence 0<x2<ax<a2 and x2<a2 by the transitive law.
-
If −a<x<0 then by the compatability law (multiplying by −a) 0<−ax<a2 and (multiplying by x which we recall is negative) 0<x2<−ax. Hence 0<x2<−ax<a2 and x2<a2 by the transitive law.
Now we need to show that if x∉(−a,a) then x2≮a2. This will then show that if x2<a2 then −a<x<a. This style of proof is .
A very similar argument shows that if x>a then x2>a2, and if x<−a then x2>a2. This shows that if x∉(−a,a) then x2≮a2 by the trichotomy law.
Of course, the result is obvious from the picture above, but we need to learn how to justify the obvious rigorously from our axioms.
Example 9.2 Solve the equation x2−6x+5<0 for x∈F.
Solution: We will use a very useful technique called completing the square. We write x2−6x+5=x2−6x+9−4=(x−3)2−4. Hence (x−3)2−4<0, so that (x−3)2<4. Using Proposition 9.3 we see that −2<x−3<2 and adding 3 to both sides we get our final result 1<x<5. We check this by putting x=2 and seeing that 4−12+5<0. Alternatively, if we put x=6 we have 36−36+5>0 and if x=0, 0−0+5>0In this video they solve the quadrtic inequality by factorising the quadratic. This is a good idea if the quadratic factorises easily, otherwise the completing the square method might be better.
Example 9.3 Prove that for a,b∈F (a+b2)2≥ab. This equation is called the arithmetic -geometric mean inequality.
Solution: Since (a−b)2>0,
(a+b2)2≥(a+b2)2−(a−b2)2=(a24+b24+ab2)−(a24+b24−ab2)=ab.9.2.1 Test yourself
9.3 The Modulus Function and Triangle Inequalities
One of the most important functions in analysis is
Definition 9.2 (Modulus, Absolute Value or Distance Function) Here is a picture of it:
The modulus function is defined by |x|={x,x≥0,−x,x<0.
Here is a picture of it:
Theorem 9.1 (Triangle Inequality) For all x,y∈F |x+y|≤|x|+|y|.
Proof: Squaring the left hand side of the equation above
(|x+y|)2=(x+y)2=x2+y2+2xy≤|x|2+|y|2+2|x||y|=(|x|+|y|)2.
Using Proposition~9.1 we arrive at the desired result.Corollary 9.1 (Reverse Triangle Inequality) For all x,y∈F |x−y|≥||x|−|y||.
Proof: Since x=(x−y)+y we have, using the triangle inequality, |x|≤|x−y|+|y|, so that |x|−|y|≤|x−y|. On the other hand y=(y−x)+x, so again using the triangle inequality, we have |y|≤|y−x|+|x|=|x−y|+|x|, since |y−x|=|x−y|. Therefore |y|−|x|≤|x−y|. If |x|≥|y|, ||x|−|y||=|x|−|y| and if |y|≥|x|, ||x|−|y||=|y|−|x|. Thus ||x|−|y||≤|x−y|.Here is a video about the triangle inequality.
This second video talks about the inequality in two dimensions and gives the inequality its name. Enjoy the music.
9.3.1 Test yourself
9.4 Bounds on Sets of Numbers
In this section we talk about bounded sets. Not only is this useful in its own right, but it also gives us the machinery we need to use to define the real numbers.
Theorem 9.2 Every finite set in F has a maximum and a minimum.
Proof: We prove this by induction on the size of the set. So let us assume that all sets with n points have a maximum and a minimum, and let S={x1,x2,⋯,xn+1}. Let T={x1,x2,⋯,xn}. Then, using the inductive hypothesis, because T is finite and of size n, it has a maximum M=max(T) and a minimum m=min(T). Now, by the trichotomy axiom, either xn+1>M or xn+1≤M. In the former case max(S)=xn+1, and in the latter case max(S)=M. Hence S has a maximum. The argument for min(S) is similar. To begin the induction it is clear that if S={x1} has only one element then max(S)=min(S)=x1.Here is a video about bounds on sets.
9.4.1 Test yourself
9.5 The Uper Bound Axiom and Real Numbers
There are a number of ways one could introduce an axiom which would can specify the real numbers. We will add one more axiom to all of the field axioms we listed in Section~9.1
The Upper Bound Axiom: Every non-empty subset of R which is bounded above has a supremum in R.
Theorem 9.3 √2 is a real number.
Proof: In order to prove this we need to show that there is a number M such that M2=2 and M is the supremum of some set of real numbers.
Let S={x:x2<2}. Then S is bounded above and therefore has a supremum M. We will now show that M2=2. For suppose M2<2 and consider the number M+1n where n is a positive integer. Then
(M+1n)2=M2+2Mn+1n2≤M2+2Mn+1n=M2+2M+1n.
Since M2<2, if 2M+1n<2−M2, i.e. n>2M+12−M2, then (M+1n)2<2, which means that M+1n∈S and so M is not the supremum. This is a contradiction, so that M2≥2.
On the other hand, suppose M2>2. In the same spirit as above we now consider the number M−1n. Then
(M−1n)2=M2−2Mn+1n2≥M2−2Mn.
Since M2>2, if 2Mn<M2−2, i.e. n>2MM2−2, then (M−1n)2>2, which means that M−1n∉S and so M−1n is an upper bound, but it is less than M. This is a contradiction, so that M2≤2.
Hence M2=2.The following video talks about the completeness axiom, which we have called the upper bound axiom.
9.6 Functions
In this section we look at the definition of functions, their composition and the inverse of a function.
- The domain for f(x)=√x, dom(f)=[0,∞). Then ran(f)=[0,∞).
- If g(x)=x2, then dom(g)=R and ran(g)=[0,∞).
- If h(x)=1/|x|, then dom(h)=R/{0} and ran(h)=(0,∞)

In order to construct inverses of functions i.e. to come back from where we have gone, we need for the inverse function to know where to go back to, so one point in the range cannot come from two different points in the domain. This property of functions is defined below.

Example 9.9 The function f(x)=x3 is one to one, since x31=x32 implies x31−x32=(x1−x2)(x21+x1x2+x22)=0. Now, x21+x1x2+x22=(x1+x2/2)2+3x22/4>0. Hence xx−x2=0 which means x1=x2.
On the other hand f(x)=x2 is not one to one as (−1)2=12.Here is a nice video about one to one functions.
Example 9.10 Let f(x)=3x+2x−7. Find the inverse function of f.
Let y=f(x), i.e. y=3x+2x−7. Cross multpilying we have (x−7)y=3x+2. Getting the the x’s on one side we have x(y−3)=7y+2. Dividing gives x=7y+2y−3. The inverse function is g(y)=7y+2y−3.9.7 Challenge yourself
- Prove that |a+b+c|≤|a|+|b|+|c|.
- Can you use the upper bound axiom to prove that any set with a lower bound has an infimum (a greatest lower bound)?
- Show that max{|a|,|b|}≤(a2+b2)1/2≤|a|+|b|.
- Can you prove that 31/2 and 21/3 are real numbers?
- Prove the Inverse Function Theorem~9.4.