How does the law of cosines help solve triangles?

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

The law of cosines, also known as the cosine rule, is a generalization of the Pythagorean theorem that relates the lengths of the sides of any triangle. It is expressed by the formula:

c2=a2+b2−2abcosC

In this equation, a, b, and c represent the lengths of the sides, and C is the angle opposite side c. This law is a powerful tool for solving triangles when standard right-triangle trigonometry is insufficient.12

It is primarily used to solve for unknown components in two specific scenarios:

  • Side-Angle-Side (SAS): When you know the lengths of two sides and the measure of the angle between them, you can use the formula to calculate the length of the third side.12
  • Side-Side-Side (SSS): When you know the lengths of all three sides, you can rearrange the formula to solve for any of the triangle's interior angles.12

By providing a consistent relationship between sides and angles, the law of cosines allows for the precise calculation of dimensions in any plane triangle.2