How to construct a tangent to a circle between two lines? Given a circle $P$ between two lines $\ell_1, \ell_2$, we want to find a tangent $AB$ to $P$ such that $A\in\ell_2, B\in\ell_1$ and the midpoint of $AB$ is the tangency point.
Is it possible to solve this problem through straightedge and compass?

 A: 
P1. Given a circle $\Gamma$ centered at $O$ and two points $A,B$ outside $\Gamma$, find $C\in\Gamma$ such that the $OC$ line bisects
  the $\widehat{ACB}$ angle.
P2. Given a point $P$ in the first quadrant, find a point $A$ on the positive $y$-axis and a point $B$ on the positive $x$-axis such
  that $AB$ goes through $P$ and $AB$ is as short as possible.

Both these seemingly harmless problems (P1 has been studied by Leonardo Da Vinci) cannot be solved by straightedge and compass alone, because they boils down to finding the roots of a cubic polynomial (P2 is equivalent to the duplication of a cube).
Your problem is similar: we may consider a variable point $A$ on the $\ell_2$ line and draw the tangents from $A$ to the given circle, giving two tangency points $T_1,T_2$. Let $S_1$ be the symmetric of $A$ with respect to $T_1$ and let $S_2$ be the symmetric of $A$ with respect to $T_2$. Then $S_1$ lies on a curve $\gamma_1$, $S_2$ lies on a curve $\gamma_2$ and the problem is equivalent to finding the intersections of $\gamma_1,\gamma_2$ with $\ell_1$. 
Since $\gamma_1$ and $\gamma_2$ are cubic curves, the given problem cannot be solved by straightedge and compass alone.

A: Let $r_1$ and $r_2$ straight lines so that:
$$r_1: y =kx$$
and
$$r_2: y =0.$$
Let $\Gamma$ a circle centered at $C_0=(x_0,y_0)$ with radius $r$.
Solve the following equation for $\theta$ and you will get the point T of tangency.
$$ky_0\sin(\theta)+kr(\sin(\theta))^2=kx_0\cos(\theta)-2y_0\cos(\theta)+rk(\cos(\theta))^2-2r\sin(\theta)\cos(\theta)$$
$$T=(x_0+r\cos(\theta),y_0+r\sin(\theta)).$$
Draw tangent lines at T, and you will get the answer of the problem.
For $x_0=2$, $y_0=1$, $k=1$ and $ r=0.5$, you get $\theta=13.18$ degrees and $\theta=142.38$ degrees.
A: Let $AB$ just be tangent with circle, and their midpoint $M$ goes into a hyperbola which is tangent to the circle. Now we aim to find the tangent point. Not sure if possible (we have two equations but only one unknown value, so can just remove some unnecessary part)
