[Math] Find the centre of a circle passing through a known point and tangential to two known lines

algebra-precalculusanalytic geometrygeometry

I am trying to find the centre and radius of a circle passing through a known point, and that is also tangential to two known lines.
The only knowns are:

  • Line 1 (x1,y1) (x2,y2)
  • Line 2 (x3,y3) (x4,y4)
  • Known Point (xp,yp)

From that I need to calculate the centre of the circle (x,y).

Any help would be greatly appreciated.

Regards

Martin.

Best Answer

The circle's center would be at the intersection of a line L and a parabola P.

The line L comes from being equidistant from your line 1 and line 2. If these intersect, take the (two) angle bisectors through that point of intersection as line L. If line 1 and line 2 are parallel, take line L to be the parallel line halfway between them.

For parabola P take your known point (xp,yp) that the circle passes through as the focus and say line 1 (or line 2 if convenient) as your directrix. That is, the center of the circle will be equidistant from the known point (xp,yp) and the point of tangency to the directrix, which amounts to affirming the eccentricity 1 of a parabola.

Note that unless the directrix is parallel to an axis, the parabola will be in "general position", which means the equation will be messier than necessary. It probably pays to translate and rotate the coordinates so that the directrix is parallel to (say) the x-axis, and for that matter so that the focus and directrix are equidistant from the origin (so that the parabola will pass through the origin and have a simple form $y = ax^2$).

Added: Since the known point (xp,yp) must lie on the same side of lines 1 and 2 as the circle and its center, choose line L through the intersection of lines 1 and 2 so that it also extends into that portion of the plane.