Length of the tangent drawn from external point (x₁, y₁) to the circle S = 0. Valid only when S₁ > 0 (point outside the circle).
Let the circle S ≡ x 2 + y 2 + 2 g x + 2 f y + c = 0 S \equiv x^2 + y^2 + 2gx + 2fy + c = 0 S ≡ x 2 + y 2 + 2 g x + 2 f y + c = 0 have centre C ( − g , − f ) C(-g, -f) C ( − g , − f ) and radius r = g 2 + f 2 − c r = \sqrt{g^2 + f^2 - c} r = g 2 + f 2 − c .
Let P ( x 1 , y 1 ) P(x_1, y_1) P ( x 1 , y 1 ) be an external point and T T T the point of tangency. The radius C T CT C T is perpendicular to the tangent P T PT P T , forming a right angle at T T T .
In right triangle P C T PCT P C T :
P T 2 = P C 2 − C T 2 = P C 2 − r 2 PT^2 = PC^2 - CT^2 = PC^2 - r^2 P T 2 = P C 2 − C T 2 = P C 2 − r 2
Now, P C 2 = ( x 1 + g ) 2 + ( y 1 + f ) 2 = x 1 2 + 2 g x 1 + g 2 + y 1 2 + 2 f y 1 + f 2 PC^2 = (x_1 + g)^2 + (y_1 + f)^2 = x_1^2 + 2gx_1 + g^2 + y_1^2 + 2fy_1 + f^2 P C 2 = ( x 1 + g ) 2 + ( y 1 + f ) 2 = x 1 2 + 2 g x 1 + g 2 + y 1 2 + 2 f y 1 + f 2 .
Therefore:
P T 2 = x 1 2 + y 1 2 + 2 g x 1 + 2 f y 1 + g 2 + f 2 − ( g 2 + f 2 − c ) = S 1 PT^2 = x_1^2 + y_1^2 + 2gx_1 + 2fy_1 + g^2 + f^2 - (g^2 + f^2 - c) = S_1 P T 2 = x 1 2 + y 1 2 + 2 g x 1 + 2 f y 1 + g 2 + f 2 − ( g 2 + f 2 − c ) = S 1
P T = S 1 PT = \sqrt{S_1} P T = S 1
Both tangents from an external point have equal length (since P T 2 = P T ′ 2 = S 1 PT^2 = PT'^2 = S_1 P T 2 = P T ′2 = S 1 ). This is a standard geometric result: tangents from an external point are equal.
The formula requires S 1 > 0 S_1 > 0 S 1 > 0 , confirming P P P is exterior to the circle.