Cosine Flex: Generalizing Pythagoras with the Law of Cosines
Bend a right triangle's angle away from 90° and Pythagoras needs just one correction term to keep working.
Pythagoras only handles right angles
The Pythagorean theorem, c² = a² + b², is one of the most useful facts in geometry — but it only holds when the angle between sides a and b is exactly 90°. Bend that angle open or closed even slightly, and c² is no longer a² + b². What is it instead?
Watch it collapse back to Pythagoras
Set C = 90° in the formula. Since cos(90°) = 0, the whole correction term −2ab cos C disappears, and you're left with c² = a² + b² — exactly the Pythagorean theorem. The Law of Cosines isn't a separate rule to memorize alongside Pythagoras; it contains Pythagoras as the special case where the angle happens to be a right angle.
- c² = 7² + 10² − 2(7)(10)cos(60°).
- c² = 49 + 100 − 140(0.5) = 149 − 70 = 79.
- c = √79.
- Rearrange the Law of Cosines to solve for cos C: cos C = (a² + b² − c²) ÷ (2ab).
- cos C = (25 + 36 − 49) ÷ (2 × 5 × 6) = 12 ÷ 60 = 0.2.
- C = cos−1(0.2).
Check your understanding
- The Law of Cosines, c² = a² + b² − 2ab cos C, works for any triangle, not just right triangles.
- Setting C = 90° makes cos C = 0, collapsing the formula exactly to the Pythagorean theorem.
- Use it with two sides and the included angle (SAS) to find the third side.
- Rearrange it to find an angle when all three sides (SSS) are known.
- An acute included angle shortens c below √(a²+b²); an obtuse one lengthens it beyond that.
🎓 Go deeper: external courses & trusted references
External sites are listed for reference only. This course is independent and has no affiliation with, or endorsement from, the institutions named.