Skip to content

Mathematics · Ch 1 — Relations and Functions

Types of Functions

1.3

Types of Functions

1.3 Types of Functions

Building on Class XI Foundations

In Class XI you studied the identity, constant, polynomial, rational, modulus, and signum functions, and how to add, subtract, multiply, and divide functions. Now we go deeper — not into new functions, but into the kinds of behaviour a function can exhibit: how it pairs elements of its domain with those of its codomain.

Consider four functions f1,f2,f3,f4f_1, f_2, f_3, f_4 shown in Fig 1.2 of the textbook. In f1f_1, distinct inputs always give distinct outputs. In f2f_2, two inputs (1 and 2) share the output bb. In f3f_3, every codomain element is hit by some input. In f4f_4, both properties hold at once. These lead to three definitions.


One-One (Injective) Functions

A function f:X→Yf : X \rightarrow Y is called one-one (or injective) if the images of distinct elements of XX under ff are distinct. Equivalently, for every x1,x2∈Xx_1, x_2 \in X,

f(x1)=f(x2)  ⟹  x1=x2.f(x_1) = f(x_2) \implies x_1 = x_2.

If a function is not one-one, it is called many-one.

To prove a function is one-one, assume f(x1)=f(x2)f(x_1) = f(x_2) and deduce x1=x2x_1 = x_2. To prove it is not one-one, exhibit a single counterexample — distinct x1≠x2x_1 \neq x_2 with f(x1)=f(x2)f(x_1) = f(x_2).

In Fig 1.2, f1f_1 and f4f_4 are one-one; f2f_2 and f3f_3 are many-one.


Onto (Surjective) Functions

A function f:X→Yf : X \rightarrow Y is called onto (or surjective) if every element of YY is the image of some element of XX: for every y∈Yy \in Y there exists x∈Xx \in X such that f(x)=yf(x) = y.

Important

f:X→Yf : X \rightarrow Y is onto if and only if the range of ff equals the codomain YY.

In Fig 1.2, f3f_3 and f4f_4 are onto; f1f_1 is not onto because ee and ff in X2X_2 are never reached.


Bijective Functions

A function f:X→Yf : X \rightarrow Y is called one-one and onto (or bijective) if it is both injective and surjective.

The function f4f_4 in Fig 1.2(iv) is bijective.


Properties of Functions on Finite Sets …

Definition 5One-one (injective) function

One-one (injective) function

A function f:X→Yf : X \to Y is one-one (or injective) if distinct inputs always have distinct images. Precisely, for every x1,x2∈Xx_1, x_2 \in X,

f(x1)=f(x2)  ⟹  x1=x2.f(x_1) = f(x_2) \implies x_1 = x_2.

Equivalently, x1≠x2  ⟹  f(x1)≠f(x2)x_1 \neq x_2 \implies f(x_1) \neq f(x_2): no two different elements of XX can share the same image. A function that is not one-one is called many-one. …

Definition 6Onto (surjective) function

Onto (surjective) function

A function f:X→Yf : X \to Y is onto (or surjective) if every element of the codomain is hit: for every y∈Yy \in Y there exists at least one x∈Xx \in X such that f(x)=yf(x) = y.

Equivalently, the range of ff equals the whole set YY — no element of YY is left without a pre-image. …

Definition 7Bijective function (one-one and onto)

Definition 7: Bijective Function (One‑One and Onto)

A function f:X→Yf : X \to Y is said to be one‑one and onto (or bijective) if it satisfies both conditions:

  1. One‑one (injective): For every x1,x2∈Xx_1, x_2 \in X,

    f(x1)=f(x2)  ⟹  x1=x2f(x_1) = f(x_2) \implies x_1 = x_2.

    (Different inputs map to different outputs.)

  2. Onto (surjective): For every y∈Yy \in Y, there exists some x∈Xx \in X such that f(x)=yf(x) = y.

    (Every element of YY is the image of at least one element of XX.)

In short:

ff is bijective   ⟺  \iff ff is both injective and surjective.


Intuition

Think of a bijection as a perfect pairing between the sets XX and YY:

  • No two different xx's share the same yy (one‑one).
  • Every yy gets matched to some xx (onto).

So a bijection is like a one‑to‑one correspondence — each element of XX is paired with exactly one element of YY, and vice versa.


Tiny Concrete Example

Let X={1,2,3}X = \{1, 2, 3\} and Y={a,b,c}Y = \{a, b, c\}. …

Figure 1.2Fig 1.2 (i) to (iv) — one-one, many-one, onto and bijective mappings
Fig. 1.2 — Fig 1.2 (i) to (iv) — one-one, many-one, onto and bijective mappings

Drawn by us to help you understand the concept clearly, and verified to make sure it's accurate. For exams, practice from your textbook's own diagram.

Fig 1.2 is a set of four mapping diagrams that visually define the core types of functions: one-one (injective), many-one, onto (surjective), and bijective. Each diagram shows a left oval labelled X1={1,2,3,4}X_1 = \{1,2,3,4\} (the domain) and a right oval (the codomain), with indigo arrows connecting elements.

In diagram (i), the function f1f_1 sends 1→a1 \to a, 2→b2 \to b, 3→d3 \to d, 4→c4 \to c into X2={a,b,c,d,e,f}X_2 = \{a,b,c,d,e,f\}. Every element of X1X_1 gets a distinct image — no two arrows land on the same element in X2X_2. This is a one-one (injective) map. Notice that ee and ff in the codomain have no incoming arrows; they are not the image of any element of X1X_1. So f1f_1 is not onto.

Diagram (ii) shows f2f_2: both 11 and 22 map to bb, while 3→d3 \to d and 4→f4 \to f. Because two different domain elements share the same image, this is a many-one function. It is also not onto, since aa, cc, and ee are unused.

In diagram (iii), f3f_3 maps into X3={a,b,c}X_3 = \{a,b,c\}. Here 11 and 22 both go to aa, 3→b3 \to b, 4→c4 \to c. Every element of X3X_3 receives at least one arrow — the function is onto (surjective). But because 11 and 22 share the same image, it is many-one, not one-one.

Diagram (iv) shows f4f_4 into X4={a,b,c,d}X_4 = \{a,b,c,d\} with crossing arrows: 1→b1 \to b, 2→a2 \to a, 3→d3 \to d, 4→c4 \to c. Every domain element has a distinct image (one-one), and every codomain element is hit (onto). This is a bijection — both one-one and onto.

Note

The key insight from these diagrams is that one-one and onto are independent properties. A function can be one-one without being onto (diagram i), onto without being one-one (diagram iii), both (diagram iv), or neither (diagram ii).

The textbook uses these visual examples to introduce three formal definitions. A function f:X→Yf: X \to Y is:

  • One-one (injective) if f(x1)=f(x2)f(x_1) = f(x_2) implies x1=x2x_1 = x_2 for all x1,x2∈Xx_1, x_2 \in X. Equivalently, distinct elements of XX map to distinct elements of YY.
  • Onto (surjective) if for every y∈Yy \in Y, there exists some x∈Xx \in X such that f(x)=yf(x) = y. This means the range of ff equals the entire codomain YY.
  • Bijective if it is both one-one and onto.

f is one-one   ⟺  (f(x1)=f(x2)  ⟹  x1=x2)f \text{ is one-one } \iff \bigl( f(x_1) = f(x_2) \implies x_1 = x_2 \bigr)

f is onto   ⟺  Range(f)=Yf \text{ is onto } \iff \text{Range}(f) = Y …