Question
Let $\text{f : W}\rightarrow\text{W}$ be defined as
$\text{f(n)} = \begin{cases} \text{n -1}, & \text{if n is odd} \\ \text{n+1}, &\text{if n is even} \end{cases}$
Show that f is invertible and find the inverse of f. Here, W is the set of all whole numbers.

Answer

$\text{One - One : - Case I : when x and y are even}$
$\text{f(x) = f(y)}\Rightarrow \text{x + 1 = y + 1} \Rightarrow\text{x = y}$
$\text{Case II : when x and y are odd}$
$\text{f(x) = f(y)} \Rightarrow \text{x - 1 =y - 1} \Rightarrow \text{x = y}$
$\text{Case III : one of them is even and one of hem is odd}$
$\text{f(x)}\neq \text{f(y)} \Rightarrow \text{x + 1}\neq \text{y - 1} \Rightarrow \text{x}\neq\text{y}$
$\text{Onto : Let y}\in \text{W}$
$\text{f(y - 1) = y if y is odd}$
$\text{f(y + 1) = y if y is even}$
$\text{So}\forall \text{y} \in \text{W, there exist some element vin domain of f}$
$\Rightarrow \text{f is invertible}$
$\text{f}^{-1}{(\text{x})} = \begin{cases} \text{x -1}, & \text{x is odd} \\ \text{x+1}, &\text{x is even}\end{cases}$

Need a full question paper?

Generate a complete, print-ready paper with questions like this in minutes — across 16+ boards, with answer keys.

Start Generating Free

Similar questions

Solve the following equation for x:
$\tan^{-1}\Big(\frac{\text{x}-2}{\text{x}-1}\Big)+\tan^{-1}\Big(\frac{\text{x}+2}{\text{x}+1}\Big)=\frac{\pi}{4}$
To confirm that, Is every real number in $R$. $R =\{(a, b): a, b \in R$ and $a-b+\sqrt{3} \in S \}$ where $S$ is set of all irrational numbers, defined, $R$ is reflexive, symmetric and transitive.
Using mean value theorem, prove that there is a point on the curve $y = 2x^2 - 5x + 3$ between the points $A(1, 0)$ and $B(2, 1),$ where tangent is parallel to the chord $AB$. Also, find that point.
If $\text{A}=\begin{bmatrix}3 & -2 \\4 & -2 \end{bmatrix},$ find the value of $\lambda$ so that $\text{A}^2=\lambda\text{A}-2\text{I}.$ Hence, find $A^{-1}$.
A firm manufactures two products, each of which must be processed through two departments, 1 and 2. The hourly requirements per unit for each product in each department, the weekly capacities in each department, selling price per unit, labour cost per unit, and raw material cost per unit are summarized as follows:
 
 
Product A
Product B
Weekly capacity
Department 1
3
2
130
Department 2
4
6
260
Selling price per unit
Rs. 25
Rs. 30
 
Labour cost per unit
Rs. 16
Rs. 20
 
Raw material cost per unit
Rs. 4
Rs. 4
 
The problem is to determine the number of units to produce each product so as to maximize total contribution to profit. Formulate this as a LPP.
A coin is tossed three times. Let the events A, B and C be defined as follows:
A = first toss is head, B = second toss is head, and C = exactly two heads are tossed in a row. Check the independence of,
  1. A and B.
  2. B and C.
  3. C and A.
Three cards are cdrawn successively with replacement from a well shffled deck of 52 cards. A random variable X denotes the number of hearts in the three cards drawn. Determine the probability distribution of X.
Find the shortest distance between the following pairs of parallel lines whose equations are:$\vec{\text{r}}=\big(\hat{\text{i}}+2\hat{\text{j}}+3\hat{\text{k}}\big)+\lambda\big(\hat{\text{i}}-\hat{\text{j}}+\hat{\text{k}}\big)$ and $\vec{\text{r}}=\big(2\hat{\text{i}}-\hat{\text{j}}-\hat{\text{k}}\big)+\mu\big(-\hat{\text{i}}+\hat{\text{j}}-\hat{\text{k}}\big)$
Solve the following differential equations:
$\frac{\text{dy}}{\text{dx}}=1+\text{x}^2+\text{y}^2+\text{x}^2\text{y}^2,\text{y}(0)=1$
Find the vector equation of a line which is parallel to the vector $2\hat{\text{i}}-\hat{\text{j}}+3\hat{\text{k}}$ and which passes through the point (5, -2, 4). Also, reduce it to cartesian from.