Deriving the Law of Cosines
What You'll Learn
You'll see how to prove the Law of Cosines using coordinate geometry and the Pythagorean theorem.
The Core Idea
The Law of Cosines states that for any triangle with sides a, b, c and angle C opposite side c:
c² = a² + b² - 2ab·cos(C)
This looks like the Pythagorean theorem with an extra correction term! Let's prove why this works.
The Coordinate Proof
Imagine placing triangle ABC on a coordinate plane:
- Put vertex C at the origin (0, 0)
- Place vertex B at (a, 0) along the positive x-axis
- Vertex A is somewhere at angle C from the x-axis
Using our angle and side b (the distance from C to A):
- Point A has coordinates: (b·cos(C), b·sin(C))
Now we need the distance from A to B (which is side c). Using the distance formula (which comes from the Pythagorean theorem):
c² = (b·cos(C) - a)² + (b·sin(C) - 0)²
Expanding the first term: c² = b²cos²(C) - 2ab·cos(C) + a² + b²sin²(C)
Rearranging: c² = a² + b²cos²(C) + b²sin²(C) - 2ab·cos(C)
Since cos²(C) + sin²(C) = 1 (our Pythagorean identity): c² = a² + b²(1) - 2ab·cos(C)
c² = a² + b² - 2ab·cos(C) ✓
This works for any angle! When C = 90°, cos(90°) = 0, and we get the regular Pythagorean theorem.
Key Takeaway: The Law of Cosines emerges naturally from coordinate geometry and the Pythagorean theorem, showing how cosine adjusts the Pythagorean relationship for non-right triangles.