A tangent to a circle is a line that meets the circle at exactly one point (technically, two coincident points), called the point of contact. Because the radius drawn to the point of contact is always perpendicular to the tangent there, the tangent's slope is the negative reciprocal of the radius's slope — and carrying this through algebraically for the standard circle x2+y2=r2 gives the tangent at a point (x1,y1) on the circle as
xx1+yy1=r2
For the general-form circle x2+y2+2gx+2fy+c=0, the same idea gives xx1+yy1+g(x+x1)+f(y+y1)+c=0 — rememberable as the substitution rule "x2→xx1, 2x→x+x1, y2→yy1, 2y→y+y1" applied to the circle's own equation. In parametric form, the tangent at (rcosθ1,rsinθ1) is xcosθ1+ysinθ1=r. These formulas apply whenever the point of contact is already known to lie on the circle; when a line is only claimed to be tangent (its point of contact not given), tangency is …