Statement

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

Proof

For a closed disc around the maximum point, the expresses f(a)f(a) as the average of its boundary values. The triangle inequality gives f(a)|f(a)| at most the boundary maximum. Equality forces all boundary values to have the same argument and modulus; applying the same argument on smaller discs makes ff constant on a neighborhood of aa. The then makes it constant on the connected domain.

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.