Let $a,b \in \Bbb{R}$ such that $a<b$ Then Prove that $\:\exists\:$ a continuous function $f:(a,b)\to [a,b]$ such that $f$ is Bijective.
I am not sure how to prove formally, But i tested the claim for $f(x)=x$. It is of course injective but not surjective since codomain is different from range.
EDIT: As per the link given in the comment section, this is what i understood. First let us assume $f:(a,b)\to [a,b]$ is onto. So $\exists$ $c,d \in (a,b)$ such that $f(c)=a,f(d)=b$. Without loss of generality let $c<d$.
Now Since $f$ is continuous, by IVT we have: $$f\left([c,d]\right)=[a,b]$$ But $(a,b)-[c,d]\ne \phi$ So $f$ cannot be injective.
Hence if $f$ is Surjective, $f$ cannot be injective. This implies that: If $f$ is Injective, $f$ cannot be surjective.
The best example for $f$ to be continuous and injective is $f(x)=x$. But I am unable to find example for $f$ to be continuous and surjective.