Onto Function

Rarely Tested

Onto Function

## Definition / Concept

A function is onto or surjective if every element of the codomain is the image of at least one element of the domain.

## Formula

$$\forall y\in B,\ \exists x\in A\text{ such that }f(x)=y$$

Equivalently:

$$\text{Range}(f)=\text{Codomain}(f)$$

## Conditions / Special Cases

For finite sets:

$$n(A)<n(B)\Rightarrow f:A\to B\text{ cannot be onto}$$

If:

$$n(A)=n(B)$$

then:

$$f\text{ is one-one}\Leftrightarrow f\text{ is onto}$$

## Usage

- Used to test whether the entire codomain is covered.

- Important when determining whether an inverse function exists.

Question 1

Let $$A=\{1,2,3,4,5,6\} and B = \{9,10,11,12\}$$ The number of ONTO function from A to B is:

Question 2

Assertion (A)  :If f : [0, ∞) → [0, ∞) is a monotonic bijection, then f(0) = 0.

Reason (R)  : A monotone increasing bijection from [0, ∞) onto [0, ∞) must map the least value of the domain to the least value of the codomain, and no monotone decreasing bijection from [0, ∞) onto [0, ∞) can exist.

Question 3

Find the total number of surjective (onto) functions $$f: A \to B$$ where the domain is given by the set $$A = \{1, 2, 3, 4, 5, 6\}$$ and the codomain is given by the set $$B = \{1, 2, 3, 4\}$$, subject to the additional constraint that the function value satisfies $$f(1) \neq f(2)$$.

Go back to topics

Join CAT 2026 course by 5-Time CAT 100%iler

Start your IIM journey with the right preparation and crack CAT 2026.