Let f : X → Y is a function such that there exists a function g : Y → X such that gof = Ix and fog =Iy then1f is one one but not onto2f is one one and onto3f is onto but not one one4None of theseAnswer & explanation+Correct answer: option 2Show that f is one one and onto using definitions.