Prove that a strictly increasing function $f:[a,b]\rightarrow\mathbb{R}$ which has the intermediate value property is continuous on $[a,b]$.
Let $x_0\in[a,b]$. As $f$ is strictly increasing, $$\sup_{a\leq x<x_0}f(x)=f(x_0^+)\leq f(x)\leq\inf_{x_0<x\leq b}f(x)=f(x_0^-)$$ To yield a contradiction, suppose that $f(x)<f(x_0^+)$. Let $\{x_n\}$ be a sequence of $(x_0,b]$ that converges to $x_0^+$such that $\lim\limits_{n\rightarrow\infty}f(x_n)=f(x_0^+)$. Since $f$ is strictly increasing, $$f(x_n)>f(x_0^+)>f(x_0)$$ Apply the intermediate value theorem, there exists a point $x'\in(x_0,x_n]$ such that $f(x')=f(x_0^+)$, then $$\inf_{x_0\leq x<x'}f(x)\geq\inf_{x_0<x\leq b}f(x)=f(x')$$ However, by strictly monotonicity of $f$, $\inf_{x_0\leq x<x'} f(x)<f(x')$ which is a contradiction.
Hence, $f(x)=f(x_0^+)$. Similarly, $f(x)=f(x_0^-)$,$f(a)=f(a^+)$, and $f(b)=f(b^-)$.
Can someone give a hint or suggestion to write a direct proof? Thanks