<meta http-equiv="refresh" content="1; url=/nojavascript/"> Law of Cosines ( Read ) | Trigonometry | CK-12 Foundation
Dismiss
Skip Navigation

Law of Cosines

%
Best Score
Practice Law of Cosines
Practice
Best Score
%
Practice Now
Law of Cosines
 0  0  0

The Law of Cosines is a generalized Pythagorean Theorem that allows you to solve for the missing sides and angles of a triangle even if it is not a right triangle. Suppose you have a triangle with sides 11, 12 and 13. What is the measure of the angle opposite the 11? 

Watch This

http://www.youtube.com/watch?v=pGaDcOMdw48 Khan Academy: Law of Cosines

Guidance

The Law of Cosines is:

c^2=a^2+b^2-2ab \cdot \cos C

It is important to understand the proof: 

You know four facts from the picture:

a=a_1+a_2 \qquad \ (1)

b^2=a_1^2+h^2 \qquad (2)

c^2=a_2^2+h^2 \qquad (3)

\cos C=\frac{a_1}{b} \qquad \quad (4)

Once you verify for yourself that you agree with each of these facts, check algebraically that these next two facts must be true. 

a_2=a-a_1 \qquad \ \ (5, \text{ from } 1)

a_1=b \cdot \cos C \qquad (6, \text{ from } 4)

Now the Law of Cosines is ready to be proved using substitution, FOIL, more substitution and rewriting to get the order of terms right.

c^2&=a_2^2+h^2 && (3 \text{ again})\\c^2&=(a-a_1)^2+h^2 && (\text{substitute using }5)\\c^2&=a^2-2a \cdot a_1+a_1^2+h^2 && (\text{FOIL})\\c^2&=a^2-2a \cdot b \cdot \cos C+a_1^2+h^2 && (\text{substitute using }6)\\c^2&=a^2-2a \cdot b \cdot \cos C+b^2 && (\text{substitute using }2)\\c^2&=a^2+b^2-2ab  \cdot \cos C && (\text{rearrange terms})

There are only two types of problems in which it is appropriate to use the Law of Cosines. The first is when you are given all three sides of a triangle and asked to find an unknown angle. This is called SSS like in geometry. The second situation where you will use the Law of Cosines is when you are given two sides and the included angle and you need to find the third side. This is called SAS.

Example A

Determine the measure of angle D .

Solution: It is necessary to set up the Law of Cosines equation very carefully with  D corresponding to the opposite side of 230. The letters are not  ABC like in the proof, but those letters can always be changed to match the problem as long as the angle in the cosine corresponds to the side used in the left side of the equation. 

c^2&=a^2+b^2-2ab \cdot \cos C\\230^2&=120^2+150^2-2 \cdot 120 \cdot 150 \cdot \cos D\\230^2-120^2-150^2&=-2 \cdot 120 \cdot 150 \cdot \cos D\\\frac{230^2-120^2-150^2}{-2 \cdot 120 \cdot 150}&=\cos D\\D&=\cos^{-1} \left ( \frac{230^2-120^2-150^2}{-2 \cdot 120 \cdot 150} \right ) \approx 116.4^\circ \approx 2.03 \ radians

Example B

Determine the length of side p .

Solution:

c^2&=a^2+b^2-2ab \cdot \cos C\\p^2&=212^2+388^2-2 \cdot 212 \cdot 388 \cdot \cos 82^\circ\\p^2 & \approx 194192.02 \ldots\\p & \approx 440.7

Example C

Determine the degree measure of angle N .

Solution: This problem must be done in two parts. First apply the Law of Cosines to determine the length of side m . This is a SAS situation like Example B. Once you have all three sides you will be in the SSS situation like in Example A and can apply the Law of Cosines again to find the unknown angle N .

c^2&=a^2+b^2-2ab \cdot \cos C\\m^2&=38^2+40^2-2 \cdot 38 \cdot 40 \cdot \cos 93^\circ\\m^2& \approx 3203.1\ldots\\m& \approx 56.59 \ldots

Now that you have all three sides you can apply the Law of Cosines again to find the unknown angle N . Remember to match angle  N with the corresponding side length of 38 inches. It is also best to store m  into your calculator and use the unrounded number in your future calculations. 

c^2&=a^2+b^2-2ab \cdot \cos C\\38^2&=40^2+(56.59\ldots)^2-2 \cdot 40 \cdot (56.59\ldots) \cdot \cos N\\38^2-40^2-(56.59\ldots)^2&=-2 \cdot 40 \cdot (56.59\ldots) \cdot \cos N\\\frac{38^2-40^2-(56.59\ldots)^2}{-2 \cdot 40 \cdot (56.59\ldots)}&=\cos N\\N&=\cos^{-1} \left ( \frac{38^2-40^2-(56.59\ldots)^2}{-2 \cdot 40 \cdot (56.59\ldots) } \right ) \approx 42.1^\circ

Concept Problem Revisited

A triangle that has sides 11, 12 and 13 is not going to be a right triangle. In order to solve for the missing angle you need to use the Law of Cosines because this is a SSS situation.

c^2&=a^2+b^2-2ab \cdot \cos C\\11^2&=12^2+(13)^2-2 \cdot 12 \cdot 13 \cdot \cos C\\C&=\cos^{-1}\left ( \frac{11^2-12^2-13^2}{-2 \cdot 12 \cdot 13} \right ) \approx 52.02\ldots^\circ

Vocabulary

The Law of Cosines is a generalized Pythagorean Theorem that allows you to solve for the missing sides and angles of a triangle even if it is not a right triangle.

SSS refers to Side, Side, Side and refers to a property of congruent triangles in geometry. In this case it refers to the fact that all three sides are known in the problem. 

SAS refers to Side, Angle, Side and refers to a property of congruent triangles in geometry. In this case it refers to the fact that the known quantities of a triangle are two sides and the included angle. 

Included   angle is the angle between two sides. 

Guided Practice

1. Determine the length of side r .

2. Determine the measure of angle  T in degrees.

3. Determine the measure of angle  S in radians.

Answers:

1.  r^2  = 36^2 + 42^2 - 2 \cdot 36 \cdot 42 \cdot \cos 63

r = 41.07 \ldots

2.  36^2 = (41.07 \ldots)^2+42^2-2 \cdot (41.07 \ldots) \cdot 42 \cdot \cos T

T \approx 51.34 \ldots^\circ

3. You could repeat the process from the previous question, or use the knowledge that the three angles in a triangle add up to 180.

& 63+51.34 \ldots +S=180\\& S \approx 65.65^\circ  \cdot \frac{\pi}{180^\circ} \approx 1.145 \ldots radians

Practice

For all problems, find angles in degrees rounded to one decimal place.

In  \Delta ABC, a=12, b=15, and c=20 .

1. Find the measure of angle A .

2. Find the measure of angle B .

3. Find the measure of angle C .

4. Find the measure of angle  C in a different way.

In  \Delta DEF, d=20, e=10, and f=16 .

5. Find the measure of angle D .

6. Find the measure of angle E .

7. Find the measure of angle F .

In  \Delta GHI,g=19, \angle H=55^\circ, and i=12 .

8. Find the length of h .

9. Find the measure of angle G .

10. Find the measure of angle I .

11. Explain why the Law of Cosines is connected to the Pythagorean Theorem.

12. What are the two types of problems where you might use the Law of Cosines?

Determine whether or not each triangle is possible.

13. a=5, b=6, c=15

14. a=1, b=5, c=4

15. a=5, b=6, c=10

Image Attributions

Reviews

Email Verified
Well done! You've successfully verified the email address .
OK
Please wait...
Please wait...

Original text