To prove one-one & onto (injective, surjective, bijective)
To prove one-one & onto (injective, surjective, bijective)
Last updated at August 2, 2026 by Teachoo
Transcript
Example 12 Show that f : N ā N, given by f(x) = {ā(š„+1 , šš š„ šš ššš@š„ā1, šš š„ šš šš£šš)⤠is both one-one and onto. Check one-one There can be 3 cases x1 & x2 both are odd x1 & x2 both are even x1 is odd & x2 is even If x1 & x2 are both odd f(x1) = x1 + 1 f(x2) = x2 + 1 Putting f(x1) = f(x2) x1 + 1 = x2 + 1 x1 = x2 If x1 & x2 are both are even f(x1) = x1 ā 1 f(x2) = x2 ā 1 If f(x1) = f(x2) x1 ā 1 = x2 ā 1 x1 = x2 If x1 is odd and x2 is even f(x1) = x1 + 1 f(x2) = x2 ā 1 If f(x1) = f(x2) x1 + 1 = x2 ā 1 x2 ā x1 = 2 which is impossible as difference between even and odd number can never be even Hence, if f(x1) = f(x2) , Then x1 = x2 ā“ function f is one-one If x is odd f(x) = x + 1 y = x + 1 y ā 1 = x x = y ā 1 If x is odd, y is even Check onto f(x) = {ā(š„+1 , šš š„ šš ššš@š„ā1, šš š„ šš šš£šš)⤠Let f(x) = y , such that y ā N x = {ā(š¦ā1 , šš š¦ šš šš£šš@š¦+1, šš š¦ šš ššš)⤠If x is even f(x) = x ā 1 y = x ā 1 y + 1 = x x = y + 1 If x is even, y is odd Hence, if y is a natural number, x will also be a natural number i.e. x ā N Thus, f is onto.