5.8 KiB
Maps
Definition
Definition: a relation
ffrom a setAto a setBis called a map or function fromAtoBif for eacha \in Athere is one and only oneb \in Bwithafb.
- To indicate that
fis a map fromAtoBwe may writef:A \to B.- If
a \in Aandb \in Bis the unique element withafbthen we may writeb=f(a).- The set of all maps from
AtoBis denoted byB^A.- A partial map
ffrom aAtoBwith the property that for eacha \in Athere is at most oneb \in Bwithafb.
For example, let f: \mathbb{R} \to \mathbb{R} with f(x) = \sqrt{x} for all x \in \mathbb{R} is a partial map, since not all of \mathbb{R} is mapped.
Proposition: let
f: A \to Bandg: B \to Cbe maps, then the compositiongafterf:g \circ f = f;gis a map fromAtoC.
??? note "Proof:"
Let $a \in A$ then $g(f(a))$ is an element in $C$ in relation $f;g$ with $a$. If $c \in C$ is an element in $C$ that is in relation $f;g$ with $a$, then there is a $b \in B$ with $afb$ and $bgc$. But then, as $f$ is a map, $b=f(a)$ and as $g$ is a map $c=g(b)$. Hence $c=g(b)=g(f(a))$ is the unique element in $C$ which is in relation $g \circ f$ with $a$.
Definition: Let
f: A \to Bbe a map.
- The set
Ais called the domain offand the setBthe codomain.- If
a \in Athen the elementb=f(a)is called the image ofaunderf.- The subset of
Bconsisting of the images of the elements ofAunderfis called the image or range offand is denoted by\text{Im}(f).- If
a \in Aamdb=f(a)then the elementais called a pre-image ofb. The set of all pre-images ofbis denoted byf^{-1}(b).
Notice that b can have more than one pre-image. Indeed if f: \mathbb{R} \to \mathbb{R} is given by f(x) = x^2 for all x \in \mathbb{R}, then both -2 and 2 are pre-images of 4.
If A' is a subset of A then the image of A' under f is the set f(A') = \{f(a) \;|\; a \in A'\}, so \text{Im}(f) = f(A).
If B' is a subet of B then the pre-image of B', denoted by f^{-1}(B') is the set of elements a from A that are mapped to an element b of B'.
Theorem: let
f: A \to Bbe a map.
- If
A' \subseteq A, thenf^{-1}(f(A')) \supseteq A'.- If
B' \subseteq B, thenf(f^{-1}(B')) \subseteq B'.
??? note "Proof:"
Let $a' \in A'$, then $f(a') \in f(A')$ and hence $a' \in f^{-1}(f(A'))$. Thus $A' \subseteq f^{-1}(f(A'))$.
Let $a \in f^{-1}(B')$, then $f(a) \in B'$. Thus $f(f^{-1}(B')) \subseteq B'$.
Special maps
Definition: let
f: A \to Bbe a map.
fis called surjective, if for eachb \in Bthere is at least onea \in Awithb = f(a). Thus\text{Im}(f) = B.fis called injective if for eachb \in B, there is at most oneawithf(a) = b.fis called bijective if it is both surjective and injective. So, if for eachb \in Bthere is a uniquea \in Awithf(a) = b.
For example the map \sin: \mathbb{R} \to \mathbb{R} is not surjective nor injective. The map \sin: [-\frac{\pi}{2},\frac{\pi}{2}] \to \mathbb{R} is injective but not surjective and the map \sin: \mathbb{R} \to [-1,1] is surjective but not injective. To conclude the map \sin: [-\frac{\pi}{2},\frac{\pi}{2}] \to [-1,1] is a bijective map.
Theorem: let
Abe a set of sizenandBa set of sizem. Letf: A \to Bbe a map between the setsAandB.
- If
n < mthenfcan not be surjective.- If
n > mthenfcan not be injective.- If
n = mthenfis injective if and only if it is surjective.
??? note "Proof:"
Think of pigeonholes. (Not really a proof).
Proposition: let
f: A \to Bbe a bijection. Then for alla \in Aandb \in Bwe havef^{-1}(f(a)) = aandf(f^{-1}(b)) = b. In particular,f^{-1}is the inverse off.
??? note "Proof:"
Let $a \in A$. Then $f^{-1}(f(a)) = a$ by definition of $f^{-1}$. If $b \in B$ then by surjectivity of $f$ there is an $a \in A$ with $b = f(a)$. So, by the above $f(f^{-1}(b)) = f(f^{-1}(f(a))) = f(a) = b$.
Theorem: let
f: A \to Bandg: B \to Cbe two maps.
- If
fandgare surjective then so isg \circ f.- If
fandgare injective then so isg \circ f.- If
fandgare bijective then so isg \circ f.
??? note "Proof:"
1. Suppose $f$ and $g$ are surjective, let $c \in C$. By surjectivity of $g$ there is a $b \in B$ with $g(b) = c$. Since $f$ is surjective there is also an $a \in A$ with $f(a) = b$. Therefore $g \circ f(a) = g(f(a)) = g(b) = c$.
2. Suppose $f$ and $g$ are injective, let $a,a' \in A$ with $g \circ f(a) = g \circ f(a')$. Then $g(f(a)) = g(f(a'))$ and by injectivity of $g$ we find $f(a) = f(a')$. Injectivity of $f$ implies $a = a'$.
3. Proofs 1. and 2. imply 3. by definition of bijectivity.
Proposition: if
f: A \to Bandg: B \to Aare maps withf \circ g = I_Bandg \circ f = I_A, whereI_AandI_Bdenote the identity maps onAandB, respectively. Thenfandgare bijections andf^{-1} = gandg^{-1} = f.
??? note "Proof:"
Suppose $f A \to B$ and $g: B \to A$ are maps with $f \circ g = I_B$ and $g \circ f = I_A$. Let $b \in B$ then $f(g(b)) = b$, thus $f$ is surjective. If $a,a' \in A4 with $f(a) = f(a')$, then $a = g(f(a)) = g(f(a')) = a' and hence $f$ is injective. Therefore $f$ is bijective and by symmetry $g$ is also bijective.
Proposition: suppose
f: A \to Bandg: B \to Care bijective maps. Then the inverse of the mapg \circ fequalsf^{-1} \circ g^{-1}.
??? note "Proof:"
Suppose $f: A \to B$ and $g: B \to C$ are bijective maps. Then for all $a \in A$ we have $(f^{-1} \circ g^{-1}) (g \circ f)(a) = f^{-1}(g^{-1}(g(f(a)))) = f^{-1}(f(a)) = a$.