If I have a bijective real function $f:[a,b] \to [a,b]$ with $f(a) = a$ and $f(b) = b,$ I want to show it is monotonic increasing or find a counterexample.
Notice that I'm not assuming continuity, for the intermediate value theorem and the condition on endpoints would easily take care of the problem in this case, and that is why I'm stuck. I can't think o a counterexample nor prove it. By removing the restrictions on the range (i.e. making it $\mathbb R$, forgetting about the endpoints condition and only asking injectivity) I can find a counterexample to the affirmation, so I think I must use $f(a) = a$ and $f(b) = b$ in some way...
Any help is appreciated, thanks.
Define $f:[0,1]\to[0,1]$ by $f(0)=0$, $f(1)=1$, and $f(x)=1-x$ otherwise.