proof of cosines law
Let , , be the sides of a triangle and , , its angles, respectively. By the projection formula, one may write the equalities
Multiplying the equalities by , and , respectively, they read
Addition of these yields the sum equation
i.e.
which is the cosines law.