This example uses only the cosine rule which is also known as the Al Kashi theorem.