Skip to main content

Show that f : N → N, given by f(x)={ x+1, if x is odd, and x-1, if x is even} is both one-one and onto.

Class 12, NCERT Chapter 1,  Example12

Suppose f(x1 ) = f(x2 ).
Note that if x1 is odd and x2 is even, then we will have
x1 + 1 = x2 – 1, i.e., x2 – x1 = 2, which is impossible.
Similarly, the possibility of x1 being even and x2 being odd can also be ruled out, using a similar argument.
Therefore, both x1 and x2 must be either odd or even.
Suppose both x1 and x2 are odd.
Then f(x1 ) = f(x2 )
⇒ x1 + 1 = x2 + 1
⇒ x1 = x2
Similarly, if both x1 and x2 are even, then also
f(x1 ) = f(x2 )
⇒ x1 – 1 = x2 – 1
⇒ x1 = x2 .
Thus, f is one-one.
Also, any odd number 2r + 1 in the co-domain N is the image of 2r + 2 in the domain N and
any even number 2r in the co-domain
N is the image of 2r – 1 in the domain N. 

Thus, f is onto.

Comments

Popular posts from this blog

Let A = R – {3} and B = R – {1}. Consider the function f : A → B defined by f(x) = (x-2)/(x-3) Is f one-one and onto? Justify your answer.

Class 12, NCERT Chapter 1,  Exercise 1.2, Q10 A =  R  - {3}, B =  R  - {1} f : A → B is defined as Let x,y∈A such that f(x)=f(y). ⇒ (x-2)/(x-3)=(y-2)/(y-3) ⇒ (x-2)(y-3)=(y-2)(x-3) ⇒ xy-3x-2y+6=xy-3y-2x+6 ⇒ -3x-2y=-3y-2x ⇒ 3x-2x=3y-2y ⇒ x=y ∴  f  is one-one. Let  y  ∈B =  R  - {1}. Then,  y  ≠ 1. The function  f  is onto if there exists  x  ∈A such that  f ( x ) =  y. Now, f(x)=y ⇒(x-2)(x-3)=y ⇒x-2=xy-3y ⇒x(1-y)=-3y+2 ⇒ x=2-3y/1-y  ∈A   Thus, for any  y  ∈ B, there exists  x=2-3y/1-y  ∈A     such that Hence, function  f  is one-one and onto.

Let L be the set of all lines in a plane and R be the relation in L defined as R = {(L1 , L2 ) : L1 is perpendicular to L2 }. Show that R is symmetric but neither reflexive nor transitive.

RELATIONS AND FUNCTIONS Class 12, NCERT Chapter 1,  Example 3 Solution Figure R is not reflexive, as a line L1 can not be perpendicular to itself, i.e., (L1 , L1 ) ∉ R. R is symmetric as (L1 , L2 ) ∈ R ⇒ L1 is perpendicular to L2 ⇒ L2 is perpendicular to L1 ⇒ (L2 , L1 ) ∈ R. R is not transitive. Indeed, if L1 is perpendicular to L2 and L2 is perpendicular to L3 , then L1 can never be perpendicular to L3 . In fact, L1 is parallel to L3 , i.e., (L1 , L2 ) ∈ R, (L2 , L3 ) ∈ R but (L1 , L3 ) ∉ R. Example1       Example2 Example3 ←you are here

Prove that the function f : R → R, given by f(x) = 2x, is one-one and onto.

Class 12, NCERT Chapter 1,  Example10  f is one-one, as  f ( x 1 ) = f ( x 2 ) ⇒  2 x 1 = 2 x 2  ⇒ x 1 = x 2 Also, given any real number y in R,  there exists y/2 in R,  such that  f( y/2 ) = 2 . ( y/2 ) = y.  Hence, f is onto