-4

Circle center : Cx,Cy

Circle radius : a

Point from which we need to draw a tangent line : Px,Py

I need the formula to find the two tangents (t1x, t1y) and (t2x,t2y) given all the above.

  • Hint $(x-x_c)^2+ (y-y_c)^2=a^2 $ you need to format using mathjax and show what you have done so far. – Karl Apr 22 '18 at 18:08
  • I understand the property of Pythagoras theorem. But that's not sufficient for me. I'm lost there. Is there any simpler solution using vector algebra or something to finding the equation of two lines and then solving equation of two straight lines twice to find the two tangents? I've to eventually write a program for this so it's better if it's optimal. – cegprakash Apr 22 '18 at 18:12
  • https://math.stackexchange.com/questions/543496/how-to-find-the-equation-of-a-line-tangent-a-circle-and-a-given-point-outside-of this may help – Karl Apr 22 '18 at 18:21
  • Karl : I don't understand how (x−xc)2+(y−yc)2=a2 – cegprakash Apr 22 '18 at 18:24
  • it is the pythagoras' theorem. – Karl Apr 22 '18 at 18:27

1 Answers1

0

Given that $$(x-x_c)^2+(y-y_c)^2=r^2$$ and a point $$P(x_0,y_0)$$ then the line through this point is given by $$y=m(x-x_0)+y_0$$ plug this in the equation of the circle to determine $m$