2.6 KiB
Maps
Definition
Definition: a relation
f
from a setA
to a setB
is called a map or function fromA
toB
if for eacha \in A
there is one and only oneb \in B
withafb
.
- To indicate that
f
is a map fromA
toB
we may writef:A \to B
.- If
a \in A
andb \in B
is the unique element withafb
then we may writeb=f(a)
.- The set of all maps from
A
toB
is denoted byB^A
.- A partial map
f
from aA
toB
with the property that for eacha \in A
there is at most oneb \in B
withafb
.
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 B
andg: B \to C
be maps, then the compositiong
afterf
:g \circ f = f;g
is a map fromA
toC
.??? note "Proof:"
Let
a \in A
theng(f(a))
is an element inC
in relationf;g
witha
. Ifc \in C
is an element inC
that is in relationf;g
witha
, then there is ab \in B
withafb
andbgc
. But then, asf
is a map,b=f(a)
and asg
is a mapc=g(b)
. Hencec=g(b)=g(f(a))
is the unique element inC
which is in relationg \circ f
witha
.
Definition: Let
f: A \to B
be a map.
- The set
A
is called the domain off
and the setB
the codomain.- If
a \in A
then the elementb=f(a)
is called the image ofa
underf
.- The subset of
B
consisting of the images of the elements ofA
underf
is called the image or range off
and is denoted by\text{Im}(f)
.- If
a \in A
amdb=f(a)
then the elementa
is called a pre-image ofb
. The set of all pre-images ofb
is 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 B
be 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'
, thenf(a') \in f(A')
and hencea' \in f^{-1}(f(A'))
. ThusA' \subseteq f^{-1}(f(A'))
.Let
a \in f^{-1}(B')
, thenf(a) \in B'
. Thusf(f^{-1}(B')) \subseteq B'
.