Exercise 2.4

Let f : A B and g : B C.

(a)
If C0 C, show that (g f)1(C0) = f1(g1(C0)).
(b)
If f and g are injective, show that g f is injective.
(c)
If g f is injective, what can you say about the injectivity of f and g?
(d)
If f and g are surjective, show that g f is surjective.
(e)
If g f is surjective, what can you say about the surjectivity of f and g?
(f)
Summarize your answers to (b)-(e) in the form of a theorem.

Answers

(a)

Proof. Suppose that C0 C. We can show this with a string of biconditionals. For any x, we have

x (g f)1(C 0) (g f)(x) C0 g(f(x)) C0 f(x) g1(C 0) x f1(g1(C 0)),

which of course shows the desired result. □

(b)

Proof. Suppose that x,y A and xy. Then, since f is injective, it has to be that f(x)f(y) by the contrapositive of the definition of an injection. Then again (g f)(x) = g(f(x))g(f(y)) = (g f)(y) since f(x)f(y) and g is injective. This shows that g f is injective by the contrapositive of the definition. □

(c)
Here we claim that if g f is injective, then f must be injective but g may not be.

Proof. Suppose that g f is injective but that f is not. Then there are x,y A where xy but f(x) = f(y). Then we have

(g f)(x) = g(f(x)) = g(f(y)) = (g f)(y),

which contradicts the fact that g f is injective since xy. So it must be that f is injective.

To show that g need not be injective, consider the sets

A = {1,2} B = {1,2,3} C = {a,b}

and the function sets

f = {(1,1),(2,2)} g = {(1,a),(2,b),(3,b)}.

It is easy to see that f : A B is injective as is the composition g f = {(1,a),(2,b)}, but that g : B C is not since g(2) = b = g(3). □

(d)

Proof. Suppose that f and g are surjective and consider any z C. Then there is a y B where z = g(y) since g is surjective. Since f is also surjective, there is then an x A where y = f(x). Then we have

(g f)(x) = g(f(x)) = g(y) = z,

which shows that g f is surjective as desired since z was arbitrary. □

(e)
We claim that if g f is surjective, then g must be surjective, but f may not be.

Proof. Suppose that g f is surjective and consider any z C so that there is an x A where (g f)(x) = z. Then we have that g(f(x)) = z so that y = f(x) is an element of B where g(y) = z. This shows that g is surjective since z was arbitrary.

To show that f need not be surjective we can use the same example sets A,B,C and functions f,g used in part (c). It is easy to see there that g f and g are surjective but f is not since there is no element of A that maps to 3 B. □

(f)
We can summarize these facts in the following theorem, whose proof is of course found in the previous parts:

Theorem 1. Suppose that f : A B and g : B C. We assert the following:

  • If f and g are injective then g f is injective.
  • If g f is injective then f is also injective.
  • If f and g are surjective then g f is surjective.
  • If g f is surjective then g is also surjective.

User profile picture
2019-12-01 00:00
Comments