Law of cosines

余弦定理

What is the law of cosines?

The square of one side equals the squares of the other two minus twice their product times the cosine of the included angle; at a right angle it reduces to Pythagoras.

TheoremKP000593

Sign in to read the whole lesson, with 1 interactive aid, 3 exercises

Sign in / Sign up

Mastery goals

  • Can state and prove the law of cosines
  • Can explain how it generalizes the Pythagorean theorem

A triangle carries many kinds of geometric quantities, such as the lengths of its three sides, the measures of its three interior angles and its area, and these quantities are related in definite ways. In junior high school, for example, we met the Pythagorean theorem and the trigonometric functions of acute angles, which relate the sides and angles of a right triangle. For a general triangle we have studied the relations between sides and angles qualitatively and obtained the congruence criteria SSS, SAS, ASA and AAS. These criteria show that once some of the six elements of a triangle (its three angles and three sides) are given, the triangle is uniquely determined. So what quantitative relations hold between the other elements of the triangle and the given ones?

Below we study this question with vector methods.

1. The cosine theorem

We know that two triangles are congruent if two sides and the angle between them are equal respectively. This shows that two sides and their included angle determine a triangle uniquely. In other words, the other sides and angles of the triangle can all be expressed in terms of these two sides and their included angle. What are the formulas?

Since two side lengths of the triangle and the angle between them are involved, we try the dot product of vectors.

abcCBA
Figure 6.4-8: , , .

As in Figure 6.4-8, let , and . Then

Our goal is to express in terms of , and . The property of the dot product suggests taking the dot product of the vector (that is, ) with itself.

From ①,

Therefore

In the same way,

We have thus obtained an important theorem about the relation between the sides and angles of a triangle:

Cosine theorem In a triangle, the square of any side equals the sum of the squares of the other two sides minus twice the product of these two sides and the cosine of the angle between them, that is,


With the cosine theorem, the third side of a triangle can be found directly from two known sides and their included angle.

Related points

All points in this topic

Cite this page: Law of cosines · KnowledgeTree (知识树), https://www.knowledgetree.world/en/kp/KP000593