The line which connects a Point $x\in\mathbb{R}\subset\mathbb{C}$ with $i$ intersects the unit circle in one Point. This Point shall be called $\sigma(x)$. Now I Need to find a closed form for $\sigma(x)$. There are hints and a solution but I don't understand neither. Hope somebody can explain why the hints are true and how one can derive the solution from them.
Let $\sigma(x)=\xi+i\eta $
$\xi$ is the real part and $\eta$ is the immaginary part.
The hints are $\xi:x=(1-\eta):1$
and
$\xi^2+\eta^2=1$
I understand the second hint because $\sigma(x)$ must be on the unit circle but not the first.
So in the picture below why is $a:b=c:d$. Is there a proof that uses congruencies?
And finally with those hints in mind how can I derive the solution that
$\sigma(x)=\frac{2x+i(x^2-1)}{x^2+1}$
?

