Maths doubt, JEE

What are one-one and onto functions? How many of each are there?

Answer: A function is one-one (injective) if different inputs give different outputs, and onto (surjective) if every element of the codomain is an output. From a set of elements to a set of elements there are functions and, when , one-one functions.

By Sunil Kumar. Updated 26 November 2026.

Why

One-one test: must force ; or a horizontal line cuts the graph at most once; or is strictly increasing or strictly decreasing.

Onto test: the range must equal the codomain.

Number of onto functions from to elements (): . For it is .

A function that is both one-one and onto is a bijection; it exists only when , and there are of them. Only a bijection has an inverse.

Exam tip

from to is neither one-one nor onto, but from to it is both. Always read the domain and codomain given in the question.

Previous year questions on this

More maths doubts