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

Let $N$ denote the set of all natural numbers,and $Z$ denote the set of all integers. Consider the functions $f: N \rightarrow Z$ and $g: Z \rightarrow N$ defined by $f(n) = \begin{cases} (n+1)/2 & \text{if } n \text{ is odd} \\ (4-n)/2 & \text{if } n \text{ is even} \end{cases}$ and $g(n) = \begin{cases} 3+2n & \text{if } n \geq 0 \\ -2n & \text{if } n < 0 \end{cases}$. Define $(g \circ f)(n) = g(f(n))$ for all $n \in N$,and $(f \circ g)(n) = f(g(n))$ for all $n \in Z$. Then which of the following statements is (are) True?

If $f(x)=\frac{3x+4}{5x-7}$ and $g(x)=\frac{7x+4}{5x-3}$,then $f(g(x))=$

Let $f(x) = \frac{ax + b}{cx + d}$. Then,$f \circ f(x) = x$ provided that

Let $R$ be the set of real numbers and the mapping $f: R \rightarrow R$ and $g: R \rightarrow R$ be defined by $f(x) = 5 - x^2$ and $g(x) = 3x - 4$, then the value of $(f \circ g)(-1)$ is

If $g(x) = 1 - \sqrt{x}$ and $f(g(x)) = 5 + 4\sqrt{x} + x$, then the value of $f(6)$ 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