The equation of a tangent to a circle

Vary the radius of the circle with r and drag the point P.

Information: The equation of a tangent to a circle