This problem has been already posted here but I want to expose my attempt of solution and I would like to get any suggestions of improvement.
I have a question about the corollary to theorem 5.12 in Rudin's Principles of Mathematical Analysis (page 108):
Suppose $f$ is a real differentiable function on $[a,b]$ and suppose $f'(a)< \lambda < f'(b)$ then there is a point $x \in (a,b)$ such that $f'(x) = \lambda$
Corollary: If $f$ is differentiable on $[a,b]$ then $f'$ cannot have any simple discontinuities on $[a,b]$.
Let $x\in(a,b)$. Suppose that there exist $f'(x^{-})=q$. Then $\left \{f'(x)_n \right\} \rightarrow q$ as $n\rightarrow \infty$, for all sequences $\left \{x_n \right\}$ in $(a,x)$ such that $\left \{x_n \right\} \rightarrow x$ as $n \rightarrow \infty$.
without loss of generality suppose that $q \leq f'(x)$. If $q<f'(x)$
Let {$x_n$} be strictly increasing sequence s.t {$x_n$}$\rightarrow x$.
Suppose that $f'(x_n)=q$ for all $x_n$ and define $b_0 = q, b_{n}=\frac {b_{n-1}+f'(x)}{2}$ for all $n \geq 1$.Then {${b_n}$} is a increasing sequence s.t $q< b_n <f'(x)$ for all $n \geq 1$, and {${b_n}$} $\rightarrow f'(x)$.
By theorem 5.12, there exist $l_1 \in (x_1,x)$ s.t $f'(x_1)=b_1$. Define $l_{n+1}$ as a number s.t $x_n <l_n<l_{n+1} <x$ and $f'(l_{n+1})=b_{n+1}$. Hence {$l_n$}$\rightarrow x$ and {$f'(l_n)$} $\rightarrow$ as $n\rightarrow \infty$. Then $q=f'(x)$.
Now, suppose that {$f'(x_n)$} is a sequence without any constant sub-sequence. As {$f'(x_n)$} is a convergent sequence, lets assume that {$f'(x_n)$} is strictly monotone.
If {$f'(x_n)$} is increasing, then, as $f'(x_n) < q < f'(x)$, there exist $l_n \in (x_n,x)$ s.t $f'(l_n)=q$ for all $n \geq 1$. Hence {$l_n$} is a constant sequence, then $q = f'(x)$
If {$f'(x_n)$} is decreasing, then, suppose that $f'(x_n) < f'(x)$ for all $n > 1$. Define $b_1 = f'(x_1), b_{n}=\frac {b_{n-1}+f'(x)}{2}$ for all $n > 1$.Then {${b_n}$} is a increasing sequence s.t $b_n < f'(x)$ for all $n \geq 1$, and {${b_n}$} $\rightarrow f'(x)$.
There exist $l_1 \in (x_1,x)$ s.t $f'(x_1)=b_1$. Define $l_{n+1}$ as a number s.t $x_n <l_n<l_{n+1} <x$ and $f'(l_{n+1})=b_{n+1}$. Hence {$l_n$}$\rightarrow x$ and {$f'(l_n)$} $\rightarrow$ as $n\rightarrow \infty$. Then $q=f'(x)$.
Then if $f'(x^-)$ or $f'(x^+)$ there exist, both are equal to $f'(x)$
I don't know if this is correct, I made this with the intention of only use concepts(definitions) from the book. I know that this is needlessly long. At the end i'm awfully redundant.
edit
I already had thought one shortest solution. I am studying for my calculus exam and I decided to try to prove this as above as an exercise:
Let $x\in[a,b]$. Suppose that $f'(x^-) = L$ and $f'(x) \neq L$. Then for $\epsilon = |\frac{L-f'(x)}{2}|$ there exist $\delta > 0$ s.t if $y \in (x-\delta,x)$, then $|f'(y)-L|< \epsilon$.
Let $y \in (x-\delta,x)$. If $f'(x)<L$, then $f'(x)<\frac{L+f'(x)}{2}<f'(y)$. If $L<f'(x)$, then $f'(y)<\frac{L+f'(x)}{2}<f'(x)$. In both cases, by the theorem 5.12, there exist $\alpha \in (y,x) \subset (x-\delta,x)$ s.t $f'(\alpha)=\frac{L+f'(x)}{2}$, hence $|\frac{L+f'(x)}{2}-L| < \epsilon\Rightarrow|\frac{f'(x)-L}{2}|<\epsilon\Rightarrow\epsilon<\epsilon$. which is a contradiction, then $f(x^-)=f(x)$.
By a analogue reasoning, if there exist $f'(x^+) = Q$, then $Q= f'(x)$. Hence $f'(x)$ cannot have any simple discontinuities on $[a,b]$