If α, β, and γ are the angles of any (right, acute, or obtuse) triangle, and a, b, and c are the lengths of the three sides opposite α, β, and γ, respectively, then
These three formulas are called the Law of Cosines. Each follows from the distance formula and is illustrated in Figure 1 .
| ||
|
Figure 1
Reference triangle for Law of Cosines.