Course contentsShow
← Mathematics
Lesson 1110 of 3,12126. General Triangle TrigonometryFree lesson

The Law of Cosines and the Pythagorean Theorem

Recognize how the Law of Cosines generalizes the Pythagorean theorem for all triangles.

The Law of Cosines and the Pythagorean Theorem

What You'll Learn

You'll discover that the Law of Cosines is actually a powerful extension of the Pythagorean theorem that works for all triangles, not just right triangles.

The Connection

You already know the Pythagorean theorem: in a right triangle with legs a and b and hypotenuse c, we have:

c² = a² + b²

Now recall the Law of Cosines for a general triangle with sides a, b, c and angle C opposite side c:

c² = a² + b² − 2ab·cos(C)

Notice something remarkable? The Law of Cosines has an extra term: −2ab·cos(C).

What Makes Them the Same (Sometimes)

Here's the key insight: when C = 90° (a right angle), what happens?

  • cos(90°) = 0
  • So: −2ab·cos(90°) = −2ab·(0) = 0
  • The Law of Cosines becomes: c² = a² + b² − 0
  • Which simplifies to: c² = a² + b²

The Pythagorean theorem is revealed as a special case of the Law of Cosines!

The General Picture

Think of it this way: the Pythagorean theorem only "works" when the angle is exactly 90°. The Law of Cosines works for any angle:

  • When C < 90° (acute), the correction term −2ab·cos(C) is negative (makes c² smaller)
  • When C = 90° (right angle), the correction term vanishes entirely
  • When C > 90° (obtuse), the correction term is positive (makes c² larger)

The Law of Cosines adjusts the Pythagorean relationship based on how far the angle deviates from 90°.

Key Takeaway: The Law of Cosines is the Pythagorean theorem's general form—it reduces to c² = a² + b² exactly when the triangle contains a right angle.