I have been solving a few problems involving circles and various intersecting lines lately. Some are actually pretty complicated. Here is a particular one that takes some effort. (It has to do with the design work of an overpass.)

Question: The point P is the cross point between a line that passes through the center of a circle and a line that is tangential to the circle. The point Q is on the center line whose vertical distance to the tangential line is equal to its horizontal distance to the circle. Show that the angle between the center and the tangential lines is: $$\alpha = \tan^{-1}\left[ \frac{1+s-s\sqrt{2s(1+s)}}{s+(1+s)\ \sqrt{2s(1+s)}} \right]$$ where $s=d/r$ is the ratio of the distance $d$ and the radius of the circle with $d<r$. (It is noted that there are various ways to express the angle depending on setups and real effort may be to show the particular expression of interest given above.)



$$\left.\begin{align} \tan\theta &= \frac{d+r}{d} = \frac{1+s}{s} \\[6pt] \tan\phi &= \frac{\sqrt{2d(d+r)}}{r}=\sqrt{2s(1+s)} \end{align}\right\}\quad\to\quad \tan(\theta-\phi) = \frac{\tan\theta-\tan\phi}{1+\tan\theta\tan\phi} = \cdots$$