Law of cotangents
In trigonometry, the law of cotangents is a relationship among the lengths of the sides of a triangle and the cotangents of the halves of the three angles. Just as three quantities whose equality is expressed by the law of sines are equal to the diameter of the circumscribed circle of the triangle (or to its reciprocal, depending on how the law is expressed), so also the law of cotangents relates the radius of the inscribed circle of a triangle (the inradius) to its sides and angles. Statement
Using the usual notations for a triangle (see the figure at the upper right), where , ,  are the lengths of the three sides, , ,  are the vertices opposite those three respective sides, , ,  are the corresponding angles at those vertices,  is the semiperimeter, that is, , and  is the radius of the inscribed circle, the law of cotangents states that

and furthermore that the inradius is given by

Proof
In the upper figure, the points of tangency of the incircle with the sides of the triangle break the perimeter into 6 segments, in 3 pairs. In each pair the segments are of equal length. For example, the 2 segments adjacent to vertex  are equal. If we pick one segment from each pair, their sum will be the semiperimeter . An example of this is the segments shown in color in the figure. The two segments making up the red line add up to , so the blue segment must be of length . Obviously, the other five segments must also have lengths , , or , as shown in the lower figure. By inspection of the figure, using the definition of the cotangent function, we have

and similarly for the other two angles, proving the first assertion. For the second one—the inradius formula—we start from the general addition formula:
 

Applying to , we obtain:

 
(This is also the triple cotangent identity)

Substituting the values obtained in the first part, we get:

Multiplying through by  gives the value of , proving the second assertion. Some proofs using the law of cotangents
A number of other results can be derived from the law of cotangents. Heron's formula. Note that the area of  triangle  is also divided into 6 smaller triangles, also in 3 pairs, with the triangles in each pair having the same area. For example, the two triangles near vertex , being right triangles of width  and height , each have an area of . So those two triangles together have an area of , and the area  of the whole triangle is therefore  This gives the result  as required. Mollweide's first formula. From the addition formula and the law of cotangents we have  This gives the result  as required. Mollweide's second formula. From the addition formula and the law of cotangents we have  Here, an extra step is required to transform a product into a sum, according to the sum/product formula. This gives the result  as required. The law of tangents can also be derived from this . Other identities called the "law of cotangents" 

The law of cotangents is not as common or well established as the laws of sines, cosines, or tangents, so the same name is sometimes applied to other triangle identities involving cotangents. For example:

The sum of the cotangents of two angles equals the ratio of the side between them to the altitude through the third vertex:

The law of cosines can be expressed in terms of the cotangent instead of the cosine, which brings the triangle's area  into the identity:

Because the three angles of a triangle sum to  the sum of the pairwise products of their cotangents is one:

See also
Law of sines
Law of cosines
Law of tangents
Mollweide's formula
Heron's formula

References

 

Trigonometry
Theorems about triangles