Maps and functions

 We often study the properties of a set by comparing it with another set. The "comparison"' is done by a map between the sets. Roughly speaking, a map (also called a function) is a rule to assign an element of a set to an element of another set



Let A and B be sets. Then we write f:AB to mean that f is a map from A to B. That is, for each aA, we assign an element f(a)B. We often use a "diagram" such as the following:



The mapping of each element xA to f(x)B is written as xf(x).

Example. Let us define a map f:ZN by

f(x)=1+x2,  (xZ).

Note that f(x)N for any xZ, indeed. □

Definition (domain, codomain)

Let A and B be sets, and f:AB be a map. Then, A and B are called the domain and codomain of f, respectively. We write domf=A and codf=B.

Definition (identity map)

For any set A, the map IdA:AA defined by

IdA(x)=x

is called the identity map of A.

Example. IdN(1)=1,IdN(2)=2,IdN(3)=3,. □

We can also define a function with cases.

Example. We can define f:R{0,1} by

f(x)={1 if xQ ,0 otherwise

Example. The absolute value (modulus) |x| of a real number x is a function, ||:RR, defined as

|x|={x if x0,xif x<0.

For example, |3|=3,|3|=(3)=3, etc. □

Definition (image)

Let f:AB be a map. The image of f, denoted imf, is the set defined by imf={f(a)|aA}. That is, the set of all possible values of f(a). Clearly, imfcodf.

Remark. The image of a map f with the domain A is also denoted as f(A). □

Example. Let's define f:NR by f(x)=x. Then, imf=N.

Example. Let f:RR be the function f(x)=x2. Then imf={x2|xR}={x|x0}, namely, the set of all non-negative real numbers. □

Definition (onto, surjective)

A map f:AB is said to be onto or surjective if imf=codf, that is, 

bB aA (b=f(a)).

(Informal translation: every bB comes from aA through f.)

Roughly speaking, the image of a surjective map "covers" the entire codomain.

Example. f:ZN defined by f(x)=1+|x| is surjective. However, g:ZZ defined by g(x)=1+|x| is not surjective. Note that f and g apparently have the same definition, the only difference is their codomains.

Definition (one-to-one, injective)

A map f:AB is said to be one-to-one or injective if, for all a,aA, aa implies f(a)f(a). In a logical form,

a,aA (aaf(a)f(a)).

Remark. aaf(a)f(a) is equivalent to f(a)=f(a)a=a (contrapositive). We can use the latter in the definition above.

Roughly speaking, an injective map maps different elements in A to different elements in B. If a map is not injective, then different elements in A can be mapped to the same point in B. That is, there are some different elements aa such that f(a)=f(a).

Example (1). f:RR defined by f(x)=2x3+1 is injective. To see this, suppose we have f(x)=f(y) for some x,yR. Then, 2x3+1=2y3+1 x3=y3 x=y. □

Example. f:RR defined by f(x)=x2 is not injective (why?). However, g:R+R defined by g(x)=x2, where R+={xR|x0}, is injective. □

Definition (bijective)

A map that is both injective and surjective is said to be bijective.

Example. The function in the above Example (1) is bijective. □

We also use nouns such as injection, surjection, and bijection to mean injective, surjective, and bijective maps, respectively.

Definition (Graph (1))

Let f:AB be a map. The graph of f is the subset of A×B defined by
graph(f)={(a,b)aA,b=f(a)}(A×B).

This may appear rather abstract. Let's see a concrete example. Let's take f(x)=x21:RR. We can draw the graph of y=f(x) on the x-y plane.  Now, the plane is actually the set R×R. The graph y=f(x) is a curve in this plane, and hence it is a subset of the plane. The above definition is a generalization of this picture. 

Note the following properties of graph(f):
  1. For any aA, there exists some bB such that (a,b)graph(f).
  2. If (a,b),(a,b)graph(f), then b=b.
In short, for any aA, there is some bB such that (a,b)graph(f) (part 1) and that b is unique (part 2).

We can reverse the argument and use these two properties to define the graph.

Definition (Graph (2))

Let A and B be sets. Let S be a subset of A×B. S is said to be a graph if it satisfies the following properties:
  1. For any aA, there exists some bB such that (a,b)S.
  2. If (a,b),(a,b)S, then b=b.
Note that this definition of the graph does not require the notion of a map. In fact, we can use the notion of the graph to define the map.

Definition (Map)

Let A and B be sets, and S be a graph in the sense of (Graph (2)) above. Then, for any aA, there exists a unique bB such that (a,b)S. We denote this unique b by fS(a). That is, fS(a)=b. This rule of making correspondence between each aA to fS(a)B is called a map (induced by S), denoted 
fS:AB.

Comments

Popular posts from this blog

Birth process

Branching processes: Mean and variance

Informal introduction to formal logic