The real part of an analytic function is a harmonic function. The mean value theorem for harmonic functions says that the value of the function at is the mean of the values on the circle . If the mean is zero and the function is not identically 0 then it must take both positive and negative values.