Section 1.4: Composition of Functions

Site: Freebirds Moodle
Course: NCERT XIIth Mathematics
Book: Section 1.4: Composition of Functions
Printed by: Guest user
Date: Monday, 18 August 2025, 8:44 PM

Composition of Functions

Definition: Composition
Let \(f : A \rightarrow B\) and \(g : B \rightarrow C\) be two functions. Then the composition of \(f\) and \(g\), denoted by \(gof\), is defined as the function \(gof : A \rightarrow C\) given by
\[ gof(x) = g(f(x)), \quad \forall \, x \in A. \]


Example
Let \(f : \{2, 3, 4, 5\} \rightarrow \{3, 4, 5, 9\}\) and \(g : \{3, 4, 5, 9\} \rightarrow \{7, 11, 15\}\) be functions defined as \(f(2) = 3, f(3) = 4, f(4) = 5, f(5) = 5\) and \(g(3) = g(4) = 7, g(5) = g(9) = 11\). Find \(gof\).


Example
Find \(gof\) and \(fog\), if \(f : \mathbb{R} \rightarrow \mathbb{R}\) and \(g : \mathbb{R} \rightarrow \mathbb{R}\) are given by \(f(x) = \cos x\) and \(g(x) = 3x^2\). Show that \(gof \ne fog\).

Invertible Functions

Definition: Invertible Functions

A function \(f : X \rightarrow Y\) is defined to be invertible, if there exists a function \(g : Y \rightarrow X\) such that
\(gof = I_X\) and \(fog = I_Y\).
The function \(g\) is called the inverse of \(f\) and is denoted by \(f^{-1}\).

Thus, if \(f\) is invertible, then \(f\) must be one-one and onto and conversely, if \(f\) is one-one and onto, then \(f\) must be invertible.
This fact significantly helps for proving a function \(f\) to be invertible by showing that \(f\) is one-one and onto, especially when the actual inverse of \(f\) is not to be determined.


Example
Let \(f : \mathbb{N} \rightarrow Y\) be a function defined as \(f(x) = 4x + 3\), where
\(Y = \{ y \in \mathbb{N} : y = 4x + 3 \text{ for some } x \in \mathbb{N} \}\).
Show that \(f\) is invertible. Find the inverse.

Example

Example 18

If \(R_1\) and \(R_2\) are equivalence relations in a set \(A\), show that \(R_1 \cap R_2\) is also an equivalence relation.

Example

Example 19

Let \(R\) be a relation on the set \(A\) of ordered pairs of positive integers defined by \((x, y) R (u, v)\) if and only if \(xv = yu\). Show that \(R\) is an equivalence relation.

Example

Example 20

Let \(X = \{1, 2, 3, 4, 5, 6, 7, 8, 9\}\).
Let \(R_1\) be a relation in \(X\) given by \(R_1 = \{(x, y) : x - y\)</span> is divisible by <span class="math inline">\(3\}\) and \(R_2\) be another relation on \(X\) given by \(R_2 = \{(x, y) : \{x, y\} \subset \{1, 4, 7\}\) or \(\{x, y\} \subset \{2, 5, 8\}\) or \(\{x, y\} \subset \{3, 6, 9\}\}\).
Show that \(R_1 = R_2\).

Example

Example 21

Let \(f : X \rightarrow Y\) be a function. Define a relation \(R\) in \(X\) given by
\(R = \{(a, b) : f(a) = f(b)\}\). Examine whether \(R\) is an equivalence relation or not.

Example

Example 22

Find the number of all one-one functions from set \(A = \{1, 2, 3\}\) to itself.

Example

Example 23

Let \(A = \{1, 2, 3\}\). Then show that the number of relations containing \((1, 2)\) and \((2, 3)\) which are reflexive and transitive but not symmetric is three.

Example

Example 24

Show that the number of equivalence relations in the set \(\{1, 2, 3\}\) containing \((1, 2)\) and \((2, 1)\) is two.

Example

Example 25

Consider the identity function \(I_{\mathbb{N}} : \mathbb{N} \rightarrow \mathbb{N}\) defined as \(I_{\mathbb{N}}(x) = x\), \(\forall\, x \in \mathbb{N}\).
Show that although \(I_{\mathbb{N}}\) is onto but \(I_{\mathbb{N}} + I_{\mathbb{N}} : \mathbb{N} \rightarrow \mathbb{N}\) defined as \[ (I_{\mathbb{N}} + I_{\mathbb{N}})(x) = I_{\mathbb{N}}(x) + I_{\mathbb{N}}(x) = x + x = 2x \] is not onto.

Example

Example 26

Consider a function \(f : \left[0, \frac{\pi}{2}\right] \rightarrow \mathbb{R}\) given by \(f(x) = \sin x\)
and
\(g : \left[0, \frac{\pi}{2}\right] \rightarrow \mathbb{R}\) given by \(g(x) = \cos x\).
Show that \(f\) and \(g\) are one-one, but \(f + g\) is not one-one.