The Law of Sines & Law of Cosines

A generic triangle with sides labelled A and B and C, with angles labelled alpha and beta and gamma opposite those sides respectively The law of sines and law of cosines are the names of two formulas that extend what we know about solving right triangles — calculating side-lengths and angle measures — to any general triangle. Among a triangle’s six features (three sides and three internal angles) if we need to know the measures of three of those features typically* we can uniquely determine the entire triangle up to congruence. For a triangle with internal angles measuring \(\alpha\) and \(\beta\) and \(\gamma\) that oppose sides of length \(A\) and \(B\) and \(C\) respectively, we have the law of sines and the law of cosines: \[ \frac{\sin(\alpha)}{A} = \frac{\sin(\beta)}{B} = \frac{\sin(\gamma)}{C} \qquad \qquad C^2 = A^2 + B^2 - 2AB\cos(\gamma) \]

The law of cosines along with the \(\frac{1}{2}AB\sin(\gamma)\) formula for a triangle’s area, leads us to a formula for the area of a triangle strictly in terms of its side-lengths. Letting \(S = \frac{1}{2}(A+B+C),\) a number referred to as the semiperimeter of the triangle, the area of the triangle will be \(\sqrt{S(S-A)(S-B)(S-C)}.\) This is called Heron’s formula.

*Why can we only “typically” determine the triangle up to congruence? There is some nuance, a couple corner cases to consider: