10.2 Non-right Triangles: Law of Cosines
Suppose a boat leaves port, travels 10 miles, turns 20 degrees, and travels another 8 miles as shown in Figure 1. How far from port is the boat?

Figure 1
Unfortunately, while the Law of Sines enables us to address many non-right triangle cases, it does not help us with triangles where the known angle is between two known sides, a SAS (side-angle-side) triangle, or when all three sides are known, but no angles are known, a SSS (side-side-side) triangle. In this section, we will investigate another tool for solving oblique triangles described by these last two cases.
10.2.1 Using the Law of Cosines to Solve Oblique Triangles
The tool we need to solve the problem of the boat’s distance from the port is the Law of Cosines, which defines the relationship among angle measurements and side lengths in oblique triangles. Three formulas make up the Law of Cosines. At first glance, the formulas may appear complicated because they include many variables. However, once the pattern is understood, the Law of Cosines is easier to work with than most formulas at this mathematical level.
Understanding how the Law of Cosines is derived will be helpful in using the formulas. The derivation begins with the Generalized Pythagorean Theorem, which is an extension of the Pythagorean Theorem to non-right triangles. Here is how it works: An arbitrary non-right triangle \(ABC\) is placed in the coordinate plane with vertex \(A\) at the origin, side \(c\) drawn along the \(x\)-axis, and vertex \(C\) located at some point \(\left( {x,y} \right)\) in the plane, as illustrated in Figure 2. Generally, triangles exist anywhere in the plane, but for this explanation we will place the triangle as noted.

Figure 2
We can drop a perpendicular from \(C\) to the \(x\)-axis (this is the altitude or height). Recalling the basic trigonometric identities, we know that
\[\cos\;\theta = \frac{x\text{(adjacent)}}{b\text{(hypotenuse)}}\text{~and~}\sin\;\theta = \frac{y\text{(opposite)}}{b\text{(hypotenuse)}}\]
In terms of \(\theta,\mspace{9mu} x = b\cos\;\theta\) and \(y = b\sin\;\theta.\) The \((x,y)\) point located at \(C\) has coordinates \(\left( b\cos\;\theta, \right.\) \(b\sin\;\theta).\) Using the side \(\left( {x - c} \right)\) as one leg of a right triangle and \(y\) as the second leg, we can find the length of hypotenuse \(a\) using the Pythagorean Theorem. Thus,
\[\begin{array}{llllll} {\mspace{9mu} a^{2} = {(x - c)}^{2} + y^{2}} & & & & & \\ {\text{~~~~~~~} = {(b\cos\;\theta - c)}^{2} + {(b\sin\;\theta)}^{2}} & & & & & {\text{Substitute~}(b\cos\;\theta)\text{~for}\; x\;\;\text{and~}(b\sin\;\theta)\;\text{for~}y.} \\ {\text{~~~~~~~} = \left( {b^{2}\cos^{2}\theta - 2bc\cos\;\theta + c^{2}} \right) + b^{2}\sin^{2}\theta} & & & & & {\text{Expand~the~perfect~square}.} \\ {\text{~~~~~~~} = b^{2}\cos^{2}\theta + b^{2}\sin^{2}\theta + c^{2} - 2bc\cos\;\theta} & & & & & {\text{Group~terms~noting~that~}\cos^{2}\theta + \sin^{2}\theta = 1.} \\ {\text{~~~~~~~} = b^{2}\left( {\cos^{2}\theta + \sin^{2}\theta} \right) + c^{2} - 2bc\cos\;\theta} & & & & & {\text{Factor~out~}b^{2}.} \\ {\mspace{9mu} a^{2} = b^{2} + c^{2} - 2bc\cos\;\theta} & & & & & \end{array}\]
The formula derived is one of the three equations of the Law of Cosines. The other equations are found in a similar fashion.
Keep in mind that it is always helpful to sketch the triangle when solving for angles or sides. In a real-world scenario, try to draw a diagram of the situation. As more information emerges, the diagram may have to be altered. Make those alterations to the diagram and, in the end, the problem will be easier to solve.
10.2.2 Solving Applied Problems Using the Law of Cosines
Just as the Law of Sines provided the appropriate equations to solve a number of applications, the Law of Cosines is applicable to situations in which the given data fits the cosine models. We may see these in the fields of navigation, surveying, astronomy, and geometry, just to name a few.
10.2.3 Using Heron’s Formula to Find the Area of a Triangle
We already learned how to find the area of an oblique triangle when we know two sides and an angle. We also know the formula to find the area of a triangle using the base and the height. When we know the three sides, however, we can use Heron’s formula instead of finding the height. Heron of Alexandria was a geometer who lived during the first century A.D. He discovered a formula for finding the area of oblique triangles when three sides are known.
Section Exercises
Verbal
1. If you are looking for a missing side of a triangle, what do you need to know when using the Law of Cosines?
Solution (click to reveal)
two sides and the angle opposite the missing side.
2. If you are looking for a missing angle of a triangle, what do you need to know when using the Law of Cosines?
3. Explain what \(s\) represents in Heron’s formula.
Solution (click to reveal)
\(s\) is the semi-perimeter, which is half the perimeter of the triangle.
4. Explain the relationship between the Pythagorean Theorem and the Law of Cosines.
5. When must you use the Law of Cosines instead of the Pythagorean Theorem?
Solution (click to reveal)
The Law of Cosines must be used for any oblique (non-right) triangle.
Algebraic
For the following exercises, assume \(\alpha\) is opposite side \(a,\beta\) is opposite side \(b,\) and \(\gamma\) is opposite side \(c.\) If possible, solve each triangle for the unknown side. Round to the nearest tenth.
6. \(\gamma = 41.2{^\circ},a = 2.49,b = 3.13\)
7. \(\alpha = 120{^\circ},b = 6,c = 7\)
Solution (click to reveal)
11.3
8. \(\beta = 58.7{^\circ},a = 10.6,c = 15.7\)
9. \(\gamma = 115{^\circ},a = 18,b = 23\)
Solution (click to reveal)
34.7
10. \(\alpha = 119{^\circ},a = 26,b = 14\)
11. \(\gamma = 113{^\circ},b = 10,c = 32\)
Solution (click to reveal)
26.7
12. \(\beta = 67{^\circ},a = 49,b = 38\)
13. \(\alpha = 43.1{^\circ},a = 184.2,b = 242.8\)
Solution (click to reveal)
\(c = 257.3,96.7\)
14. \(\alpha = 36.6{^\circ},a = 186.2,b = 242.2\)
15. \(\beta = 50{^\circ},a = 105,b = 45{}_{}^{}\)
Solution (click to reveal)
not possible
For the following exercises, use the Law of Cosines to solve for the missing angle of the oblique triangle. Round to the nearest tenth.
16. \(a = 42,b = 19,c = 30;\) find angle \(A.\)
17. \(a = 14,\mspace{9mu} b = 13,\mspace{9mu} c = 20;\) find angle \(C.\)
Solution (click to reveal)
95.5°
18. \(a = 16,b = 31,c = 20;\) find angle \(B.\)
19. \(a = 13,\; b = 22,\; c = 28;\) find angle \(A.\)
Solution (click to reveal)
26.9°
20. \(a = 108,\; b = 132,\; c = 160;\) find angle \(C.\)
For the following exercises, solve the triangle. Round to the nearest tenth.
21. \(A = 35{^\circ},b = 8,c = 11\)
Solution (click to reveal)
\(B \approx 45.9{^\circ},C \approx 99.1{^\circ},a \approx 6.4\)
22. \(B = 88{^\circ},a = 4.4,c = 5.2\)
23. \(C = 121{^\circ},a = 21,b = 37\)
Solution (click to reveal)
\(A \approx 20.6{^\circ},B \approx 38.4{^\circ},c \approx 51.1\)
24. \(a = 13,b = 11,c = 15\)
25. \(a = 3.1,b = 3.5,c = 5\)
Solution (click to reveal)
\(A \approx 37.8{^\circ},B \approx 43.8,C \approx 98.4{^\circ}\)
26. \(a = 51,b = 25,c = 29\)
For the following exercises, use Heron’s formula to find the area of the triangle. Round to the nearest hundredth.
27. Find the area of a triangle with sides of length 18 in, 21 in, and 32 in. Round to the nearest tenth.
Solution (click to reveal)
177.56 in2
28. Find the area of a triangle with sides of length 20 cm, 26 cm, and 37 cm. Round to the nearest tenth.
29. \(a = \frac{1}{2}\;\text{m},b = \frac{1}{3}\;\text{m},c = \frac{1}{4}\;\text{m}\)
Solution (click to reveal)
0.04 m2
30. \(a = 12.4\text{~ft},\mspace{9mu} b = 13.7\text{~ft},\mspace{9mu} c = 20.2\text{~ft}\)
31. \(a = 1.6\text{~yd},\mspace{9mu} b = 2.6\text{~yd},\mspace{9mu} c = 4.1\text{~yd}\)
Solution (click to reveal)
0.91 yd2
Graphical
For the following exercises, find the length of side \(x.\) Round to the nearest tenth.
32.

33.

Solution (click to reveal)
3.0
34.

35.

Solution (click to reveal)
29.1
36.

37.

Solution (click to reveal)
0.5
For the following exercises, find the measurement of angle \(A.\)
38.

39.

Solution (click to reveal)
70.7°
40.

41.

Solution (click to reveal)
77.4°
42. Find the measure of each angle in the triangle shown in Figure 11. Round to the nearest tenth.

Figure 11
For the following exercises, solve for the unknown side. Round to the nearest tenth.
43.

Solution (click to reveal)
25.0
44.

45.

Solution (click to reveal)
9.3
46.

For the following exercises, find the area of the triangle. Round to the nearest hundredth.
47.

Solution (click to reveal)
43.52
48.

49.

Solution (click to reveal)
1.41
50.

51.

Solution (click to reveal)
0.14
Extensions
52. A parallelogram has sides of length 16 units and 10 units. The shorter diagonal is 12 units. Find the measure of the longer diagonal.
53. The sides of a parallelogram are 11 feet and 17 feet. The longer diagonal is 22 feet. Find the length of the shorter diagonal.
Solution (click to reveal)
18.3
54. The sides of a parallelogram are 28 centimeters and 40 centimeters. The measure of the larger angle is 100°. Find the length of the shorter diagonal.
55. A regular octagon is inscribed in a circle with a radius of 8 inches. (See Figure 12.) Find the perimeter of the octagon.

Figure 12
Solution (click to reveal)
48.98
56. A regular pentagon is inscribed in a circle of radius 12 cm. (See Figure 13.) Find the perimeter of the pentagon. Round to the nearest tenth of a centimeter.

Figure 13
For the following exercises, suppose that \(x^{2} = 25 + 36 - 60\cos(52)\) represents the relationship of three sides of a triangle and the cosine of an angle.
57. Draw the triangle.
Solution (click to reveal)

58. Find the length of the third side.
For the following exercises, find the area of the triangle.
59.

Solution (click to reveal)
7.62
60.

61.

Solution (click to reveal)
85.1
Real-World Applications
62. A surveyor has taken the measurements shown in Figure 14. Find the distance across the lake. Round answers to the nearest tenth.

Figure 14
63. A satellite calculates the distances and angle shown in Figure 15 (not to scale). Find the distance between the two cities. Round answers to the nearest tenth.

Figure 15
Solution (click to reveal)
24.0 km
64. An airplane flies 220 miles with a heading of 40°, and then flies 180 miles with a heading of 170°. How far is the plane from its starting point, and at what heading? Round answers to the nearest tenth.
65. A 113-foot tower is located on a hill that is inclined 34° to the horizontal, as shown in Figure 16. A guy-wire is to be attached to the top of the tower and anchored at a point 98 feet uphill from the base of the tower. Find the length of wire needed.

Figure 16
Solution (click to reveal)
99.9 ft
66. Two ships left a port at the same time. One ship traveled at a speed of 18 miles per hour at a heading of 320°. The other ship traveled at a speed of 22 miles per hour at a heading of 194°. Find the distance between the two ships after 10 hours of travel.
67. The graph in Figure 17 represents two boats departing at the same time from the same dock. The first boat is traveling at 18 miles per hour at a heading of 327° and the second boat is traveling at 4 miles per hour at a heading of 60°. Find the distance between the two boats after 2 hours.

Figure 17
Solution (click to reveal)
37.3 miles
68. A triangular swimming pool measures 40 feet on one side and 65 feet on another side. These sides form an angle that measures 50°. How long is the third side (to the nearest tenth)?
69. A pilot flies in a straight path for 1 hour 30 min. She then makes a course correction, heading 10° to the right of her original course, and flies 2 hours in the new direction. If she maintains a constant speed of 680 miles per hour, how far is she from her starting position?
Solution (click to reveal)
2371 miles
70. Los Angeles is 1,744 miles from Chicago, Chicago is 714 miles from New York, and New York is 2,451 miles from Los Angeles. Draw a triangle connecting these three cities, and find the angles in the triangle.
71. Philadelphia is 140 miles from Washington, D.C., Washington, D.C. is 442 miles from Boston, and Boston is 315 miles from Philadelphia. Draw a triangle connecting these three cities and find the angles in the triangle.
Solution (click to reveal)

72. Two planes leave the same airport at the same time. One flies at 20° east of north at 500 miles per hour. The second flies at 30° east of south at 600 miles per hour. How far apart are the planes after 2 hours?
73. Two airplanes take off in different directions. One travels 300 mph due west and the other travels 25° north of west at 420 mph. After 90 minutes, how far apart are they, assuming they are flying at the same altitude?
Solution (click to reveal)
292.4 miles
74. A parallelogram has sides of length 15.4 units and 9.8 units. Its area is 72.9 square units. Find the measure of the longer diagonal.
75. The four sequential sides of a quadrilateral have lengths 4.5 cm, 7.9 cm, 9.4 cm, and 12.9 cm. The angle between the two smallest sides is 117°. What is the area of this quadrilateral?
Solution (click to reveal)
65.4 cm2
76. The four sequential sides of a quadrilateral have lengths 5.7 cm, 7.2 cm, 9.4 cm, and 12.8 cm. The angle between the two smallest sides is 106°. What is the area of this quadrilateral?
77. Find the area of a triangular piece of land that measures 30 feet on one side and 42 feet on another; the included angle measures 132°. Round to the nearest whole square foot.
Solution (click to reveal)
468 ft2
78. Find the area of a triangular piece of land that measures 110 feet on one side and 250 feet on another; the included angle measures 85°. Round to the nearest whole square foot.







