Give examples of two functions $f: N \rightarrow N$ and $g: N \rightarrow N$ such that $g \circ f$ is onto but $f$ is not onto.

Vedclass pdf generator app on play store
Vedclass iOS app on app store
(N/A) Define $f: N \rightarrow N$ by $f(x) = x + 1$.
Define $g: N \rightarrow N$ by $g(x) = \begin{cases} x - 1, & \text{if } x > 1 \\ 1, & \text{if } x = 1 \end{cases}$.
First,we show that $f$ is not onto. The range of $f$ is $\{2, 3, 4, \dots\}$,which is a proper subset of the codomain $N$. Specifically,the element $1 \in N$ has no preimage in the domain $N$ such that $f(x) = 1$. Thus,$f$ is not onto.
Now,consider the composition $g \circ f: N \rightarrow N$ defined by $(g \circ f)(x) = g(f(x))$.
Since $f(x) = x + 1$,we have $(g \circ f)(x) = g(x + 1)$.
Since $x \in N$,$x \geq 1$,so $x + 1 \geq 2$. Thus,$x + 1 > 1$.
Using the definition of $g$,we get $g(x + 1) = (x + 1) - 1 = x$.
Therefore,$(g \circ f)(x) = x$ for all $x \in N$.
Since for every $y \in N$,there exists $x = y \in N$ such that $(g \circ f)(x) = y$,the function $g \circ f$ is onto.

Explore More

Similar Questions

If $f$ and $g$ are increasing and decreasing functions respectively from $[0, \infty)$ to $[0, \infty)$,and $h(x) = f(g(x))$ with $h(0) = 0$,then $h(x) - h(1)$ is:

Difficult
View Solution

If $f(x) = 3x + 10$ and $g(x) = x^2 - 1$,then $(fog)^{-1}(x) = $

Let $f(x)=\sqrt{x^{2}-3x+2}$ and $g(x)=\sqrt{x}$ be two given functions. If $S$ is the domain of $f \circ g$ and $T$ is the domain of $g \circ f$,then:

Let $f(x) = \sin x$ and $g(x) = \cos x$. Which of the following statements is false?

Let $N$ be the set of natural numbers and two functions $f$ and $g$ be defined as $f, g : N \to N$ such that $f(n) = \begin{cases} \frac{n+1}{2} & \text{if } n \text{ is odd} \\ \frac{n}{2} & \text{if } n \text{ is even} \end{cases}$ and $g(n) = n - (-1)^n$. Then $fog$ is

Vedclass Products

For Students

Vedclass Test Series

Mock tests in real JEE/NEET style with performance analysis. 5-day free trial.

Start Free Trial
For Teachers

Exam Paper Generator

Generate Set A/B/C/D exam papers from 7.5L+ questions in 2 minutes. 3 chapters free.

Try Free
For Institutes

Online Exam Module

Live online exams with unlimited students, 360° analytics & white-label branding.

See Demo