Find the equation of the circle with radius $3$ whose center lies in the first quadrant and is tangent both to the lines $y=x$ and $y=2x$
My solution is as follows
Let $(x_1,y_1)$ and $(x_2,y_2)$ be the points of contact with resp. tangents $y=2x$ and $y=x$:
The two families of circles are
${x^2} - 2x{x_1} + {x_1}^2 + {y^2} - 2y{y_1} + {y_1}^2 + L\left( {y - 2x} \right) = 0 \Rightarrow \\{x^2} + {y^2} - 2x\left( {{x_1} + L} \right) - 2y\left( {{y_1} - \frac{L}{2}} \right) + {x_1}^2 + {y_1}^2 = 0$
&
${x^2} - 2x{x_2} + {x_2}^2 + {y^2} - 2y{y_2} + {y_2}^2 + M\left( {y - x} \right) = 0 \Rightarrow \\{x^2} + {y^2} - 2x\left( {{x_2} + \frac{M}{2}} \right) - 2y\left( {{y_2} - \frac{M}{2}} \right) + {x_2}^2 + {y_2}^2 = 0$
Both circles are similar, how do we equate the values ?

For two given lines that are not parallel to each other, the angle bisector is given by
$ \displaystyle \frac{Ax+By+C}{\sqrt{A^2+B^2}} = \pm \frac{ax+by+c}{\sqrt{a^2+b^2}}$
where the given lines are $Ax + By + C =0$ and $ax + by + c =0$
We have lines $y-2x = 0$ and $y-x = 0$ that intersect at the origin.
$ \displaystyle \frac{y-x}{\sqrt{2}} = \pm \frac{y-2x}{\sqrt{5}}$
For internal bisector,
$ \displaystyle \frac{y-x}{\sqrt{2}} = - \frac{y-2x}{\sqrt{5}}$
$\implies \displaystyle y = \frac{2\sqrt2+\sqrt5}{\sqrt2+\sqrt5} x$
$\displaystyle y = \frac{1+\sqrt{10}}{3} x$
As the center of the circle is on this line, its coordinates can be written as $(x_0, \frac{1+\sqrt{10}}{3} x_0)$.
Now perpendicular distance to $y - x = 0$ from the center is $3$.
$ \displaystyle \frac{|\frac{1+\sqrt{10}}{3} x_0 - x_0|}{\sqrt2} = 3$
Solving $ \displaystyle x_0 = \frac{9\sqrt2}{\sqrt{10}-2} = 3 (\sqrt5+\sqrt2), y_0 = 3 (\sqrt5+2\sqrt2)$
And equation of circle is $(x-x_0)^2 + (y-y_0)^2 = 9$