So I was doing some calculus homework the other day, and the following question occurred to me: what functions have the property that the value of $c$ guaranteed by the Mean Value Theorem for Derivatives is the same as the value of $c$ guaranteed by the Mean Value Theorem for Integrals? By scaling, it's sufficient to consider $(0,1)$, so the condition is
$$f'(c)=f(1)-f(0)\,\,\,\, \text{and}\,\,\,\, f(c)=\int_0^1 f(x)\, dx.$$
After some experimentation, I found that $f(x)=e^x$ works, but I was wondering if there are other solutions, and if not, how you could go about showing that no other solutions exist.
I'm fairly certain this is the only solution, since MVT for Derivatives is just MVT for Integrals applied to $f'$, and $e^x$ is the solution to $f=f'$, but I was wondering if anything "weird" happened to give other solutions.