Simultaneous solving equations

44 Views Asked by At

It is a theorem in geometry that any three non-collinear points determine a circle. Given the three points (x1,y1),(x2,y2),(x3,y3) find a,b,and R for the circle (x-a)^2 +(y - b)^2 =R that passes through them. Notice that the solutions have the same denominator or its square. What does the equation denominator=0 signify for the three points?

1

There are 1 best solutions below

0
On
Clear["Global`*"]

Format[x[n_]] := Subscript[x, n]
Format[y[n_]] := Subscript[y, n]

eqn = (x - a)^2 + (y - b)^2 == R^2;

eqns = eqn /. Transpose[Thread[# -> Array[#, 3]] & /@ {x, y}]

enter image description here

sol = Solve[Append[eqns, R > 0], {a, b, R}, Reals][[1]];

SeedRandom[1234]

pts = Evaluate@Array[{x[#], y[#]} &, 3] = RandomReal[{-10, 10}, {3, 2}]

(* {{7.53217, 0.439285}, {-8.27553, -2.44174}, {-9.76711, 8.54532}} *)

Show[
 ContourPlot @@ ({eqn, {x, a - R - 1, a + R + 1}, {y, b - R - 1, 
      b + R + 1}} /. sol),
 Graphics[{Red, AbsolutePointSize[6],
   Tooltip[Point[#], #] & /@ pts}],
 AxesOrigin -> ({a, b} /. sol),
 Axes -> True,
 PlotLabel -> sol]

enter image description here