I don't know how to approach this problem: Let $P$ be the complex plane; the function $$z'(z)=\frac{az+b}{cz+d}$$ maps $P\rightarrow P$, where $z'$, $z$ are complex variables and ($a$, $b$, $c$, $d$) are complex constants. What is the function $z'(z)$ that maps the superior semi-plane defined by $\Re(z)>0$, to the interior of a circle of radius 1 defined by $|z'|<1$? What is the inverse of this function $z(z')$ (maps the interior of a circle of radius 1 to the superior semi-plane)?
I would appreciate any relevant hints to find the ($a$, $b$, $c$, $d$) needed for such a transformation (for example, I find that the condition $|z'|<1$ yields $|z|>|\frac{b-d}{c-a}|$).
A complex number $z$ is in the upper half space iff its distance to $i$ is strictly smaller than its distance to $-i$, iff $\vert {z-i\over z+i} \vert <1$. Therefore
$h(z)={z-i\over z+i}$ does the job, as $ z\in \cal H \iff \vert h(z) \vert <1 \iff h(z)\in D $
You can replace $i$ by any complex number $z_0$ with positive imaginary part, and $h$ by $z-z_0\over z-{\bar z_0}$.