If f is an entire function, then it can be written as a Taylor series . If only the first term of the Taylor series is nonzero (i.e. you have a constant), then you will have .

If the first two terms are nonzero, then you will have

.

If any other terms are nonzero, then you will have

So the only way for is if is constant.