Give examples of two functions $f: N \rightarrow Z$ and $g: Z \rightarrow Z$ such that $g \circ f$ is injective but $g$ is not injective. (Hint: Consider $f(x) = x$ and $g(x) = |x|$)

Vedclass pdf generator app on play store
Vedclass iOS app on app store
(N/A) Define $f: N \rightarrow Z$ as $f(x) = x$ and $g: Z \rightarrow Z$ as $g(x) = |x|$.
First,we show that $g$ is not injective.
We observe that $g(-1) = |-1| = 1$ and $g(1) = |1| = 1$.
Since $g(-1) = g(1)$ but $-1 \neq 1$,$g$ is not injective.
Now,$g \circ f: N \rightarrow Z$ is defined as $(g \circ f)(x) = g(f(x)) = g(x) = |x|$.
Let $x, y \in N$ such that $(g \circ f)(x) = (g \circ f)(y)$.
This implies $|x| = |y|$.
Since $x, y \in N$,both $x$ and $y$ are positive.
Therefore,$|x| = |y| \Rightarrow x = y$.
Hence,$g \circ f$ is injective.

Explore More

Similar Questions

Two functions $f: R \rightarrow R, g: R \rightarrow R$ are defined as follows: $f(x) = \begin{cases} 0, & x \text{ is rational} \\ 1, & x \text{ is irrational} \end{cases}$ and $g(x) = \begin{cases} -1, & x \text{ is rational} \\ 0, & x \text{ is irrational} \end{cases}$. Then,$(f \circ g)(\pi) + (g \circ f)(e)$ is equal to:

If $R$ is a relation $  < $ from $A = \{1, 2, 3, 4\}$ to $B = \{1, 3, 5\}$ i.e.,$(a, b) \in R \iff a < b$,then $R \circ R^{-1}$ is

Let $f: R \rightarrow R$ be defined as $f(x) = 2x - 1$ and $g: R - \{1\} \rightarrow R$ be defined as $g(x) = \frac{x - 1/2}{x - 1}$. Then the composition function $f(g(x))$ is:

If $f(x) = x^2 + 1$,then $fof(x)$ is equal to

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