Solveeit Logo

Question

Question: Which of the following functions from Z to Z is both one-one and onto ?...

Which of the following functions from Z to Z is both one-one and onto ?

A

f(x)=2x1f(x) = 2x - 1

B

f(x)=3x2+5f(x) = 3x^2 + 5

C

f(x)=x+5f(x) = x + 5

D

f(x)=5x3f(x) = 5x^3

Answer

f(x)=x+5f(x) = x + 5

Explanation

Solution

A function f:ZZf: \mathbb{Z} \to \mathbb{Z} is one-one if f(x1)=f(x2)    x1=x2f(x_1) = f(x_2) \implies x_1 = x_2, and onto if for every yZy \in \mathbb{Z}, there exists an xZx \in \mathbb{Z} such that f(x)=yf(x) = y.

  • f(x)=2x1f(x) = 2x - 1: One-one, but not onto (e.g., y=0y=0 has no integer solution for xx).
  • f(x)=3x2+5f(x) = 3x^2 + 5: Not one-one (f(2)=f(2)f(2) = f(-2)) and not onto.
  • f(x)=x+5f(x) = x + 5: One-one and onto (for any yZy \in \mathbb{Z}, x=y5Zx = y-5 \in \mathbb{Z} such that f(x)=yf(x) = y).
  • f(x)=5x3f(x) = 5x^3: One-one, but not onto (e.g., y=1y=1 has no integer solution for xx).