<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">\documentclass[a4paper,12pt]{article}
\newcommand{\ds}{\displaystyle}
\newcommand{\un}{\underline}
\newcommand{\undb}{\underbrace}
\newcommand{\pl}{\partial}
\parindent=0pt
\begin{document}

{\bf Question}

By considering the function $A\log(z)+B$, find a harmonic function
in the upper half plane $Im(z)&gt;0$ which takes the prescribed
values

$$\phi(x,0^+)=\left\{\begin{array}{l} 1,x&gt;0\\ 0,x&lt;0
\end{array}\right.$$

\medskip

{\bf Answer}

Let $Phi=A\log z+B$, where $\Phi=Phi(z),\ z=x+iy$. Assume $A$ and
$B$ are real.

Then

$Re(\Phi)=A\log(x^2+y^2)^{\frac{1}{2}}$

$Im(\Phi)=A\arg(z)+B=\arctan\left(\ds\frac{y}{x}\right)\times A+B$
fro \un{$y&gt;0$}

$\Phi$ is analytic except at $z=0$ (and along a cut from there
which can be taken along negative imaginary axis). Thus $Re(\Phi)$
and $Im(\Phi)$ are harmonic in $Im(z)&gt;0$.

If $\phi(x,o^+)=\left\{\begin{array}{l} 1, x&gt;0\\ 0, x&lt;0
\end{array} \right.$

the obvious choice is $Im(\Phi)$.

Why?

Well

\begin{eqnarray*} Im(\Phi) &amp; = &amp; A\theta+B\\
\theta &amp; = &amp; \arctan\left(\ds\frac{y}{x}\right) \end{eqnarray*}
(1)

So for $\begin{array}{l} x&gt;0,\ y=0,\ \theta=0\\ x&lt;0,\ y=0,\
\theta=\pi \end{array}$.

Thus

$Im(\Phi)=\left\{\begin{array} {ll} B &amp; x&gt;0,\ y=0\\ A\pi+B &amp; x&lt;0,\
y=0 \end{array} \right.$ (2)

Compare (1) and (2) to see $B=1,\ A=\ds\frac{-1}{\pi}$.

Thus harmonic function is:

$$\un{\phi(x,y)=1-\ds\frac{1}{\pi}\arctan\left(\ds\frac{y}{x}\right)}$$

This is \un{unique}.


\end{document}
</pre></body></html>