We are asked: "Prove the maximum modulus principle." So we need to provide a proof of the maximum modulus principle in complex analysis. The maximum modulus principle states: Let f be a non-constant holomorphic function on a domain D (connected open set). Then |f| does not attain a local maximum in the interior of D; that is, if there exists a point z0 in D such that |f(z0)| >= |f(z)| for all z in some neighborhood of z0, then f is constant. Equivalently, if f is holomorphic and non-constant on a bounded domain D, then the maximum of |f| on the closure of D is attained on the boundary.
We need to prove it. There are standard proofs using the mean value property or the open mapping theorem. The simplest is via the mean value property: If f is holomorphic, then for any circle around z0 contained in D, we have f(z0) = (1/(2π)) ∫_{0}^{2π} f(z0 + re^{iθ}) dθ. Then if |f(z0)| is at least as large as |f| on that circle, we get equality. But careful: The mean value property is for the average value, not necessarily the average of |f|. But we have: f(z0) = (1/(2π)) ∫ f(z0+re^{iθ}) dθ. Then taking modulus: |f(z0)| <= (1/(2π)) ∫ |f(z0+re^{iθ})| dθ. So if |f(z0)| is greater than or equal to all |f| on the circle, then the average of |f| equals |f(z0)|, but that implies |f| is constant on the circle? Actually, if we have an inequality |f(z0)| <= average of |f| on the circle, and if |f(z0)| >= |f(z)| for all z on the circle, then |f(z0)| is the maximum, so the average of |f| is <= |f(z0)| (since all terms <= |f(z0)|). So we have average <= |f(z0)| and also |f(z0)| <= average, so average = |f(z0)|. That means |f| is constant on the circle? Not necessarily: the average of a non-negative function equals its maximum implies that the function equals the maximum almost everywhere, but here it's continuous, so it must be constant on the circle. Actually: If we have a continuous function g on a circle such that average(g) = M and M is the maximum of g, then since g <= M everywhere, we have ∫ g <= M * length, and equality holds only if g = M everywhere. Because if g < M at some point, by continuity there is an interval where g < M - ε, so the integral would be strictly less. More rigorously: Suppose g(θ) ≤ M for all θ, and (1/2π)∫ g dθ = M. Then ∫ (M - g(θ)) dθ = 0, so M - g(θ) = 0 for all θ because it's continuous and non-negative. So yes, g must be constant M on the circle. That gives that |f| is constant on the circle. But from that we want to deduce f is constant on the circle? Not necessarily: having constant modulus does not imply constant function. But we have also the mean value property for f itself: f(z0) equals the average of f on the circle. If |f| is constant on the circle, say |f(z)| = M for all z on the circle, then the average of f is f(z0). But also the average of f is a complex number whose modulus is at most M. But we know that if |f| is constant on the circle, then the average of f might have modulus less than M unless all values are aligned. However, we also have that |f(z0)| = M. So |f(z0)| = M = the common modulus on the circle. Then from the mean value property: f(z0) = (1/2π)∫ f(z) dθ_z. Then |f(z0)| = |(1/2π)∫ f(z) dθ| ≤ (1/2π)∫ |f(z)| dθ = M. But we have equality. So equality in the triangle inequality for integrals implies that f(z) has the same argument for all points on the circle (almost everywhere, but continuously so everywhere). That is, f(z) = M e^{iφ} for all z on the circle, with the same φ. But then f is constant on the circle. So we have that f is constant on some circle centered at z0. Then by the identity theorem (since f is holomorphic and constant on a set with an accumulation point, it is constant on the whole connected domain), we conclude f is constant. That is one proof.
Alternatively, one can use the open mapping theorem: if f is non-constant and holomorphic, it is an open map. So if |f| has a local maximum at an interior point, then there is a neighborhood where |f| ≤ |f(z0)|. But then f maps that neighborhood into the closed disk of radius |f(z0)|. That closed disk is not open unless the image is a single point, because an open set cannot be contained in a closed set with non-empty interior unless it is the whole interior? Actually, careful: If f is non-constant and open, then f(D) is open. If |f| has a local maximum at z0, then there is a neighborhood U of z0 such that for all z in U, |f(z)| ≤ |f(z0)|. So f(U) ⊆ { w: |w| ≤ |f(z0)| }. But f(U) is open, so it must be an open subset of that closed disk. But the only open subsets of the closed disk (with the topology of C) that are contained in the closed disk are actually subsets of the open disk? Wait: The closed disk is not open in C. But f(U) is open in C. If f(U) is open and contained in the closed disk, then it must be contained in the interior of the closed disk? Actually, the closed disk's interior is the open disk. So if f(U) is open and a subset of the closed disk, then it is an open subset of C that is contained in the closed disk. But the closed disk has interior the open disk. But there could be open sets that are contained in the closed disk but not entirely in the open disk? For example, an open set that includes a boundary point? But an open set in C cannot contain a boundary point of the closed disk because any neighborhood of a boundary point will have points outside the closed disk. So if an open set is contained in the closed disk, it cannot contain any boundary point of the closed disk, because then there would be points arbitrarily close outside. So it must be contained in the open disk. So f(U) ⊆ { w: |w| < |f(z0)| }. But then |f(z)| < |f(z0)| for all z in U? Actually, we only know f(U) ⊆ closed disk. But from openness we deduce f(U) ⊆ open disk? Not necessarily: f(U) could be an open set that is entirely inside the closed disk but not touching the boundary? That would be inside the open disk. But if f(U) is open and contained in the closed disk, then for any point w in f(U), there is an open ball around w contained in f(U) and hence in the closed disk. That ball cannot extend beyond the closed disk, so w must be in the interior of the closed disk, i.e., |w| < |f(z0)|. So indeed f(U) ⊆ { w: |w| < |f(z0)| }. Then |f(z)| < |f(z0)| for all z in U, contradicting that |f(z0)| is a maximum on U. So if the maximum is attained at an interior point, then f must be constant. That argument uses the open mapping theorem. But the open mapping theorem itself is often proved using the maximum modulus principle or the argument principle. There is a circular dependency if we use open mapping to prove maximum modulus. Usually, the maximum modulus principle is proved first using the mean value property, and then the open mapping theorem follows from it. So the standard elementary proof is via the mean value property.
We can also prove the maximum modulus principle using the Cauchy integral formula and an estimate. Alternatively, we can use the fact that if f has a local maximum, then the function log|f| is subharmonic, and then the maximum principle for subharmonic functions gives the result. But that might be more advanced.
I'll provide a proof using the mean value property and the identity theorem.
Theorem (Maximum Modulus Principle): Let D be a domain (connected open set) in C, and let f: D → C be holomorphic and non-constant. Then for any z0 in D, there is no neighborhood U of z0 such that |f(z)| ≤ |f(z0)| for all z in U. In other words, |f| has no local maximum in D. Equivalently, if D is bounded, then the maximum of |f| on the closure of D is attained on the boundary.
Proof: Suppose, for contradiction, that there exists z0 in D and a small disk B = { z: |z - z0| < r } ⊆ D such that |f(z)| ≤ |f(z0)| for all z in B. We may assume r is small enough so that the closed disk is in D? Actually, we only need the open disk, but for the mean value integral we need the circle to be in D. So choose r such that the closed disk of radius r around z0 is contained in D. That is possible because D is open.
By the mean value property for holomorphic functions, we have:
f(z0) = (1/(2π)) ∫_{0}^{2π} f(z0 + re^{iθ}) dθ. (1)
Take absolute values:
|f(z0)| ≤ (1/(2π)) ∫_{0}^{2π} |f(z0 + re^{iθ})| dθ. (2)
By hypothesis, for all θ, |f(z0+re^{iθ})| ≤ |f(z0)|, so the right-hand side is ≤ |f(z0)|. Therefore, we have equality in (2):
|f(z0)| = (1/(2π)) ∫_{0}^{2π} |f(z0+re^{iθ})| dθ. (3)
But since |f(z0+re^{iθ})| ≤ |f(z0)| for all θ, equality in the average implies that |f(z0+re^{iθ})| = |f(z0)| for all θ. Because if there were some θ0 with |f(z0+re^{iθ0})| < |f(z0)|, by continuity there would be an interval where it is strictly less, making the average strictly less. So we have:
|f(z)| = |f(z0)| for all z on the circle |z - z0| = r. (4)
Now, consider the equality case in (2). We have:
|f(z0)| = | (1/(2π)) ∫ f(z) dθ | ≤ (1/(2π)) ∫ |f(z)| dθ = |f(z0)|.
Equality in the triangle inequality for integrals implies that the integrand f(z) has constant argument (phase) almost everywhere. More precisely, equality in |∫ g| ≤ ∫ |g| holds if and only if there exists a complex number c of modulus 1 such that g(θ) = c |g(θ)| for all θ (except possibly on a set of measure zero). Here g(θ) = f(z0+re^{iθ}). Since f is continuous, this holds for all θ. So there exists a constant φ such that for all θ, f(z0+re^{iθ}) = |f(z0)| e^{iφ}. That is, f is constant on the circle. So we have:
f(z) = f(z0) for all z with |z - z0| = r? Wait, we only know |f(z)| = |f(z0)| and the argument is constant. But that constant argument might not be the same as the argument of f(z0) necessarily? Actually, from f(z0) = average of f on the circle. Since f is constant on the circle, say f(z) = c for all z on the circle, with |c| = |f(z0)|. Then the average is c, so f(z0) = c. Thus f(z0) = c and so f is constant on the circle and equal to f(z0). Therefore, f takes the constant value f(z0) on the entire circle |z - z0| = r.
Now we have that f is constant on a circle centered at z0. But f is holomorphic. Consider the function g(z) = f(z) - f(z0). Then g is holomorphic on D and vanishes on the set { z: |z - z0| = r }. That set has an accumulation point (in fact, it's infinite). By the identity theorem, since D is connected and g is not identically zero? Actually, if g is not identically zero, then the zeros of a non-zero holomorphic function are isolated. But the circle has infinitely many points and they are not isolated (they form a continuum). So g must be identically zero on D. Therefore f is constant on D.
Thus, if f has a local maximum of modulus at an interior point, then f is constant. This completes the proof of the maximum modulus principle.
We should note: We used the mean value property which holds for holomorphic functions. But we need to ensure that the mean value property is valid: For any holomorphic function on a domain, and any closed disk contained in the domain, f(z0) = (1/(2π)) ∫0^{2π} f(z0+re^{iθ}) dθ. This follows from the Cauchy integral formula: f(z0) = (1/(2π i)) ∫{|z-z0|=r} f(z)/(z-z0) dz, and parameterizing z = z0+re^{iθ}, dz = ire^{iθ} dθ, we get the formula.
So the proof is complete.
We might also mention the corollary: If D is bounded and f is continuous on the closure of D and holomorphic on D, then the maximum of |f| on the closure is attained on the boundary. This follows because if the maximum were attained in the interior, then by the maximum modulus principle f would be constant, and then the maximum is also attained on the boundary trivially. But if f is non-constant, the maximum cannot be in the interior.
But the statement we proved is the local version. The global version for bounded domains is a direct consequence.
I'll write the proof clearly.
Let me also consider: The maximum modulus principle is sometimes stated as: If f is holomorphic on a domain D and there is a point a in D such that |f(a)| ≥ |f(z)| for all z in D, then f is constant. That is a stronger statement: global maximum. But that follows from the local version because if there is a global maximum at an interior point, then it is also a local maximum. So the local version implies that if there is a local maximum then f is constant. But if there is a global maximum at an interior point, then certainly there is a neighborhood where it is still the maximum, so it's a local maximum. So the local version suffices.
Our proof above shows that if there is a local maximum, then f is constant. So it proves both.
I'll produce a clean, step-by-step proof.
Proof:
Assume f is holomorphic on a connected open set D, and suppose there exists z0 ∈ D and r>0 such that the closed disk B = { z: |z - z0| ≤ r } is contained in D, and |f(z)| ≤ |f(z0)| for all z in B. (We can take a smaller r if needed so that the closed disk is in D, because D is open.)
By the Cauchy integral formula, for any 0 < ρ ≤ r, we have:
f(z0) = (1/(2π i)) ∫_{|ζ - z0| = ρ} f(ζ)/(ζ - z0) dζ.
Parameterizing ζ = z0 + ρ e^{iθ}, dζ = i ρ e^{iθ} dθ, we get:
f(z0) = (1/(2π)) ∫_0^{2π} f(z0 + ρ e^{iθ}) dθ. (1)
Now choose ρ = r. Then:
f(z0) = (1/(2π)) ∫_0^{2π} f(z0 + r e^{iθ}) dθ. (2)
Take absolute values:
|f(z0)| ≤ (1/(2π)) ∫_0^{2π} |f(z0 + r e^{iθ})| dθ. (3)
By hypothesis, |f(z0 + r e^{iθ})| ≤ |f(z0)| for all θ, so the right-hand side is ≤ |f(z0)|. Hence equality holds in (3):
|f(z0)| = (1/(2π)) ∫_0^{2π} |f(z0 + r e^{iθ})| dθ. (4)
Since the integrand is continuous and bounded above by |f(z0)|, equality of the average implies that |f(z0 + r e^{iθ})| = |f(z0)| for all θ. (If at some θ0 we had strict inequality, by continuity there would be an interval where it is strictly less, making the average strictly less.)
Thus, for all θ, |f(z0 + r e^{iθ})| = |f(z0)|. (5)
Now, from (2) we have:
f(z0) = (1/(2π)) ∫_0^{2π} f(z0 + r e^{iθ}) dθ. (6)
Consider the complex numbers w(θ) = f(z0 + r e^{iθ}). They all have the same modulus M = |f(z0)|. The average of these numbers is f(z0), and |f(z0)| = M. The triangle inequality gives:
|f(z0)| = | (1/(2π)) ∫ w(θ) dθ | ≤ (1/(2π)) ∫ |w(θ)| dθ = M.
Equality holds in the triangle inequality for integrals. For continuous functions, equality holds if and only if all the w(θ) have the same argument (i.e., w(θ) = c for all θ, where c is a fixed complex number with |c| = M). More precisely, there exists a constant λ with |λ|=1 such that w(θ) = λ |w(θ)| = λ M for all θ. But since |w(θ)| = M, we get w(θ) = λ M. Then the average is λ M. But f(z0) = average, so f(z0) = λ M. Hence λ M = f(z0), and since |f(z0)| = M, we have |λ M| = M, so λ has modulus 1, consistent. Then w(θ) = f(z0) for all θ. Therefore, f is constant on the circle |z - z0| = r, and f(z) = f(z0) for all such z.
Now define g(z) = f(z) - f(z0). Then g is holomorphic on D, and g(z) = 0 for all z on the circle |z - z0| = r. That set has a limit point (in fact, every point on the circle is a limit point). By the identity theorem, since g is not identically zero would have isolated zeros, it must be identically zero on D. Hence f is constant on D.
This contradicts the assumption that f is non-constant. Therefore, no such z0 exists, and |f| has no local maximum in D.
That is the maximum modulus principle.
We can also state the global version: If D is bounded and f is continuous on the closure \overline{D} and holomorphic on D, then max_{z \in \overline{D}} |f(z)| = max_{z \in \partial D} |f(z)|. Proof: If the maximum is attained at an interior point, then by the local version f is constant, and then the maximum is also attained on the boundary (since if f is constant, it attains the same value everywhere). So for non-constant f, the maximum must be on the boundary.
I'll include that as a remark.
Thus, the proof is complete.
The Maximum Modulus Principle states that if (f) is a non-constant holomorphic function on a domain (D \subseteq \mathbb{C}) (connected open set), then (|f|) has no local maximum in the interior of (D). Equivalently, for any (z_0 \in D), there is no neighborhood (U \subseteq D) of (z_0) such that (|f(z)| \leq |f(z_0)|) for all (z \in U).
Proof
Assume, for contradiction, that there exists (z_0 \in D) and (r > 0) such that the closed disk
[
\overline{B}(z_0, r) = { z : |z - z_0| \leq r } \subseteq D
]
and (|f(z)| \leq |f(z_0)|) for all (z \in \overline{B}(z_0, r)).
By the Cauchy integral formula, for any (0 < \rho \leq r),
[
f(z_0) = \frac{1}{2\pi i} \int_{|\zeta - z_0| = \rho} \frac{f(\zeta)}{\zeta - z_0} , d\zeta.
]
Parameterizing (\zeta = z_0 + \rho e^{i\theta}), (d\zeta = i\rho e^{i\theta} d\theta), we obtain the mean value property:
[
f(z_0) = \frac{1}{2\pi} \int_0^{2\pi} f(z_0 + \rho e^{i\theta}) , d\theta.
]
Taking (\rho = r), we have
[
f(z_0) = \frac{1}{2\pi} \int_0^{2\pi} f(z_0 + r e^{i\theta}) , d\theta. \tag{1}
]
Now take absolute values and use the triangle inequality:
[
|f(z_0)| \leq \frac{1}{2\pi} \int_0^{2\pi} |f(z_0 + r e^{i\theta})| , d\theta. \tag{2}
]
By hypothesis, (|f(z_0 + r e^{i\theta})| \leq |f(z_0)|) for all (\theta), so the right-hand side of (2) is at most (|f(z_0)|). Hence equality holds:
[
|f(z_0)| = \frac{1}{2\pi} \int_0^{2\pi} |f(z_0 + r e^{i\theta})| , d\theta. \tag{3}
]
Since the integrand is continuous and bounded above by (|f(z_0)|), equality of the average implies that
[
|f(z_0 + r e^{i\theta})| = |f(z_0)| \quad \text{for all } \theta. \tag{4}
]
Substituting (4) into (1), we have
[
f(z_0) = \frac{1}{2\pi} \int_0^{2\pi} f(z_0 + r e^{i\theta}) , d\theta. \tag{5}
]
Let (w(\theta) = f(z_0 + r e^{i\theta})). From (4), (|w(\theta)| = |f(z_0)| =: M) for all (\theta). Then (5) gives
[
f(z_0) = \frac{1}{2\pi} \int_0^{2\pi} w(\theta) , d\theta.
]
Taking absolute values and using the triangle inequality again,
[
|f(z_0)| \leq \frac{1}{2\pi} \int_0^{2\pi} |w(\theta)| , d\theta = M.
]
But we already have (|f(z_0)| = M), so equality holds. Equality in the triangle inequality for integrals occurs if and only if all (w(\theta)) have the same argument (i.e., there exists a constant (\lambda) with (|\lambda| = 1) such that (w(\theta) = \lambda M) for all (\theta)). Since (M = |f(z_0)|), this means (w(\theta) = f(z_0)) for all (\theta). Thus,
[
f(z_0 + r e^{i\theta}) = f(z_0) \quad \text{for all } \theta,
]
so (f) is constant on the circle (|z - z_0| = r).
Define (g(z) = f(z) - f(z_0)). Then (g) is holomorphic on (D) and vanishes on the set ({ z : |z - z_0| = r }), which has a limit point (in fact, every point on the circle is a limit point). By the identity theorem, since the zeros of a non-zero holomorphic function are isolated, (g) must be identically zero on (D). Therefore, (f) is constant on (D), contradicting the assumption that (f) is non-constant.
Hence, no such (z_0) exists, and (|f|) has no local maximum in (D). ∎
Corollary (Global Maximum Modulus Principle)
If (D) is a bounded domain and (f) is continuous on (\overline{D}) and holomorphic on (D), then
[
\max_{z \in \overline{D}} |f(z)| = \max_{z \in \partial D} |f(z)|.
]
Proof: If the maximum is attained at an interior point, the local version implies (f) is constant, in which case the maximum is also attained on the boundary. If (f) is non-constant, the maximum cannot occur in the interior, so it must lie on (\partial D). ∎