When $f$ is the constant function, the claim can't possibly hold.