Law of Cosines
The Law of Cosines (also known as the Cosine Rule) allows to find the length of the third side of a triangle knowing two other sides and the angle between them.
Theorem (Law of Cosines)
Consider a triangle with the sides a, b, c and angles α, β, γ.
The Law of Cosines states that
where
The sides
When the angle
So the law of cosines is a generalization of the Pythagorean Theorem for an arbitrary triangle.
Proof
We consider separately the cases of acute and obtuse triangles.
In the first case, assume that the angle
Draw the altitude
The line segment
In the right traingle
Using the Pythagorean Identity for
Notice that
Therefore
Let now the angle
In this case, the altitude
By the reduction identity,
Again, by the reduction identity, the length of the line segment
From the right triangle
Similarly, the Law of Cosines can be proved for two other sides of the triangle.