Let $f$ be a function from $[a,b]$ to $\Bbb{R}$ that is twice-differentiable (that is, $f'$ and $f''$ exist), and assume that $f(a) = f(b) = 0$ and $f''(x) \leq 0$ for every $x\in (a,b)$. Show that $f(x) \geq 0$ on $[a,b]$.
I think we must use the mean value/ Rolle's theorems There will be a $c$ in $(a,b)$ such that $f'(c) = \frac{f(a) - f(b)}{b-a}= 0$. Where do I go from here?
Any help will be appreciated!
Assume that $f(c) < 0$ for some $c \in (a, b)$, and apply Rolle's theorem repeatedly:
There is an $x_1 \in (a, c)$ with $f'(x_1) = \frac{f(c)-f(a)}{c-a} < 0$.
There is an $x_2 \in (c, b)$ with $f'(x_2) = \frac{f(b)-f(c)}{b-c} > 0$.
There is an $x_3 \in (x_1, x_2)$ with $f''(x_3) = \frac{f'(x_2)-f'(x_1)}{x_2-x_1} > 0$.
This is a contradiction to the assumption that $f''(x) \le 0$ for all $x \in (a, b)$.
An alternative approach: Fix any $c \in (a, b)$ and define $$ g(x) = (c-a)(c-b)f(x) - (x-a)(x-b)f(c) \, . $$ Then $g(a) = g(c) = g(b) = 0$, and repeated application of Rolle's theorem shows that $g''(\xi) = 0$ for some $\xi \in (a, b)$. Then $$ 0 = g''(\xi) = (c-a)(c-b)f''(\xi) - 2f(c) \\ \implies f(c) = \frac 12 (c-a)(c-b)f''(\xi) \ge 0 \, . $$
Yet another approach: Assume that $f$ attains its minimum at $c \in (a, b)$ and $f(c) < 0$. Then $f'(c) = 0$ and Taylor's formula gives a contradiction: $$ f(b) = f(c) + \frac 12 (b-c)^2 f''(\xi) < 0 $$ for some $\xi \in (c, b)$.
The real idea here is that $f$ is concave, and a continuous concave function on a compact interval attains its minimum at one of the boundary points: Therefore $$ f(x) \ge \min (f(a), f(b)) = 0 $$ for $x \in (a, b)$.