Take the punctured complex plane
and
In polar coordinates, , so
Thus is harmonic on .
If for a holomorphic function , the calculation from part (a) would give
The integral of a derivative around a closed curve is zero, whereas the residue theorem gives
This contradiction proves that no such exists. It is precisely the log modulus has no global harmonic conjugate on the punctured plane obstruction.
The derivative of an analytic function must be independent of the direction of approach. Taking a real increment gives ; taking an imaginary increment gives
Equality of real and imaginary parts proves the Cauchy-Riemann equations:
A real harmonic function is a twice continuously differentiable function whose Laplacian vanishes. For the given logarithmic function and ,
It is therefore harmonic everywhere on the punctured complex plane.
On any domain admitting a branch of the complex logarithm, choose
Its derivatives are and , as required. For example, the principal complex logarithm gives such a harmonic conjugate on the plane cut along the negative real axis.
There is no single-valued harmonic conjugate on the whole punctured plane. Indeed its putative differential would satisfy
whereas a globally defined function has zero integral of its differential around a closed curve. This is the log modulus has no global harmonic conjugate on the punctured plane obstruction. Thus the conjugate requested in the question must be interpreted locally or on a cut plane.