I'm trying to find the lines tangent to two circles. I've seen several examples but with poorlyy explained methods. Given the circle
$(x-x_{0})^2+(y-y_{0})^2=r_{1}^2$
and the the line equation
$y=ax+b$
one of the method is based on the relation
$(ax_{0}+b-y_{0})^2=(a^2+1)r_{1}^{2}$
Can you tell me what relation is this? How it was obtained? Thank you.
