1
You visited us
1
times! Enjoying our articles?
Unlock Full Access!
Byju's Answer
Standard XII
Mathematics
Definition of Function
If a function...
Question
If a function
f
is defined as
f
:
Z
→
Z
,
f
(
n
)
=
{
n
2
:
n
is even
−
n
+
1
2
:
n
is odd
then prove that
f
is onto but not one-one.
Open in App
Solution
f
:
z
→
z
;
f
(
n
)
=
⎧
⎪ ⎪
⎨
⎪ ⎪
⎩
n
2
:
n
i
s
e
v
e
n
−
n
+
1
2
:
n
i
s
o
d
d
checking one-one
f
(
2
)
=
2
2
=
1
(Since 1 is even)
f
(
−
1
)
=
−
(
−
1
)
+
1
2
=
2
2
=
1
(Since
−
1
is odd)
Since,
f
(
2
)
=
f
(
−
1
)
but
2
≠
−
1
Both
f
(
2
)
and
f
(
−
1
)
have same image i.e
1
∴
f
is not one-one
Checking onto
Let
f
(
x
)
=
y
, such that
y
∈
z
When
n
is odd
−
n
+
1
2
=
y
⇒
−
n
+
1
=
2
y
⇒
n
=
1
−
2
y
Hence for
y
is an integer
n
=
1
−
2
y
is also an integer i.e.
n
∈
z
When
n
is even
n
2
=
y
⇒
n
=
2
y
Hence for
y
is an integer,
n
=
2
y
is also an integer i.e.,
n
∈
z
Thus,
f
is onto but not one-one.
Suggest Corrections
0
Similar questions
Q.
Prove that the function f : N → N, defined by f(x) = x
2
+ x + 1, is one-one but not onto.
Q.
Let
N
be the set of natural numbers and two functions
f
and
g
be defined as
f
,
g
:
N
→
N
such that
f
(
n
)
=
⎧
⎪ ⎪
⎨
⎪ ⎪
⎩
n
+
1
2
if
n
is odd
n
2
if
n
is even
and
g
(
n
)
=
n
−
(
−
1
)
n
. Then
f
∘
g
is :
Q.
If
N
→
N
is defined by
f
(
n
)
=
n
−
(
−
1
)
n
, then
Q.
Prove that the function
f
:
N
→
N
,
defined by
f
(
x
)
=
x
2
+
x
+
1
is one-one but not onto. Find inverse of
f
:
N
→
S
, where
S
is range of
f
.
Q.
If
N
→
N
is defined by
f
(
n
)
=
n
−
(
−
1
)
n
, then
View More
Join BYJU'S Learning Program
Grade/Exam
1st Grade
2nd Grade
3rd Grade
4th Grade
5th Grade
6th grade
7th grade
8th Grade
9th Grade
10th Grade
11th Grade
12th Grade
Submit
Related Videos
Animal Tissues
MATHEMATICS
Watch in App
Explore more
Definition of Function
Standard XII Mathematics
Join BYJU'S Learning Program
Grade/Exam
1st Grade
2nd Grade
3rd Grade
4th Grade
5th Grade
6th grade
7th grade
8th Grade
9th Grade
10th Grade
11th Grade
12th Grade
Submit
AI Tutor
Textbooks
Question Papers
Install app