Statement

Let DCD\subseteq\mathbb C be a and let f:DCf:D\to\mathbb C be holomorphic. If f|f| has a local maximum at an interior point of DD, then ff is constant on DD.

Boundary form

If DD is bounded, ff is continuous on D\overline D, and holomorphic on DD, then

maxDf=maxDf,\max_{\overline D}|f|=\max_{\partial D}|f|,

unless ff is constant. Compactness of D\overline D ensures that the maximum exists; the local principle forces any nonconstant maximum to the boundary.

Minimum modulus

Apply the principle to 1/f1/f: if a holomorphic function has no zeros, f|f| cannot attain an interior local minimum unless ff is constant. A zero is an allowed minimum, so this statement requires the nonvanishing hypothesis.

References
  1. Lars V. Ahlfors, Complex Analysis, 3rd ed., McGraw–Hill, 1979. Relevant: Chapter 4, §3.