Law of cosines . The power of the point with respect to the circle is equal to both and . Therefore, which is the law of cosines. Using algebraic measures for line segments (allowing negative numbers as lengths of segments) the case of obtuse angle () and acute angle () can be treated simultaneously. By using the law of sines and knowing that the angles of a triangle must sum to 180 degrees, we have the following system of equations (the three unknowns are the angles): Then, by using the third equation of the system, we obtain a system of two equations in
Incircle and excircles of a triangle using the side lengths of the triangle relative to the perimeter—i.e., using the barycentric coordinates given above, normalized to sum to unity—as weights. (The weights are positive so the incenter lies inside the triangle as stated above.) If the three vertices are located at formula_14, formula_15, and formula_16, and the sides opposite these vertices have corresponding lengths formula_7, formula_8, and formula_9, then the incenter is at Denoting the incenter of triangle "ABC" as "I", the distances from the incenter to the vertices combined with the lengths of the triangle sides obey the equation Additionally, where "R" and "r" are the