Let a $f$ be a function on $[a,b]$ such that it's differentiable on $(a,b)$ such that $|f'(x)| \leq M$ for some real $M$. Prove that $f$ is also bounded.
My proof: Fix an arbitrary $x_0 \in (a,b)$ then for all $k \in (a,x_0)$, then by MVT, there exist $c \in (k,x_0)$ such that $$f'(c)(x_0-k)+ f(k) = f(x_0)$$ Now $$|M(x_0 - k)|+|f(k)| \geq |f(x_0)| \implies |M(x_0 - a)|+|f(k)| > |f(x_0)|$$ Hence, for some $L$, $L> |f(x)|$ for all $x$. $\blacksquare$
My concern about this solution is that, I'm not sure if my arguments like "fix any $x_0$" is correctly put, and hence if this solution works for all $x \in (a,b)$. I haven't done a lot of proofs, where it's required to fix some arbitrary point in domain, so would be much appreciated if someone checks if all the arguments are correct.