Use the Intermediate Value Theorem to prove that any continuous function with domain $[0, 1]$ and range a subset of $[0, 1]$ must have a fixed point.
My approach:
I will call this continuous function in question $f$, and define $g(x) = x$.
What I will(attempt to) show is that $f$ will intersect the function $g$ at some point.
Let the range of $f$ be $[r_1, r_2]$ (which is a subset of $[0, 1]$)
Let $g(a) = r_1$ and $g(b) = r_2$ ($a$ and $b$ naturally are in the domain of $f$)
$r_1 \leq f(x) \leq r_2 \Leftrightarrow g(a) \leq f(x) \leq g(b)$ so $f$ must intersect $g$ at some point
So there exists a fixed point of $f$ between $a$ and $b$ or possibly at $a$ and/or $b$.
Please let me know what I'm doing right/wrong.