Professional Documents
Culture Documents
Circle Tangent Intersect Proof
Circle Tangent Intersect Proof
Circle Tangent Intersect Proof
Derivation of an equation that calculates the the general equation of an implicit line through a
point (not on the circle) that is tangent to a general circle:
P (x, y)
r
C(xc , yc )
J(xj , yj )
ax + by + c = 0
c then obtained from the fact that the tangent passes through J:
c = −axj − byj
Proof:
1
P (x, y)
θ r
C(xc , yc )
J(xj , yj )
We can also define a vector n which is from the centre C to the point of intersection P (x, y) of the
tangent with the circle.
By definition this vector n is perpendicular the the tangent as all tangents to a circle are per-
pendicular to a line from the center. 1
n therefore gives the parameters for the a and b coefficients of the implicit line equation of the
tangent. So we may write n = (a, b).
a2 + b2 = 1 (2)
n.t
cos θ =
knkktk
axt + byt
= (3)
ktk
Now there also exist a right-hand triangle formed by points C,P and J. (Right angle at P ).
2
r
cos θ = (4)
ktk
axt + byt r
=
ktk ktk
axt + byt = r (5)
p
a= 1 − b2 (6)
p
1 − b2 (xt ) + byt = r
p
1 − b2 (xt ) = r − byt
(7)
3
Let us now simplify the square root part of Eqn. eqn:bsol:
If we now substitute for xt = xc − xj and yt = yc − yj we get the required solution for b in Eqn. 1.
Well some rearranging of the ± sign (since as we are using vectors we can have only need to preserve
the respective signs of the vector we can rearrange to get the formula as given in Programmer’s
Geometry Text Book (Page 29):
If we now take b from Eqn. 11 and substituting d = x2t + yt2 − r2 and j = x2t + yt2 we may write
p
b as
ryt ± xt d
b= (12)
j
ryt ± xt d
axt + ( )yt = r
j
ryt ∓ xt d
axt + = r − ( )yt
j
rj − ryt2 ∓ xt yt d
axt + =
j
4
rj − ryt2 ∓ xt yt d
a=
jxt
(13)
Substitue for j in top line (and then divide out the xt and then sub for xt , yt , dand j (bottom line):
Well some rearranging of the ± sign (since as we are using vectors we can have only need to preserve
the respective signs of the vector we can rearrange to get the formula as given in Programmer’s
Geometry Text Book (Page 29):
c then obtained from the fact that the tangent passes through J:
c = −axj − byj
Q.E.D.