4

Question is :

$f: [0,1]\rightarrow \mathbb{R}$ be a one one function, then which of the following statements are true?

$(a)$ $f$ must be onto

$(b)$ range of $f$ contains a rational number

$(c)$ range of $f$ contains an irrational number

$(d)$ range of $f$ contains both rational numbers and irrational numbers

I can see that $f$ need not be onto function by considering :

$f : [0,1]\rightarrow \mathbb{R}$ with $f(x)=x$ is one-one , but not onto.

Now, I should not take a continuous function to show a contradiction for $(b)/(c)/(d)$ because, any continuous function takes intervals to intervals and thus, Range of $f$ will have both rational and irrational numbers.

I recalled all functions i have thought could be discontinuous but those are not helping me at all.

I would be thankful if some one can help me to crack this problem and similar kind of problems.

THank You.

1 Answers1

9

Consider $f : [0, 1] \to \mathbb R$ defined as: $$ f(x) = \begin{cases} x &: x \text{ irrational} \\ x + \sqrt{2} &: x \text{ rational} \end{cases} $$

It is easy to show that this is an injective function from $[0, 1]$ into $\mathbb R - \mathbb Q$.

Ayman Hourieh
  • 39,603