A Generalization of the Pythagorean Theorem
In triangle ABC, if C is a right angle, then the Pythagorean Theorem tells us c2 = a2 + b2:
But what if C is not a right angle?
First suppose C is less than 90o. Draw an altitude from B to AC:
By the Pythagorean Theorem, c2 = x2 + h2, and h2 = a2 – y2, so c2 = x2 + a2 – y2. But x + y = b, so x = b – y, and therefore c2 = (b – y)2 + a2 – y2 = a2 + b2 – 2by. Now
So finally:
Now suppose C is greater than 90o. By similar reasoning, we again find that
This makes use of the fact that cos(180o – θ) = –cos θ as can be seen when θ is in standard position:
The following examples show how the Law of Cosines can be used to find missing parts of triangles.