GATE / CS ARCHIVE

SIMILAR QUESTIONS / DISCRETE MATHEMATICS

Reason about surjectivity of composition using images and counterexamples

2 questions solved the same way, newest first. Back to Discrete Mathematics

1 mark · MCQ
Report issue

Testing what surjective composition implies

Sets, Relations & Functions

Question 17, GATE 2025: Let g:A→B and f:B→C. Both f and f∘g are surjective. Which property must g have? A surjective; B injective; C bijective; D neither injectivity nor surjectivity is required.
Tap to enlarge
Your answer
Answer & solution

Official answer: D

Approach: Determine whether hitting every point of C requires hitting every point of B. Different points of B can share the same image under f, so it need not.
Construct a counterexample: A={1,2}, B={u,v}, C={w}. Define g(1)=g(2)=u and f(u)=f(v)=w. The function f is onto C because w has a preimage. The composition sends both elements of A to w, so it is also onto C.
However g is not injective, because its two inputs share the output u, and is not onto B, because v is missed. This single example refutes the necessary-property claims in A, B and C and establishes D.
Conceptually, g only needs to hit enough points of B to cover all f-fibres over C. The conclusion would differ if extra assumptions, such as injectivity of f, were supplied; none is supplied here.

Original paper, page 17 · Answer key

2 marks · MCQ
Report issue

Surjectivity of a composition

Sets, Relations & Functions

Question 43, GATE 2005: Functions f:B→C, g:A→B have onto composite f∘g. Choose A both must be onto; B f must but g need not; C g must but f need not; D neither must.
Tap to enlarge
Your answer
Answer & solution

Answer: B (no official key was published)

Since f(g(A))=C and g(A)⊆B, f(B)=C, so f is onto. But g need not cover all of B: take A={a}, B={b1, b2}, C={c}, g(a)=b1 and f(b1)=f(b2)=c. Hence B.

For every c in C, surjectivity of the composite provides an a with f(g(a))=c. Since g(a) is some element of B, this proves f is onto C. It does not require reaching all elements of B; unused B-elements may map to already-covered outputs. The one-element A and two-element B counterexample above proves g need not be onto, selecting B.

Original paper, page 5