If $g(x)$ is a continuous nonnegative function on $[a,b]$ and if $\int_{a}^b g(x)dx = 0$ then $g$ is identically $0$ on $[a,b]$
Proof:
Otherwise, since $g(x)$ is continuous, there is a nonempty interval $(c,d) \subseteq [a,b]$ and $\alpha$ satisfying $g(x) \ge \alpha/2$ for $x \in (c,d)$
Then $\int_{a}^b g(x)dx \ge \int_{c}^d g(x)dx \ge \alpha/2*(d-c) > 0$
contradicting $\int_{a}^b g(x)dx = 0$
My question is why do we need $\alpha/2$ instead of just $\alpha$