Law of Cosines
Lesson · Intermediate
Geometry: Plane Geometry

For a triangle with sides :
or
Let
Draw the altitude
and let

By the Pythagorean Theorem in ,
In ,
Subtract the first equation from the second:
Expanding,
so
Hence
and therefore
Now, in the right triangle ,
Substituting the value of ,
Therefore,
Rearranging,
so
Similarly, by relabeling the sides and angles,
and hence
Likewise,
Triangle has
If is the midpoint of , find .
Since is the midpoint,
Let

Then
Apply the Law of Cosines to :
So
Apply the Law of Cosines to :
Since
we get
Add the two equations:
Thus
Therefore,
A triangle has side lengths
For which positive is the largest angle obtuse?
The largest angle is opposite .
It is obtuse exactly when
Expanding,
so
Factor:
Thus
Since ,
If
then
Therefore,
So the Pythagorean Theorem is a special case of the Law of Cosines.
Let be the largest side.
From
we obtain:
If a parallelogram has sides and diagonals ,
Let

By the Law of Cosines,
Since
we have
Adding
Therefore,