This is not true - more conditions are needed:

1) f needs to be continuous

2) f needs be either nonnegative or nonpositive, otherwise a simple counterexample is

And then what I would do is assume toward contradiction that the function is not identically zero, use continuity to show that its not zero on an interval and thus the integral itself is not zero.