Law of Cosines
Generalises the Pythagorean theorem to any triangle: c² = a² + b² − 2ab·cos(C). Essential for solving triangles without a right angle.
c² = 5² + 7² − 35.0 = 39.0→c = 6.245
C = 60°
Acute: cos C > 0, so −2ab cos C is negative — c is shorter than the Pythagorean prediction.
Definition
The Law of Cosines generalises the Pythagorean theorem to any triangle. For a triangle with sides , , and angles , , (where angle is opposite side ):
Similarly: and .
When : , so — recovering the Pythagorean theorem. The law of cosines is its generalisation.
When to use it:
- Given two sides and the included angle (SAS)
- Given all three sides (SSS) — to find an angle
Finding a missing side (SAS)
A triangle has , , and . Find .
Try it
A triangle has sides , , . Find the angle opposite side .
Solution
Rearrange the law of cosines for :
This confirms the -- triangle is a right triangle (a multiple of the -- triple).
Related concepts
Needs first
Related