What is the length of tangent from a point P(x1,y1) to the circle x2+y2+2gx+2fy+c=0.
Let O be the centre of the circle and T be tha point at which tangent is drawn.
△PTO is right angled triangle.
Circles equation is,
x2+y2+2gh+2fy+c=0
(x+g)2+(y+f)2−g2−f2+c=0
i.e.,(x+g)2+(y+f)2=g2+f2−c
∴ Comparing with the standard form.
Centre ≡(−g,−f)
Radius≡√g2+f2−c
Since △PTO is right angled
PT2=PO2−OT2
=√(x1+g)2+(y1+f)22−√g2+f2−c2
=(x1+g)2+(y1+f)2−(g2+f2−c)
=x21+y21+2gx1+2fy1+c
∴PT=√x21+y21+2gx1+2fy1+c