Login
📚 Precalculus
Chapters ▾

11.3 The Law of Cosines

In Section, we developed the Law of Sines (Theorem ) to enable us to solve triangles in the `Angle-Angle-Side' (AAS), the `Angle-Side-Angle' (ASA) and the ambiguous `Angle-Side-Side' (ASS) cases. In this section, we develop the Law of Cosines which handles solving triangles in the `Side-Angle-Side' (SAS) and `Side-Side-Side' (SSS) cases.1 We state and prove the theorem below.

To prove the theorem, we consider a generic triangle with the vertex of angle α at the origin with side b positioned along the positive x -axis.

Coordinate-plane figure.
Figure 11.48

From this set-up, we immediately find that the coordinates of A and C are A ( 0 , 0 ) and C ( b , 0 ) . From Theorem, we know that since the point B ( x , y ) lies on a circle of radius c , the coordinates of B are B ( x , y ) = B ( c cos ( α ) , c sin ( α ) ) . (This would be true even if α were an obtuse or right angle so although we have drawn the case when α is acute, the following computations hold for any angle α drawn in standard position where 0 < α < 180 .) We note that the distance between the points B and C is none other than the length of side a . Using the distance formula, Equation, we get

a = ( c cos ( α ) b ) 2 + ( c sin ( α ) 0 ) 2 a 2 = ( ( c cos ( α ) b ) 2 + c 2 sin 2 ( α ) ) 2 a 2 = ( c cos ( α ) b ) 2 + c 2 sin 2 ( α ) a 2 = c 2 cos 2 ( α ) 2 b c cos ( α ) + b 2 + c 2 sin 2 ( α ) a 2 = c 2 ( cos 2 ( α ) + sin 2 ( α ) ) + b 2 2 b c cos ( α ) a 2 = c 2 ( 1 ) + b 2 2 b c cos ( α ) Since  cos 2 ( α ) + sin 2 ( α ) = 1 a 2 = c 2 + b 2 2 b c cos ( α )

The remaining formulas given in Theorem can be shown by simply reorienting the triangle to place a different vertex at the origin. We leave these details to the reader. What's important about a and α in the above proof is that ( α , a ) is an angle-side opposite pair and b and c are the sides adjacent to α – the same can be said of any other angle-side opposite pair in the triangle. Notice that the proof of the Law of Cosines relies on the distance formula which has its roots in the Pythagorean Theorem. That being said, the Law of Cosines can be thought of as a generalization of the Pythagorean Theorem. If we have a triangle in which γ = 90 , then cos ( γ ) = cos ( 90 ) = 0 so we get the familiar relationship c 2 = a 2 + b 2 . What this means is that in the larger mathematical sense, the Law of Cosines and the Pythagorean Theorem amount to pretty much the same thing.2

We note that, depending on how many decimal places are carried through successive calculations, and depending on which approach is used to solve the problem, the approximate answers you obtain may differ slightly from those the authors obtain in the Examples and the Exercises. A great example of this is number in Example Example 1, where the approximate values we record for the measures of the angles sum to 180.01 , which is geometrically impossible. Next, we have an application of the Law of Cosines.

In Section, we used the proof of the Law of Sines to develop Theorem as an alternate formula for the area enclosed by a triangle. In this section, we use the Law of Cosines to derive another such formula - Heron's Formula.

We prove Theorem using Theorem. Using the convention that the angle γ is opposite the side c , we have A = 1 2 a b sin ( γ ) from Theorem. In order to simplify computations, we start by manipulating the expression for A 2 .

A 2 = ( 1 2 a b sin ( γ ) ) 2 = 1 4 a 2 b 2 sin 2 ( γ ) = a 2 b 2 4 ( 1 cos 2 ( γ ) ) since  sin 2 ( γ ) = 1 cos 2 ( γ ) .

The Law of Cosines tells us cos ( γ ) = a 2 + b 2 c 2 2 a b , so substituting this into our equation for A 2 gives

A 2 = a 2 b 2 4 ( 1 cos 2 ( γ ) ) perfect square trinomials. = a 2 b 2 4 [ 1 ( a 2 + b 2 c 2 2 a b ) 2 ] = a 2 b 2 4 [ 1 ( a 2 + b 2 c 2 ) 2 4 a 2 b 2 ] = a 2 b 2 4 [ 4 a 2 b 2 ( a 2 + b 2 c 2 ) 2 4 a 2 b 2 ] = 4 a 2 b 2 ( a 2 + b 2 c 2 ) 2 16 = ( 2 a b ) 2 ( a 2 + b 2 c 2 ) 2 16 = ( 2 a b [ a 2 + b 2 c 2 ] ) ( 2 a b + [ a 2 + b 2 c 2 ] ) 16 difference of squares. = ( c 2 a 2 + 2 a b b 2 ) ( a 2 + 2 a b + b 2 c 2 ) 16

A 2 = ( c 2 [ a 2 2 a b + b 2 ] ) ( [ a 2 + 2 a b + b 2 ] c 2 ) 16 = ( c 2 ( a b ) 2 ) ( ( a + b ) 2 c 2 ) 16 perfect square trinomials. = ( c ( a b ) ) ( c + ( a b ) ) ( ( a + b ) c ) ( ( a + b ) + c ) 16 difference of squares. = ( b + c a ) ( a + c b ) ( a + b c ) ( a + b + c ) 16 = ( b + c a ) 2 ( a + c b ) 2 ( a + b c ) 2 ( a + b + c ) 2

At this stage, we recognize the last factor as the semiperimeter, s = 1 2 ( a + b + c ) = a + b + c 2 . To complete the proof, we note that

( s a ) = a + b + c 2 a = a + b + c 2 a 2 = b + c a 2

Similarly, we find ( s b ) = a + c b 2 and ( s c ) = a + b c 2 . Hence, we get

A 2 = ( b + c a ) 2 ( a + c b ) 2 ( a + b c ) 2 ( a + b + c ) 2 = ( s a ) ( s b ) ( s c ) s

so that A = s ( s a ) ( s b ) ( s c ) as required.

We close with an example of Heron's Formula.

Exercises

In Exercises -, use the Law of Cosines to find the remaining side(s) and angle(s) if possible.

  1. a = 7 , b = 12 , γ = 59.3
  2. α = 104 , b = 25 , c = 37
  3. a = 153 , β = 8.2 , c = 153
  4. a = 3 , b = 4 , γ = 90
  5. α = 120 , b = 3 , c = 4
  6. a = 7 , b = 10 , c = 13
  7. a = 1 , b = 2 , c = 5
  8. a = 300 , b = 302 , c = 48
  9. a = 5 , b = 5 , c = 5
  10. a = 5 , b = 12 , ; c = 13
  11. a = 18 , α = 63 , b = 20
  12. a = 37 , b = 45 , c = 26
  13. a = 16 , α = 63 , b = 20
  14. a = 22 , α = 63 , b = 20
  15. α = 42 , b = 117 , c = 88
  16. β = 7 , γ = 170 , c = 98.6
  17. Find the area of the triangles given in Exercises, and above.
  18. The hour hand on my antique Seth Thomas schoolhouse clock in 4 inches long and the minute hand is 5.5 inches long. Find the distance between the ends of the hands when the clock reads four o'clock. Round your answer to the nearest hundredth of an inch.
  19. A geologist wants to measure the diameter of a crater. From her camp, it is 4 miles to the northern-most point of the crater and 2 miles to the southern-most point. If the angle between the two lines of sight is 117 , what is the diameter of the crater? Round your answer to the nearest hundredth of a mile.
  20. From the Pedimaxus International Airport a tour helicopter can fly to Cliffs of Insanity Point by following a bearing of N 8.2 E for 192 miles and it can fly to Bigfoot Falls by following a bearing of S 68.5 E for 207 miles.6 Find the distance between Cliffs of Insanity Point and Bigfoot Falls. Round your answer to the nearest mile.
  21. Cliffs of Insanity Point and Bigfoot Falls from Exericse above both lie on a straight stretch of the Great Sasquatch Canyon. What bearing would the tour helicopter need to follow to go directly from Bigfoot Falls to Cliffs of Insanity Point? Round your angle to the nearest tenth of a degree.
  22. A naturalist sets off on a hike from a lodge on a bearing of S 80 W. After 1.5 miles, she changes her bearing to S 17 W and continues hiking for 3 miles. Find her distance from the lodge at this point. Round your answer to the nearest hundredth of a mile. What bearing should she follow to return to the lodge? Round your angle to the nearest degree.
  23. The HMS Sasquatch leaves port on a bearing of N 23 E and travels for 5 miles. It then changes course and follows a heading of S 41 E for 2 miles. How far is it from port? Round your answer to the nearest hundredth of a mile. What is its bearing to port? Round your angle to the nearest degree.
  24. The SS Bigfoot leaves a harbor bound for Nessie Island which is 300 miles away at a bearing of N 32 E. A storm moves in and after 100 miles, the captain of the Bigfoot finds he has drifted off course. If his bearing to the harbor is now S 70 W, how far is the SS Bigfoot from Nessie Island? Round your answer to the nearest hundredth of a mile. What course should the captain set to head to the island? Round your angle to the nearest tenth of a degree.
  25. From a point 300 feet above level ground in a firetower, a ranger spots two fires in the Yeti National Forest. The angle of depression7 made by the line of sight from the ranger to the first fire is 2.5 and the angle of depression made by line of sight from the ranger to the second fire is 1.3 . The angle formed by the two lines of sight is 117 . Find the distance between the two fires. Round your answer to the nearest foot. (Hint: In order to use the 117 angle between the lines of sight, you will first need to use right angle Trigonometry to find the lengths of the lines of sight. This will give you a Side-Angle-Side case in which to apply the Law of Cosines.)

    Coordinate-plane figure.
    Figure 11.52
  26. If you apply the Law of Cosines to the ambiguous Angle-Side-Side (ASS) case, the result is a quadratic equation whose variable is that of the missing side. If the equation has no positive real zeros then the information given does not yield a triangle. If the equation has only one positive real zero then exactly one triangle is formed and if the equation has two distinct positive real zeros then two distinct triangles are formed. Apply the Law of Cosines to Exercises, and above in order to demonstrate this result.
  27. Discuss with your classmates why Heron's Formula yields an area in square units even though four lengths are being multiplied together.

In Exercises -, solve for the remaining side(s) and angle(s), if possible, using any appropriate technique.

Answers

  1. α 35.54 β 85.16 γ = 59.3 a = 7 b = 12 c 10.36
  2. α = 104 β 29.40 γ 46.60 a 49.41 b = 25 c = 37
  3. α 85.90 β = 8.2 γ 85.90 a = 153 b 21.88 c = 153
  4. α 36.87 β 53.13 γ = 90 a = 3 b = 4 c = 5
  5. α = 120 β 25.28 γ 34.72 a = 37 b = 3 c = 4
  6. α 32.31 β 49.58 γ 98.21 a = 7 b = 10 c = 13
  7. α 83.05 β 87.81 γ 9.14 a = 300 b = 302 c = 48
  8. α = 60 β = 60 γ = 60 a = 5 b = 5 c = 5
  9. α 22.62 β 67.38 γ = 90 a = 5 b = 12 c = 13
  10. α = 63 β 98.11 γ 18.89 a = 18 b = 20 c 6.54

    α = 63 β 81.89 γ 35.11 a = 18 b = 20 c 11.62

  11. α 55.30 β 89.40 γ 35.30 a = 37 b = 45 c = 26
  12. α = 63 β 54.1 γ 62.9 a = 22 b = 20 c 21.98
  13. α = 42 β 89.23 γ 48.77 a 78.30 b = 117 c = 88
  14. α 3 β = 7 γ = 170 a 29.72 b 69.2 c = 98.6
  15. The area of the triangle given in Exercise is 1200 = 20 3 34.64 square units. The area of the triangle given in Exercise is 51764375 7194.75 square units. The area of the triangle given in Exercise is exactly 30 square units.
  16. The distance between the ends of the hands at four o'clock is about 8.26 inches.
  17. The diameter of the crater is about 5.22 miles.
  18. About 313 miles
  19. N 31.8 W
  20. She is about 3.92 miles from the lodge and her bearing to the lodge is N 37 E.
  21. It is about 4.50 miles from port and its heading to port is S 47 W.
  22. It is about 229.61 miles from the island and the captain should set a course of N 16.4 E to reach the island.
  23. The fires are about 17456 feet apart. (Try to avoid rounding errors.)

Adapted from Precalculus, 3rd corrected edition, by Carl Stitz and Jeff Zeager (stitz-zeager.com), licensed under CC BY-NC-SA 3.0. Changes were made: reformatted as an accessible XYZ web edition. License: CC-BY-NC-SA-3.0.