I have recently run into a problem while trying to get the center of a circle from 3 points $A,B,C$ on its circumference.The equations I used for this require to know the slope values of the lines $\overline{AB},\overline{BC}.$ But one of these slope values is infinite/undefined when the $x$-coordinate of $B$ matches that of $A$ or $C$, hence I am not able to find the center. Is there a work around for finding the center purely using only formulas? I need to use them in a computer code.
2026-03-27 06:07:54.1774591674
On
Creating a circle from 3 points on its circumference when the slope of one line is infinity/undefined?
387 Views Asked by Bumbble Comm https://math.techqa.club/user/bumbble-comm/detail At
2
There are 2 best solutions below
0
On
Suppose the points are $A=(a,b), B=(a,c),$ and $C=(d,e)$
So line $AB$ has slope $\frac{c-b}{a-a} = \frac{c-b}0 = \infty$. That's fine. The equation for the line is $x = a$. The perpendicular bisector will have a slope of $0$ and the midpoint is $(a,\frac{b+c}2)$ so the formula of the perpendicular bisector is $y = \frac{b+c}2$.
Likewise if you have to points with a slope of $0$ then the perpendicular bisector will have infinite slope and the equation will be $x = k$ (where $k$ is the $x$ value of the midpoint).
If the slope is zero, you know the $y$ coordinate of the center because two of your points have the same $x$ coordinate and the bisector is the line halfway between them. Similarly if the slope is infinite, you know the $x$ coordinate of the center. You can use this $x$ or $y$ in the line bisecting the segment between the third point and one of the two you have used.