Assume $f$ is continuous on $[a,b]$, if $\int_a^b f(x)\,dx=0$, prove that $f(c)=0$ for at least one $c$ in $[a,b]$.
The problem didn't state anything about the function $f$, is it safe to assume either:
$f$ is an odd function and implies that there is some $x_1$ $x_2$ in $[a,b]$ such that $f(x_1)<0$, $f(x_2)>0$ and apply Bolzano's Theorem to conclude that there is at least a $c$ in $[a,b]$ such that $f(c)=0$.
$f$ is $0$ for all $x$ in $[a,b]$ hence it is trivial.
Is this argument correct?