(i) What does it mean to say that a function f:X→Y is injective? What does it mean to say that f is surjective? Let g:Y→Z be a function. Show that if g∘f is injective, then so is f, and that if g∘f is surjective, then so is g.
(ii) Let X1,X2 be two sets. Their product X1×X2 is the set of ordered pairs (x1,x2) with xi∈Xi(i=1,2). Let pi (for i=1,2) be the function
pi:X1×X2→Xi,pi(x1,x2)=xi
When is pi surjective? When is pi injective?
(iii) Now let Y be any set, and let f1:Y→X1,f2:Y→X2 be functions. Show that there exists a unique g:Y→X1×X2 such that f1=p1∘g and f2=p2∘g.
Show that if f1 or f2 is injective, then g is injective. Is the converse true? Justify your answer.
Show that if g is surjective then both f1 and f2 are surjective. Is the converse true? Justify your answer.