The relation is obtained by applying the dot product of the vectors. Let us consider an arbitrary triangle, and let us direct its sides as shown in Figure 28.
Since \latex{\overrightarrow{AB}=\overrightarrow{CB}-\overrightarrow{CA}}, when squaring this equality we obtain the following:
\latex{\overrightarrow{AB}^2=\left(\overrightarrow{CB}-\overrightarrow{CA}\right)^2=\overrightarrow{CB}^2+\overrightarrow{CA}^2-2\times\overrightarrow{CB}\times\overrightarrow{CA}}.
Based on our notations:
\latex{\overrightarrow{CB}\times\overrightarrow{CA}=\left|\overrightarrow{CB}\right|\times\left|\overrightarrow{CA}\right|\times\cos{\gamma}=ab\times\cos{\gamma}}.
By substituting the expressions into the equation the following is obtained:
This relation can be obtained similarly for any side of the triangle:
\latex{b^2=a^2+c^2-2ac\times\cos{\beta}}.
Based on the cosine rule the distance between the end-points of the hands is:
In the triangle \latex{ ABC } the angle at the vertex \latex{ C } is \latex{21^{\circ}}, thus:
Then in the triangle \latex{ ACD } according to the cosine rule:
This implies the following:
In view of the ratio of the sides let us denote these as follows: \latex{a = 3x,\;\; b = 2x}. Let us write down the cosine rule in terms of the known angle:
It implies the following:
So the lengths of the missing two sides:
In view of these another angle of the triangle can be determined:
The measure of the third angle of the triangle is:

calculated
opposite the longer side
between them
opposite the shorter side





