Let $f(x)\leq g(x)$ for all $x \in I$, where $I$ is an interval $\subseteq$ R. Also, let $f(c) = g(c)$ for some $c \in I$ but not an endpoint. Prove that $f'(c) = g'(c)$ (assume differentiablity)
I have tried the Mean Value Theorem, let I = [a,b]. So for $f'(c) = g'(c)$ I will need to prove that $f(a) - f(b) = g(a) - g(b)$, but I am stuck at this. I have also tried the definition of derivative but I am still unable to go ahead.
Please give me some hints on this. Thank you!