Also called the law of cosines, the Al-Kashi's theorem is a generalization of the Pythagorean theorem for any triangle. It is expressed as follows:
In a context of an ordinary triangle \(\{a, b, c\}\), which every angle \(\alpha, \beta, \gamma \) in front of its correspondant side, such as:
$$ \left \{ \begin{gather*} \alpha \enspace opposed \enspace to \enspace a \\ \beta \enspace opposed \enspace to \enspace b \\ \gamma \enspace opposed \enspace to \enspace c \end{gather*} \right \} $$
and such as the following figure:
We do have the three following relations:
$$ a^2 = b^2 + c^2 - 2bc.cos(\alpha) \qquad (Al-Kashi) $$
$$ b^2 = a^2 + c^2 - 2ac.cos(\beta) \qquad (Al-Kashi^*) $$
$$ c^2 = a^2 + b^2 - 2ab.cos(\gamma) \qquad (Al-Kashi^{**}) $$
In all these demonstrations, we will demonstrate the theorem for only one of the three sides. Afterward the two other demonstrations are trivial.
To demonstrate the theorem, we have projected the height \( h_c \) on the side \( c \) to obtain the following figure:
In the small triangle \(\{a, h_c, m\}\), the Pythagorean theorem gives us:
Now, in the other triangle \(\{b, h_c, n\}\),
But also,
Injecting \((2)\) and \((3)\) into \((1)\), we do have now:
And finally,
$$ a^2 = b^2 + c^2 - 2bc.cos(\alpha) \qquad (Al-Kashi) $$
In the same way, in the small triangle \(\{a, h_c, m\}\), the Pythagorean theorem gives us that:
Now, in the other triangle \(\{h_c, n, c\}\),
But also,
Injecting \((5)\) and \((6)\) into \((4)\), we do have now:
$$ a^2 = b^2 + c^2 - 2bc.cos(\alpha) \qquad (Al-Kashi) $$
Considering the lengths \(a, b, c\) as three vectors, and such as the follwing figure:
Then, we do have applying the Chasles relation:
We know from the squared vector property that:
So,
Injecting \((7)\) into it, we now have:
Likewise, with the scalar product remarkable identities, we do have the following property:
So in our case,
$$ a^2 = b^2 + c^2 - 2bc.cos(\alpha) \qquad (Al-Kashi) $$
We demonstrated the first formula of the theorem:
$$ a^2 = b^2 + c^2 -2bc.cos(\alpha) \qquad (Al-Kashi)$$
Repeating the same process again on the other sides of the triangle we can retrieve two other expressions.
$$ b^2 = a^2 + c^2 - 2ac.cos(\beta) \qquad (Al-Kashi^*) $$
$$ c^2 = a^2 + c^2 - 2ab.cos(\gamma) \qquad (Al-Kashi^{**}) $$