Suppose $g$ is a continuous function on $[a,b]$ and that $g(t)\ge0$ for all $t\in[a,b]$. Show that if $\int_{a}^{b}g(t)dt=0$ then $g(t)=0$ for all $t\in[a,b]$
I know that there exists some function $G(x)= \int_{a}^{b}g(t)dt$ where $G(x)$ is differentialable at any $c$ in the interval where $G'(c)=g(c)$. Now since $g(t)$ is always positive it should follow that $G'(x)$ is always positive therefore $G(x)$ would be increasing.
Now given $G(x)= \int_{a}^{b}g(t)dt =0$ would mean that $G(b)-G(a)=0$ thus $G(b)=G(a)$ now since $G(x)$ is increasing that would mean that $g(t)=0$ for all $t$ in the interval.