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 $f: R \rightarrow R$ be defined by $f(x)=3 x^2-5$ and $g: R \rightarrow R$ by $g(x)=\frac{x}{x^2+1}$,then $g \circ f$ is

If $f(x) = \frac{2x+3}{3x-2}$,$x \neq \frac{2}{3}$,then $(f \circ f)(x)$ is:

If $f: R \rightarrow R$ is defined by $f(x)=e^{x}$ and $g: R \rightarrow R$ is defined by $g(x)=x^{2}$, then the mapping $(g \circ f): R \rightarrow R$ is defined by $(g \circ f)(x) = g(f(x))$ for all $x \in R$. Which of the following is true?

Let $f(x) = 1 - x$, $g(x) = \frac{1}{1 - x}$, and $h(x) = \frac{1}{x}$ be three functions, for $x \neq 0, 1$. If a function $F(x)$ satisfies $f(F(h(x))) = g(x)$, then which of the following is true?

Let $f: R - \{-\frac{1}{2}\} \rightarrow R$ and $g: R - \{-\frac{5}{2}\} \rightarrow R$ be defined as $f(x) = \frac{2x+3}{2x+1}$ and $g(x) = \frac{|x|+1}{2x+5}$. Then the domain of the function $f \circ g$ 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