Map composition

We can define a new map by composing two or more maps. Map composition can be regarded as an operation between maps. As such, we can make an algebra of maps.



Definition (map composition)

Let f:AB and g:BC be maps. In particular, note that codf=domg. Then, we define a new map, denoted gf:AC, by

(gf)(x)=g(f(x))

for each xA. This new map gf is called the composition of f with g. It is convenient to read gf as "g after f."

The composition can be graphically represented as in the following commutative diagram:


Remark. As noted in the definition, we can compose gf if and only if codf=domg.
Remark. Some authors (e.g., in computer science) prefer to write f;g ("f, then g") rather than gf.
Example. Suppose that
f:ZZ;f(x)=x1,
and
g:ZN0;g(x)=x2.
Then, gf:ZN0;(gf)(x)=x22x+1.
(Recall that N0=N{0}.)

Theorem

Let f:AB and g:BC be maps. 
  1. If f and g are injective, then gf is injective.
  2. If f and g are surjective, then gf is surjective.
Proof.
  1. We assume that f and g are injective. Suppose a,aA and aa. Since f is injective, we have f(a)f(a). Since g is injective, g(f(a))g(f(a)). That is, (gf)(a)(gf)(a). Thus, gf is injective.
  2. We assume that f and g are surjective. Since g is surjective, for any cC, there exists some bB such that c=g(b). For this b, since f is surjective, there exists some aA such that b=f(a). In summary, for any cC, there exists some aA such that c=g(f(a)), that is, (gf)(a)=c. Hence, gf is surjective.

Corollary

The composition of two bijections is a bijection.

Theorem

Let f:AB, g:BC, and h:CD be maps. Then, we have
(hg)f=h(gf).
In other words, map composition is associative. This can be graphically represented in the following diagram:
Proof. For any xA, we have
((hg)f)(x)=(hg)(f(x))=h(g(f(x))=h((gf)(x))=(h(gf))(x). 
Because of this associativity, we can denote both (hg)f and h(gf) as hgh without parentheses.

Theorem

Let α:XY be a map. The following are equivalent
  1. The map α is a bijection.
  2. There exists a map β:YX such that βα=IdX and αβ=IdY.
Proof. (12) Suppose α is a bijection. This means that for each yY, there exists a unique xX such that y=α(x). Using this unique x, let us define β(y)=x. Thus, for each yY, β(y)X is uniquely determined, and hence β:YX is a well-defined map. By this definition, for each xX, we have β(α(x))=x. Thus, βα=IdX. Similarly, for each yY, we have α(β(y))=y, and hence αβ=IdY.

(21) Suppose that such β as given above exists. Then, for each yY, (αβ)(y)=α(β(y))=IdY(y)=y so that yimα. This means that Yimα. imαY is trivial. Hence, Y=imα, and α is surjective. Next, suppose that x,xX and α(x)=α(x). Apply β on both sides, and we have β(α(x))=β(α(x)). But, βα=IdX so we have IdX(x)=IdX(x), and hence x=x. Thus, α is injective. In summary, α is both surjective and injective, so it is bijective.
Remark. The map β in the above theorem is called the inverse map of α and is denoted as α1. It should be obvious that the inverse map of β=α1 is α. □



Comments

Popular posts from this blog

Birth process

Branching processes: Mean and variance

Informal introduction to formal logic