So start off contradiction proofs by assuming the opposite. So we assume f is a homeomorphism from ℝ to [0, 1].
Since f is a surjection, there exists some ∈ ℝ with $f() = 0$. Let $x_1 = – 1$ and $x_2 = + 1$.
Since f is an injection, and since $x_1≠ x_2 ≠ $,we know that $f(x_1) ≠ f(x_2) ≠ 0$.
Let $M = min \{ f(x_1), f(x_2) \}$.
I know I have to use the intermediate value theorem at some point but I'm stuck at the next step.
Homeomorphisms are continuous. Continuous functions map compact sets to compact sets. $[0,1]$ is compact. $\mathbb{R}$ is not compact. Thus there is no continuous function from $[0,1]$ to $\mathbb{R}$ that has image all of $\mathbb{R}$.