How can the law of cosines be used when all three side lengths of a triangle are known?

Created from Britannica articles using AI. AI can make mistakes, so verify using Britannica articles.

When all three side lengths of a triangle are known (the SSS case), the law of cosines is used to calculate the measure of any of the triangle's interior angles.12

The law is expressed by the following formulas, where a, b, and c are the side lengths and A, B, and C are the angles opposite those sides, respectively:3

  • a2=b2+c2−2bccosA
  • b2=a2+c2−2accosB
  • c2=a2+b2−2abcosC

To find an unknown angle, such as angle C, you rearrange the formula to solve for the cosine of that angle:

cosC=a2+b2−c22ab

By substituting the known lengths of sides a, b, and c into this equation, you can determine the value of cosC and subsequently find the angle C using the inverse cosine function. This process can be repeated for the other angles as needed to fully solve the triangle.4