Harmonic parts. Write the holomorphic function as . The Cauchy-Riemann equations say and . Equality of mixed partial derivatives therefore gives
Thus both the real and imaginary parts are harmonic functions and satisfy two-dimensional Laplace's equation.
Single-valued logarithm. A convenient choice is
using the principal logarithm for each term. Its branch cuts in the plane are and . The branch points are and : going once around the first adds , while going once around the second subtracts . Removing the two exterior rays makes this a consistent branch of a multivalued function and in particular leaves the whole open unit disk available.
Potential inside the cylinder. Put with . Multiplication by gives
The denominator is positive and the real part of the numerator is positive. Thus its argument lies strictly between and , and
As , this tends to on the upper open semicircle and on the lower open semicircle. Scale the imaginary part to obtain
It is a harmonic function, has the required boundary values, and gives . The two joining points of the boundary arcs have discontinuous boundary data, so no common continuous boundary value is demanded there. Along the real diameter, including radial approaches to either joining point, the displayed solution is zero. This is the disk potential with two semicircular boundary values.
Figure 1.
Harmonic potential inside a disk with opposite semicircle boundary values
. The upper boundary has potential +V0 and the lower boundary -V0. Contours and colour show Phi/V0; the two joining points are excluded from the prescribed boundary values. Details.
For a second check, the Taylor series of the logarithms gives . Taking the imaginary part yields the Fourier series
whose boundary limit is exactly the required alternating pair of constant semicircle values.
For Laplace's equation in polar coordinates, put . Separation of variables gives and . Periodicity selects integers . For , the radial solutions are ; for , they are , while a term linear in is excluded by periodicity. Their superposition is
Inside the disk, boundedness at the origin removes the logarithm and all negative powers. The separately biased semicircular boundary values have mean , no nonconstant cosine coefficients, and sine coefficients for odd , zero for even . The disk potential with two semicircular boundary values is therefore
Put . The odd logarithmic series sums to . The quotient has positive real part for , so its argument is the principal arctangent of . Taking imaginary parts gives
The boundary limits away from the two voltage jumps are . Along the diameter through a jump the value is the mean; incompatible adjacent boundary limits prevent a continuous extension at the junctions.
Figure 1.
Harmonic potential inside a disk with two semicircular boundary voltages
. Original normalized example with upper voltage and lower voltage . White circles mark the two boundary jumps; the black curves are equipotentials. Details.