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.
Definition 2.2 (Image, Preimage): Let f:A→B be a function. We define the following sets:
Image: The image of f under C⊂A is the set
f(C) = \qty{f(a) : a \in C}
.Preimage: The preimage of f under D is the set
f^{-1}(D) = \qty{a : f(a) \in 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) = \qty(f_1(a), \ldots, f_k(a))
for the value of f at a, where fi(a),i=1,…,k, 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.3 (Sum, product, quotient): Let f,g:A→R be two real-valued functions.
Sum:f+g is the function a↦(f+g)(a)=f(a)+g(a).Product:fg is the function a↦(fg)(a)=f(a)g(a).Quotient: If g(a)=0∀a∈A, then f/g is the function a↦(f/g)(a)=f(a)/g(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.4 (Infimum and supremum of image): Let f:A→R be a function and E⊂A. For the image f(E) we use the notation
Definition 2.5 (Surjective, injective, bijective): Let f:A→B be a function.
Surjective:f is called surjective, if f(A)=B.Injective:f is called injective, if a=a2⟹f(a1)=f(a2).Bijective: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.6 (Restriction): Let f:A→B be a function and E⊂A. The restriction of f to E is the function f∣E:E→B given by f∣E(a)=f(a) for any a∈E.
Example (Restriction): The function f:R→[0,∞),f(x)=x2 is not bijective. However, its restriction to [0,∞) is.
Definition 2.7 (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.8 (Inverse): Let f:A→B be a function. A function g:B→A is called an inverse of f if g(f(a))=a∀a∈A and f(g(b))=b∀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.9 (Invertible iff bijection): Let f:A→B be a function. Then f is bijective if and only if it is invertible.
Example (Exponential function): Let f(x)=ex,x∈R, i.e. f is the natural exponential function. One can show that f:R→(0,∞) is bijective where the inverse is given by the natural logarithm log(y):(0,∞)→R.
Example (Trigonometric functions): The trigonometric functions sin:R→R and cos:R→R 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 \to (0, \pi)
.
2.1.3 Set Operations for Image and Preimage
Proposition 2.10 (Set operations for image and preimage): Let f:A→B be a function. Let B∗⊂B. Then f−1(B∗c)=f−1(B∗)c.
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
. Define the function T(ρ,θ)=(ρcos(θ),ρsin(θ)),(ρ,θ)∈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.11 (Bijection of polar coordinates): The mapping T:U→V is bijective.
Notice that for any point s=(x,0),x≥0,s∈/T(U). In particular, T:U→R2 can not be bijective.
2.1.5 Monotonic Function
Definition 2.12 (Increasing, decreasing, monotonic): Let f:I→R,I⊂R be a function.
Increasing, decreasing:f is called increasing, resp. decreasing, if x1≤x2⟹f(x1)≤f(x2), resp. x1≤x2⟹f(x1)≥f(x2).Strictly increasing, decreasing:f is called strictly increasing, resp. strictly decreasing, if x1<x2⟹f(x1)<f(x2), resp. x1<x2⟹f(x1)>f(x2).Monotonic:f is called monotonic, resp. strictly monotonic, if it is either increasing or decreasing, resp. strictly increasing or decreasing.
Proposition 2.13 (Strict monotonicity and inverse): Let f:I→R,I⊂R be a strictly monotonic function. Then, f:I→f(I) is a bijection. Further, if f is strictly increasing, resp. strictly decreasing, on I, then an inverse of f is strictly increasing, resp. strictly decreasing, on f(I).
Example (Strict monotonicity and inverse): Let f:[0,∞)→[0,∞),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.14 (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 f′ of f exists on (a,b). Then:
f′(x)≥0∀x∈(a,b) implies f∣(a,b) is increasing
f′(x)>0∀x∈(a,b) implies f∣(a,b) is strictly increasing
f′(x)≤0∀x∈(a,b) implies f∣(a,b) is decreasing
f′(x)<0∀x∈(a,b) implies f∣(a,b) is strictly decreasing
2.2 Cardinality of Sets
2.2.1 Cardinality
Definition 2.15 (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.16 (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.17 (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.18 (Cardinality relations): We have that #N=#Z=#Q,#R>#N and that any interval I⊂R is s.t. #I>#N.
2.2.2 Countability
Definition 2.19 (Countable and uncountable sets): Let A be a set. If #A≤#N, then A is countable, otherwise it is uncountable.
Proposition 2.20 (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.21 (Union of countable sets): Let
\qty{A_i : i \in \N }
be a collection of sets s.t. for any i∈N,Ai is countable. Then the union ⋃i∈NAi is countable as well.
Proposition 2.22 (Cartesian product of countable sets): Let Ai,i=1,…,n, be countable sets. Then, their Cartesian product ⨂i=1nAi is countable.
2.2.4 Heine-Borel Theorem
Theorem 2.23 (Heine-Borel theorem for intervals): Let [a,b],a,b∈R,a<b, be any closed interval. Let I be some countable set and assume that there exists a family of open intervals (ai,bi),ai,bi∈R,i∈I, s.t. [a,b]⊂⋃i∈I(ai,bi). Then, there exists 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.24 (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.25 (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.26 (Open and closed balls): The open, resp. closed, ball of radius r>0 with center y∈Rk is
Definition 2.27 (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). Set
\epsilon = \min\qty{\epsilon_1, \epsilon_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
\epsilon < \min\qty{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 and 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.28 (Closed set): A set V⊂Rk is said to be closed if Vc is open.
Definition 2.29 (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.30 (Bounded function): Let f:A→R and E⊂A. THe function f is said to be bounded on E if thre exists a 0≤M<∞ s.t. ∣f(a)∣≤M for any a∈E.
2.3.3 Open Set Characterization of Continuity
Continuous functions on Euclidean spaces are characterized in terms of open sets.
Definition 2.31 (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.32 (Generalized notion of continuity): Let E⊂Rm,E=∅. A function f:E→Rk is continuous iff for any open set U⊂Rk we have
f^{-1}(U) \in \qty{G \cap E : G \text{ open in } \R^m}
.
Another characterization of continuity, known as the sequence criterion for continuous functions, will be introduced in the next chapter.