JustToThePoint English Website Version
JustToThePoint en español

Harmonic Functions and Their Relationship to Analytic Functions 2

Enjoy life. This is not a dress rehearsal, Friedrich Nietzsche.

Choose a job you love and never work a day

Harmonic functions

Definition. Let $D \subseteq \mathbb{R}^2$ be a domain (open and connected set). A function $\phi (x, y): D \to \mathbb{R}$ is said to be $C^2$ on D if $\phi$ and its partial derivatives $\frac{\partial \phi}{\partial x}, \frac{\partial \phi}{\partial y}, \frac{\partial^2 \phi}{\partial x^2}, \frac{\partial^2 \phi}{\partial y^2}$ are all continuous on D. According to this definition, the following conditions are met.

  1. D is open and connected.
  2. The first partial derivatives $\frac{\partial \phi}{\partial x} \text{ and } \frac{\partial \phi}{\partial y}$ exist and are continuous on D.
  3. The second partial derivatives $\frac{\partial^2 \phi}{\partial x^2} \text{ and } \frac{\partial^2 \phi}{\partial y^2}$ exist and are continuous on D.
  4. Notably, this definition does not require the existence or continuity of the mixed second partial derivatives $\frac{\partial^2 \phi}{\partial x \partial y} \text{ or } \frac{\partial^2 \phi}{\partial y \partial x}$. This is a notable departure (a weaker definition) from the standard $C^2$ definition.

    The standard (stronger) meaning of $C^2$ on D requires all partial derivatives up to order 2 — including the mixed partials — to exist and be continuous on D: $\phi, \frac{\partial \phi}{\partial x}, \frac{\partial \phi}{\partial y}, \frac{\partial^2 \phi}{\partial x^2}, \frac{\partial^2 \phi}{\partial y^2}, \frac{\partial^2 \phi}{\partial y \partial x}, \frac{\partial^2 \phi}{\partial x \partial y}$.

Definition. The Laplacian of a function $\phi (x, y)$ is the sum of its unmixed second partial derivatives $\nabla^2 \phi := \frac{\partial^2 \phi}{\partial x^2} + \frac{\partial \phi^2}{\partial y^2} ↭ \nabla^2 \phi := \phi_{xx}+ \phi_{yy}$.

The Laplace’s equation is the condition $\nabla^2 \phi = 0$, i.e., $\frac{\partial^2 \phi}{\partial x^2} + \frac{\partial^2 \phi}{\partial x^2} = 0$.

The standard notations for the Laplacian of a function $\phi (x, y)$ are $\nabla^2 \phi \text{ or } \Delta \phi $. The standard notations for partial derivatives: $\frac{\partial \phi}{\partial x} \text{ or } \phi_x$ for first partials, and for second partials, $\frac{\partial^2 \phi}{\partial x²} \text{ or } \phi_{xx}$. The superscript 2 on the numerator should precede the variable (applies to the differential operator $\partial$) to denote the second derivative; the notation $\frac{\partial^2 \phi}{\partial x^2}$ means “apply $\frac{\partial}{\partial x}$ twice to $\phi$.”

Definition. A real-valued function $\phi (x, y)$ is harmonic on a domain $D \subseteq \mathbb{R}^2$ if it is $C^2$ on D and satisfies Laplace’s equation: $\nabla^2 \phi = \frac{\partial \phi^2}{\partial x^2} + \frac{\partial \phi^2}{\partial y^2} = 0$.

Theorem. Let $f(z) = u(x,y) + iv(x,y)$ be analytic on a domain D (with z = x + iy). Then:

  1. u, v are $C^\infty$ (indeed, real-analytic).
  2. They satisfy the Cauchy–Riemann equations: $u_x = v_y, u_y = -v_x$.
  3. Both it real part, u, and its imaginary part, v, are harmonic functions on D.

Definition. If u(x, y) is a harmonic function on a domain D, a function v(x, y) is called a harmonic conjugate of u if:

  1. v is also harmonic on D.
  2. The pair (u, v) satisfies the Cauchy-Riemann equations: $\frac{\partial u}{\partial x} = \frac{\partial v}{\partial y}$ and $\frac{\partial u}{\partial y} = - \frac{\partial v}{\partial x}$.

Theorem. Harmonic conjugates yield analytic functions. If u(x, y) is a harmonic function on a domain D and v is a harmonic conjugate of u, then f(z) = u(x, y) + iv(x, y) is analytic on D, where z = x + iy.

Theorem. Existence of Harmonic Conjugates. If $u \in C^2(D)$ is harmonic and D is simply connected, then there exists v with $\frac{\partial u}{\partial x} = \frac{\partial v}{\partial y}$ and $\frac{\partial u}{\partial y} = - \frac{\partial v}{\partial x}$, and $f(z) = u(x, y) + iv(x, y)$ is analytic on D. The conjugate v is unique up to an additive constant.

Consequences: Constancy Theorems for Harmonic Functions

Theorem. Constant Modulus Implies Constancy. Let $u(x, y)$ be harmonic on a domain $D$, and let $v$ be a harmonic conjugate of $u$. If the function $f(z) = u(x, y) + iv(x, y)$ satisfies $|f(z)| = k$ for all $z \in D$, where $k$ is a constant, then $u$ and $v$ are both constant on $D$.

Proof.

Since v is a harmonic conjugate of u, by the previous Theorem, the function f(z) = u(x, y) + iv(x, y) is analytic on D.

By assumption, $|f(z)| = k$ and this implies that $u^2 + v^2 = k^2$ for all $(x, y) \in D$.

Case 1: $k = 0$. Then, $u^2 + v^2 = 0$, so $u = v = 0$ everywhere — both are constant.

Case 2: $k \neq 0$. As u and v are harmonic (and thus have continuous first-order partial derivatives), we differentiate $u^2 + v^2 = k^2$ with respect to $x$ and $y$ and we get: $2u\frac{\partial u}{\partial x} + 2v\frac{\partial v}{\partial x} = 0$, $2u\frac{\partial u}{\partial y} + 2v\frac{\partial v}{\partial y} = 0$

$2u u_x + 2v v_x = 0, \qquad 2u\,u_y + 2v\,v_y = 0.$

Applying the Cauchy–Riemann equations ($v_x = -u_y$, $v_y = u_x$) and dividing by 2: $\begin{cases} u\,u_x - v\,u_y = 0, \\ u\,u_y + v\,u_x = 0. \end{cases}$

This is a homogeneous linear system in $u_x$ and $u_y$ with coefficient matrix determinant $u^2 + v^2 = k^2 \neq 0$. The only solution is: $u_x = 0 \qquad \text{and} \qquad u_y = 0.$

This is a homogeneous linear system of two equations and two variables, and the determinant of the coefficient matrix is not zero, the system has only one solution; that one solution is the trivial solution.

Since $D$ is connected and $u$ has vanishing partial derivatives, $u$ is constant on $D$. By the Cauchy–Riemann equations, $v_x = -u_y = 0$ and $v_y = u_x = 0$, so $v$ is also constant. $\blacksquare$

Theorem. Zero Derivative Implies Constancy. Let $u(x, y)$ be harmonic on a domain $D$ and $v$ a harmonic conjugate of $u$. If $f'(z) = 0$ for all $z \in D$, where $f(z) = u + iv$, then $u$ and $v$ are both constant on $D$.

Proof.

The function $f = u + iv$ is analytic on $D$ (since $v$ is a harmonic conjugate of $u$). The complex derivative is: $f'(z) = \frac{\partial u}{\partial x} + i\frac{\partial v}{\partial x}.$

If $f'(z) = 0$ for all $z \in D$, then $u_x = 0$ and $v_x = 0$ throughout $D$. By the Cauchy–Riemann equations: $v_y = u_x = 0, \qquad u_y = -v_x = 0.$

All four partial derivatives vanish identically. Since $D$ is connected, both $u$ and $v$ are constant. $\blacksquare$

Why Zero Gradient on a Connected Domain Implies Constancy

Both theorems above rely on the following foundational result from multivariable calculus.

Theorem. If $u: D \to \mathbb{R}$ is a differentiable function on a connected domain $D \subseteq \mathbb{R}^n$ such that $\frac{\partial u}{\partial x_i} = 0$ for all $i = 1, 2, \ldots, n$ and all points in $D$, then $u$ is constant on $D$.

The crucial point is that connectedness bridges the gap from local behavior (the function doesn’t change in any small neighborhood) to global behavior (the function has the same value throughout the entire domain).

Step 1: $u$ is locally constant.

If $\nabla u = 0$ at every point, then by the Mean Value Theorem, $u$ is locally constant around each point.

Recall (Mean Value Theorem). If $f: [a, b] \to \mathbb{R}$ is continuous on $[a, b]$ and differentiable on $(a, b)$, then there exists $c \in (a, b)$ such that $f(b) - f(a) = f'(c)(b - a)$.

For any two points $P_1$ and $P_2$ in a small convex neighborhood within $D$:

  1. Parametrize the line segment: $\gamma(t) = (1-t)P_1 + tP_2$ for $t \in [0, 1]$. This is just the straight line from $P_1$ to $P_2$. $\gamma'(t) = P_2 - P_1.$
  2. Define a single-variable function $g(t) = u(\gamma(t))$, so g is the restriction of u to that line segment.
  3. By hyphotesis, $\frac{\partial u}{\partial x_i} = 0 \quad \text{everywhere in } D.$ So at every point $x\in D$, $\nabla u(x) = (0,0,\ldots,0)$. In particular, at the point $\gamma(t)$, $\nabla u(\gamma(t)) = \mathbf{0}.$
  4. By the chain rule: $g'(t) = \nabla u(\gamma(t)) \cdot \gamma'(t) = \nabla u(\gamma(t)) \cdot (P_2 - P_1) = \mathbf{0} \cdot (P_2 - P_1) = 0$.
  5. By the (real) Mean Value Theorem: $g(1) - g(0) = g'(c) \cdot 1 = 0 \implies g(1) = g(0)$.
  6. Therefore $u(P_2) = u(P_1)$. So any two points in a small convex neighborhood have the same value.

More precisely, this uses the multivariable Mean Value Theorem: if $u$ is differentiable on a convex set and $\nabla u(\mathbf{c}) = 0$ for all $\mathbf{c}$, then $u(\mathbf{b}) - u(\mathbf{a}) = \nabla u(\mathbf{c}) \cdot (\mathbf{b} - \mathbf{a}) = 0$ for some $\mathbf{c}$ on the segment from $\mathbf{a}$ to $\mathbf{b}$.

Step 2: Global extension via connectedness.

  1. Fix any point $a \in D$ and define $S = \{x \in D : u(x) = u(a)\}$.
  2. $S$ is open: For any $x \in S$, since $u$ is locally constant, there exists a neighborhood of $x$ where $u \equiv u(a)$, so this neighborhood lies in $S$.
  3. $S$ is closed in $D$: If $\{x_n\} \subset S$ converges to some $x \in D$, then $u(x) =[\text{u is continuous}] \lim u(x_n) =[\{x_n\} \subset S, u(x_n) = u(a)] \lim u(a) = u(a)$, so $x \in S$.
  4. $S \neq \emptyset$ since $a \in S$.
  5. Since $D$ is connected and $S$ is a non-empty subset that is both open and closed in $D$, we must have $S = D$.

Recall (Connectedness). A topological space $D$ is disconnected if it can be written as $D = U \cup V$ where $U$ and $V$ are disjoint, non-empty, open subsets. If no such decomposition exists, $D$ is connected. In a connected space, the only subsets that are simultaneously open and closed (“clopen”) are $\emptyset$ and $D$ itself. This is precisely why $S = D$: if $S$ were a proper non-empty clopen subset, then $S$ and $D \setminus S$ would disconnect $D$. $\blacksquare$

Harmonic functions

Exercises

Exercise. Show that u(x, y) = xy³ -x³y is a harmonic function and find the harmonic conjugate of u(x, y)

First, let’s demonstrate that u(x, y) = xy³ -x³y is indeed a harmonic function.

$\frac{\partial u}{\partial x} = y^3 -3x^2y, \frac{\partial u}{\partial y} = 3xy^2 -x^3, \frac{\partial^2 u}{\partial x^2} = -6xy, \frac{\partial^2 u}{\partial y^2} = 6xy, \frac{\partial^2 u}{\partial x^2} + \frac{\partial^2 u}{\partial y^2} = 0$ at any (x, y) ∈ ℂ. Thus, $u(x,y)=xy^3-x^3y$ is harmonic.

Harmonic conjugate via Cauchy–Riemann. Use the Cauchy–Riemann equations for f=u+iv: $\frac{\partial v}{\partial y} = \frac{\partial u}{\partial x} \text{ (i) } \frac{\partial v}{\partial x} = -\frac{\partial u}{\partial y} \text{ (ii) }$

From (i): $\frac{\partial v}{\partial y} = y^3 -3x^2y$. Integrate $\frac{\partial v}{\partial y}$ with respect to y: $v = \int (y^3 -3x^2y)dy + g(x) = \frac{y^4}{4}-\frac{3x^2y^2}{2}+ g(x)$ where g(x) is a function of x.

From (ii), differentiate v with respect to x and match $\frac{\partial v}{\partial x}$: $-3xy^2 + g'(x) = -3xy^2 +x^3 \leadsto g'(x) = x^3 \leadsto g(x) = \frac{x^4}{4} + C$ where C is a constant of integration.

Therefore, a harmonic conjugate is, $v = \frac{y^4}{4}-\frac{3x^2y^2}{2}+ \frac{x^4}{4} + C$

Exercise. Find an analytic function u + iv given that its imaginary part is v(x, y) = $e^ysin(x)$

Compute the partial derivatives of v(x, y): $\frac{\partial v}{\partial x} = e^ycos(x), \frac{\partial v}{\partial y} = e^ysin(x)$

Check for harmonicity: $\frac{\partial^2 v}{\partial x^2} = -e^ysin(x), \frac{\partial^2 v}{\partial x^2} = e^ysin(x), \nabla^2 v = \frac{\partial^2 v}{\partial x^2} + \frac{\partial^2 v}{\partial y^2} = -e^ysin(x) + e^ysin(x) = 0.$ Use the Cauchy-Riemann equations to find u(x,y): For a function f(z) = u(x, y) + iv(x, y) to be analytic, it must satisfy the Cauchy-Riemann equations: $\frac{\partial v}{\partial y} = \frac{\partial u}{\partial x} \text{ (i) } \frac{\partial v}{\partial x} = -\frac{\partial u}{\partial y} \text{ (ii) }$

From (i): $\frac{\partial u}{\partial x} = e^ysin(x)$. Integrate $\frac{\partial u}{\partial x}$ with respect to x: $u(x, y) = \int (e^ysin(x))dx + g(y) = -e^ycos(x) + g(y)$. Here, g(y) is an arbitrary function of y, arising from the integration.

From (ii) differentiate our expression with respect to y and match $\frac{\partial v}{\partial x}$: $\frac{\partial u}{\partial y} = -e^ycos(x) + g'(y) = -e^ycos(x) \leadsto g'(y) = 0 \leadsto g(y) = C$, so g(y) is a real constant.

Now we have: u(x, y) = $-e^ycos(x) + C$. Thus, the analytic function is: $f(z) = u(x, y) + iv(x, y) = -e^ycos(x) + C + i(e^ysin(x))$.

Or, more compactly: $f(z) = C + e^y(-\cos(x) + i \sin(x)) =[-\cos(x)+i\sin(x)=-e^{-ix}] C + e^y·(-e^{-ix})$. Since $e^y e^{-ix} = e^{y - ix} \leadsto f(z) = C - e^{y - ix}$. Since y -ix = -iz, we conclude: $\boxed{f(z) = C - e^{-iz}}$

Bitcoin donation

JustToThePoint Copyright © 2011 - 2026 Anawim. ALL RIGHTS RESERVED. Bilingual e-books, articles, and videos to help your child and your entire family succeed, develop a healthy lifestyle, and have a lot of fun. Social Issues, Join us.

This website uses cookies to improve your navigation experience.
By continuing, you are consenting to our use of cookies, in accordance with our Cookies Policy and Website Terms and Conditions of use.