# First Fermat Point and Isogonic Center of a Triangle

This Demonstration plots the first Fermat point (red) and first isogonic center (yellow) of a triangle . You can drag the triangle vertices. When and are both inside the triangle, they coincide.
Let be the sum of the distances from a point to the three vertices of . Then minimizes . The contours show the level lines of .

### DETAILS

If all the vertex angles are less than 120º, ; otherwise is the obtuse-angled vertex . The use of a closed formula removes the need for such conditional checks. is also the 2D geometric median  of the triangle vertices, which as shown here can be calculated by computing two scalar (1D) medians on the corresponding barycentric coordinates . A closed formula for the median of three scalars is also introduced to remove implicit conditional checks.
References
 Wikipedia. "Fermat Point." (Jul 13, 2020) en.wikipedia.org/wiki/Fermat_point.
 C. Kimberling. "X(13)." Encyclopedia of Triangle Centers. (Jul 13, 2020) faculty.evansville.edu/ck6/encyclopedia/ETC.html.
 Wikipedia. "Geometric Median." (Jul 13, 2020) en.wikipedia.org/wiki/Geometric_median.
 Wikipedia. "Barycentric Coordinates." (Jul 13, 2020) en.wikipedia.org/wiki/Barycentric_coordinate_system.

### PERMANENT CITATION

 Share: Embed Interactive Demonstration New! Just copy and paste this snippet of JavaScript code into your website or blog to put the live Demonstration on your site. More details » Download Demonstration as CDF » Download Author Code »(preview ») Files require Wolfram CDF Player or Mathematica.

• Sliding to the Fermat PointSijia Liang and Bruce Atwood
• Circumcircles Intersecting at the First Fermat PointJay Warendorff
• Fermat PointChris Boucher
• Spieker Center Triangle ConstructionTheodore Gray
• A Triangle Formed by the Centers of Three Nine-Point CirclesJay Warendorff
• A First Morley Triangle ConcurrenceJay Warendorff
• Point in TriangleMichael John Twardos
• The Center and Radius of the Nine-Point CircleJay Warendorff
• Pedal Triangles of Isogonal ConjugatesJay Warendorff
• A Collinearity between the Nine-Point Center, the Foot of an Altitude, and a MidpointJay Warendorff