The highlighted parts are not clear for me. Can you eplain me, why do we consider two cases and what is exactly going on in both of them.
Edited:
Especially it is not clear, why do we consider $p_1 <= c - \sigma^{`}$ and $p_1 > c - \sigma^{`}$
There has to be a difference of treatment of the difference $|g(x)-g(c)|$ whether $f$ takes its maximum on $[a,c+\delta']\cap [a,b]$ inside $[c-\delta',c+\delta']$ or outside :