Definition 2.1 (Function): Let A and B be two sets. A function f:A→B is a rule which assigns to each element a∈A exactly one element f(a)∈B.
Let f:A→B be a function. We define the following sets.
Definition 2.2 (Image): The image of a function f under C⊂A is the set
f(C)={f(a)∈B∣a∈C}
Definition 2.3 (Preimage): The preimage of a function f under D is the set
f−1(D)={a∈A∣f(a)∈D}
Example (Image): Let f:R→R,f(x)=x2. We have that f(R)=[0,∞). To see it, it is clear that f(R)⊂[0,∞). For the other inclusion, take any y∈[0,∞). If we set x=y, then x2=y. Thus, y∈f(R) and [0,∞)⊂f(R).
Example (Vector valued function): A function f:A→Rk assigns to each element a∈A a vector f(a)∈Rk. We use the notation f(a)=(f1(a),…,fk(a)) for the value of f at a, where fi(a) are referred to as the coordinate functions of f.
To indicate that an element a is assigned to an element f(a) we often use the notation a↦f(a) to define the assignment, i.e. the function. The following definition clarifies some notation for algebraic operations on functions.
Definition 2.4 (Sum, product, quotient): Let f,g:A→R be two real-valued functions.
f+g is the function a↦(f+g)(a)=f(a)+g(a).
f⋅g is the function a↦(f⋅g)(a)=f(a)g(a).
If ∀a∈A:g(a)=0, then gf is the function a↦gf(a)=g(a)f(a).
If a function takes values in the extended real numbers, we rely on the following definition regarding the infimum and supremum of the image.
Definition 2.5 (Infimum and supremum of image): Let f:A→R be a function and C⊂A. For the image f(C) we use the notation
inff(C)=inf{f(c)∣c∈C}=c∈Cinff(c)
and
supf(C)=sup{f(c)∣c∈C}=c∈Csupf(c)
2.1.2 Invertible Mappings
Definition 2.6 (Surjective, injective, bijective): Let f:A→B be a function.
f is called surjective, if f(A)=B.
f is called injective, if a=a2⟹f(a1)=f(a2).
f is called bijective if it is surjective and injective.
Example (Surjection): Let f:R→[0,∞),f(x)=x2. We already know that f is surjective. However, it is not injective, since for x1=−1 and x2=1,f(x1)=f(x2)=1. This shows that x↦x2 is not bijective.
Definition 2.7 (Restriction): Let f:A→B be a function and C⊂A. The restriction of f to C is the function f∣C:C→B given by f∣C(a)=f(a) for any a∈C.
Example (Restriction): The function f:R→[0,∞),f(x)=x2 is not bijective. However, its restriction to [0,∞) is.
Definition 2.8 (Composition): Let f:A→B and g:B→C be two functions. The composition g∘f or g(f) is defined pointwise, i.e. (g∘f)(a)=g(f)(a)=g(f(a)). Thus, g∘f:A→C.
Definition 2.9 (Inverse): Let f:A→B be a function. A function g:B→A is called an inverse of f if ∀a∈A:g(f(a))=a and ∀b∈B:f(g(b))=b. If f has an inverse it is called invertible.
A characterization of invertible functions is given by the notions of surjectivity and injectivity. This is summarized in the following result.
Proposition 2.10 (Invertible if and only if bijection): Let f:A→B be a function. Then f is bijective if and only if it is invertible.
Example (Exponential function): Let exp:R→(0,∞) be the natural exponential function. One can show that exp is bijective where the inverse is given by the natural logarithm log:(0,∞)→R.
Example (Trigonometric functions): The trigonometric functions sin:R→[−1,1] and cos:R→[−1,1] are clearly not bijective. However, sin∣[−π/2,π/2]:[−π/2,π/2]→[−1,1] and cos∣[0,π]:[0,π]→[−1,1] are bijective with inverse arcsin:[−1,1]→[−π/2,π/2] and arccos:[−1,1]→[0,π], respectively. As a further example, the cotangent cot:(0,π)→R,cot(θ)=sinθcosθ, is bijective with inverse arccot:R→(0,π).
2.1.3 Set Operations for Image and Preimage
Let f:A→B be a function.
Proposition 2.11 (Complement of preimage): Let D⊂B. Then f−1(Dc)=f−1(D)c.
Proposition 2.12 (Set operations for image and preimage): Let I and J be some sets and Ai⊂A,i∈I, and Bj⊂B,j∈J, be collections of sets from A and B respectively. Then
f(⋃i∈IAi)=⋃i∈If(Ai)
f−1(⋃j∈JBj)=⋃j∈Jf−1(Bj)
f−1(⋂j∈JBj)=⋂j∈Jf−1(Bj)
2.1.4 Polar Coordinate Representation
Introduce the set
U={(ρ,θ)∈R2ρ>0,0<θ<2π}=(0,∞)×(0,2π)
Define the function
t(ρ,θ)=(ρcos(θ),ρsin(θ))
for (ρ,θ)∈U. Clearly, t(U)⊂R2. The identification x=ρcos(θ) and y=ρsin(θ) is known as a polar coordinate representation of the point (x,y)∈R2. Define V=R2∖([0,∞)×0).
Proposition 2.13 (Bijection of polar coordinates): The mapping t:U→V is bijective.
Notice that for any point in s∈{(x,0)⊂R2x≥0} we have s∈/t(U). In particular, t:U→R2 can not be bijective.
2.1.5 Monotonic Function
Definition 2.14 (Increasing, decreasing, monotonic): Let A⊂R and f:A→R be a function.
f is called increasing if x1≤x2⟹f(x1)≤f(x2).
f is called decreasing if x1≤x2⟹f(x1)≥f(x2).
f is called strictly increasing if x1<x2⟹f(x1)<f(x2).
f is called strictly decreasing if x1<x2⟹f(x1)>f(x2).
Note:f is called monotonic if it is either increasing or decreasing and strictly monotonic if it is either strictly increasing or strictly decreasing.
Proposition 2.15 (Strict monotonicity and inverse): Let A⊂R and f:A→R be a strictly monotonic function. Then, f:A→f(A) is a bijection.
Note: Further, if f is strictly increasing, resp. strictly decreasing, on A, then an inverse of f is strictly increasing, resp. strictly decreasing, on f(A).
Example (Strict monotonicity and inverse): Let f:[0,∞)→[0,∞) with f(x)=x2. We know that f([0,∞))=[0,∞). Further, if x1<x2, then f(x1)<x12<x22=f(x2). Thus, f is strictly increasing and therefore we know that f has an inverse f−1:[0,∞)→[0,∞) which is also strictly increasing. In this case, we know that f−1(y)=y is the unique inverse of f, since y=x2 has only one non-negative solution.
Proposition 2.16 (Monotonicity and derivatives): Let a,b∈R and f:(a,b)→R be a function that is differentiable on (a,b). That is, the derivative dxdf of f exists on (a,b). Then:
∀x∈(a,b):dxdf(x)≥0 implies f∣(a,b) is increasing
∀x∈(a,b):dxdf(x)>0 implies f∣(a,b) is strictly increasing
∀x∈(a,b):dxdf(x)≤0 implies f∣(a,b) is decreasing
∀x∈(a,b):dxdf(x)<0 implies f∣(a,b) is strictly decreasing
2.2 Cardinality of Sets
2.2.1 Cardinality
Definition 2.17 (Finite and infinte sets): Let A be a set. A is said to be finite if it contains a finite number of elements. Otherwise, if the number of elements A is not finite, A is referred to as infinite.
Example (Infinite sets): The sets N,Z,Q,R and C are all infinite.
Definition 2.18 (Cardinality): Let A be a set. We call #A the cardinality of A.
Definition 2.19 (Cardinality equality): Let A and B be two arbitrary sets. A and B are said to have the same cardinality, #A=#B, if and only if there exists a bijection f:A→B.
Example (Cardinality of finite sets): If A and B are finite, then #A=#B precisely means that A and B have the same number of elements. In particular #∅=0.
Definition 2.20 (Cardinality order): Let A and B be two sets and C⊂B. If there exists a bijection g:A→C we write #A≤#B. If there exists a bijection g:A→C but no bijection f:A→B, we write #A<#B.
Example (Cardinality of subsets): Let A and B with A⊂B, then #A≤#B. This is because the identity map g:A→A,g(a)=a, is a bijection.
Proposition 2.21 (Cardinality relations): We have
#N=#Z=#Q
#R>#N
any interval A⊂R is such that #A>#N
2.2.2 Countability
Definition 2.22 (Countable and uncountable sets): Let A be a set. If #A≤#N, then A is countable, otherwise it is uncountable.
Proposition 2.23 (Countably infinite sets): Let A be a set. If A is countable but not finite, then #A=#N and A is said to be countably infinite.
2.2.3 Cardinality of Set Operations
Proposition 2.24 (Union of countable sets): Let {Ai∣i∈N} be a collection of sets such that for any i∈N,Ai is countable. Then the union ⋃i∈NAi is countable as well.
Proposition 2.25 (Cartesian product of countable sets): Let A1,…,An be countable sets. Then, their Cartesian product ⨂i=1nAi is countable.
2.2.4 Heine-Borel Theorem
Theorem 2.26 (Heine-Borel theorem for intervals): Let [a,b]⊂R be any closed non-empty interval. Let I be some countable set and assume that there exists a family of open intervals {(ai,bi)⊂R∣i∈I} s.t. [a,b]⊂⋃i∈I(ai,bi). Then, there exists an n∈N and i1,…,in∈I s.t. [a,b]⊂⋃j=1n(aij,bij).
The latter result shows that any closed interval on the real line which is covered by a countable collection of open intervals can be covered by a finite sub-collection.
2.3 Open and Closed Sets in Real Coordinate Spaces
2.3.1 Euclidean Norm
Definition 2.27 (Euclidean norm): Let x∈Rk,x=(x1,…,xk). The Euclidean norm of x is given by ∥x∥=x12+…+xk2.
∥x−y∥ gives the Euclidean distance between two points x,y∈Rk.
Example (Euclidean norm in one dimension): If k=1, then we write ∥x∥=∣x∣, where the function x↦∣x∣ maps x∈R to its absolute value x2=∣x∣∈[0,∞).
For the next proposition, we use the notation 0 for the vector in Rk,k∈N, with all of its coordinates equal to zero.
Proposition 2.28 (Properties of the Euclidean norm): For any x,y∈Rk, the Euclidean norm satisfies:
∥x∥≥0
∥x∥=0⟺x=0
∥λx∥=λ∥x∥ for any λ∈R
∥x−y∥=∥y−x∥
∥x+y∥≤∥x∥+∥y∥, the triangular inequality
∥x−y∥≥∣∥x∥−∥y∥∣, the reverse triangular inequality
2.3.2 Open and Closed Balls and Boundedness
Definition 2.29 (Open ball): The open ball of radius r>0 with center y∈Rk is
Br(y)={x∈Rk∥y−x∥<r}
Definition 2.30 (Closed ball): The closed ball of radius r>0 with center y∈Rk is
Br(y)={x∈Rk∥y−x∥≤r}
Definition 2.31 (Open set): A set U⊂Rk is called open if for any point x∈U there exists an ε>0 s.t. Bε(x)⊂U.
Example (Intersection of open sets is open): Let U1,U2 be two open subsets of Rk. By definition, for an arbitrary x∈U1∩U2 there exist Bε1(x) and Bε2(x) s.t. Bε1(x)⊂U1 and Bε2(x)⊂U2. Set ε=min{ε1,ε2} and we obtain Bε(x)⊂U1∩U2. Hence, U1∩U2 is open.
Example (Open interval is an open set): Let a,b∈R,a<b s.t. (a,b) is an open interval. Let x∈(a,b). Note that ∣x−a∣=x−a and ∣x−b∣=b−x. Let ε<min{x−a,b−x} and take any y∈(x−ε,x+ε)=Bε(x). We have ∣x−y∣<ε and thus x−y≤∣x−y∣<ε<x−a and y−x≤∣x−y∣<ε<b−x. Hence a<y<b,y∈(a,b) and Bε(x)⊂(a,b).
Example (Open ball is an open set): Let Br(y)⊂Rk and x∈Br(y) be an arbitrary point. Set δ=∥x−y∥. By definition of Br(y) we have δ<r. Let ε=r−δ. For any z∈Bε(x) we have by the triangle inequality ∥z−y∥≤∥z−x∥+∥x−y∥<ε+δ=r. Hence Bε(x)⊂Br(y).
Definition 2.32 (Closed set): A set V⊂Rk is said to be closed if Vc is open.
Definition 2.33 (Bounded set): A set A⊂Rk is said to be bounded if there exists an r>0 and y∈A s.t. A⊂Br(y).
Definition 2.34 (Bounded function): Let f:A→R and C⊂A. The function f is said to be bounded on C if thre exists a 0≤M<∞ s.t. ∣f(a)∣≤M for any a∈C.
2.3.3 Open Set Characterization of Continuity
Continuous functions on Euclidean spaces are characterized in terms of open sets.
Definition 2.35 (Continuous function on Euclidean spaces): A function f:Rm→Rk is continuous if for any open set U⊂Rk the preimage f−1(U) is open in Rm.
Example (Continuity of the identity function): Let f:R→R,f(x)=x. Take any open set U⊂R. Then f−1(U)=U. Hence, f−1(U) is an open subset of R and f is continuous.
In terms of functions defined on subsets of Euclidean spaces Rm, continuity is characterized as follows.
Proposition 2.36 (Generalized notion of continuity): Let C⊂Rm,C=∅. A function f:C→Rk is continuous if and only if for any open set U⊂Rk we have
f−1(U)∈{E∩C∣E open in Rm}
Another characterization of continuity, known as the sequence criterion for continuous functions, will be introduced in the next chapter.