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
Schwarz triangle function case the region in the sector between the radii "OA" and "OB" outside the edge "AB" is convex as the intersection of three convex regions. By induction the angles at "A" and "B" are greater than or equal to /3. Thus the geodesics to "C" from "A" and "B" start off in the region; by convexity, the triangle "ABC" lies wholly inside the region. The quadrilateral "OACB" has all its angles less than (since "OAB" is a geodesic triangle), so is convex. Hence the radius "OC" lies inside the angle of the triangle "ABC" near "C". Thus the angles between