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

$f(x) = \begin{cases} 3-x, & -1 \leqslant x < 0 \\ 1+\frac{5x}{3}, & -3 \leqslant x \leqslant 2 \end{cases}$ and $g(x) = \begin{cases} -x, & -2 \leqslant x \leqslant 3 \\ x, & 0 \leqslant x \leqslant 1 \end{cases}$. Find the range of $(f \circ g)(x)$.

Find $g \circ f$ and $f \circ g$,if $f(x) = 8x^3$ and $g(x) = x^{1/3}$.

For every real number $x \neq -1$, let $f(x) = \frac{x}{x+1}$. Define $f_1(x) = f(x)$ and for $n \geq 2$, $f_n(x) = f(f_{n-1}(x))$. Then the product $f_1(-2) \cdot f_2(-2) \cdot \ldots \cdot f_n(-2)$ is equal to:

Show that if $f: A \rightarrow B$ and $g: B \rightarrow C$ are one-one,then $g \circ f: A \rightarrow C$ is also one-one.

If $f$ is a function defined on $(0, 1)$ by $f(x) = \min \{x - [x], -x - [-x]\}$,then $(f \circ f \circ f \circ f)(x)$ is equal to ($[.]$ denotes the greatest integer function).

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