Law of cosines and law of sines
The two laws in this topic are the main tools for working with triangles that are not right angles. Both are demonstrated by reducing the problem to right triangles: plotting a height, in the first, and a diameter, in the second.
The story In geometric form, the law of cosines is already found in Euclid’s The Elements (book II, propositions 12 and 13), which compare the square on the opposite side to an obtuse or acute angle with the sum of the squares of the other two — without talking about cosine, of course. In trigonometric form, it appears in Miftah al-hisab (“The Key to Arithmetic”, 1427) of the Persian astronomer Jamshid al-Kashi, and that is why the French call it Al-Kashi’s theorem. The law of sines for flat triangles was enunciated and demonstrated in the 13th century by Nasir al-Din al-Tusi, in his Treatise on the quadrilateral, the first work to treat trigonometry as a discipline independent of astronomy (see chapter III).