Section 5.2 – Non-Right Triangles: Law of Cosines

Learning Objectives

Welcome to Section 5.2! In this section, you will:

  • Use the Law of Cosines to solve oblique triangles.
  • Solve applied problems using the Law of Cosines.
  • Use Heron’s formula to find the area of a triangle.

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?

image
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.

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 [latex]ABC[/latex] is placed in the coordinate plane with vertex [latex]A[/latex] at the origin, side [latex]c[/latex] drawn along the x-axis, and vertex [latex]C[/latex] located at some point [latex](x,y)[/latex] 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.

image
Figure 2

We can drop a perpendicular from [latex]C[/latex] to the x-axis (this is the altitude or height). Recalling the basic trigonometric identities, we know that

[latex]cos θ=\frac{x(adjacent)}{b(hypotenuse)} and sin θ=\frac{y(opposite)}{b(hypotenuse)}[/latex]

In terms of [latex]θ, x=bcos θ[/latex] and [latex]y=bsin θ[/latex]. The [latex](x,y)[/latex] point located at [latex]C[/latex] has coordinates [latex](bcos θ, bsin θ)[/latex]. Using the side [latex](x−c)[/latex] as one leg of a right triangle and [latex]y[/latex] as the second leg, we can find the length of hypotenuse [latex]a[/latex] using the Pythagorean Theorem. Thus,

image

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.

Law of Cosines

The Law of Cosines states that the square of any side of a triangle is equal to the sum of the squares of the other two sides minus twice the product of the other two sides and the cosine of the included angle. For triangles labeled as in Figure 3, with angles [latex]α,β[/latex], and [latex]γ[/latex], and opposite corresponding sides [latex]a,b[/latex], and [latex]c[/latex], respectively, the Law of Cosines is given as three equations.

image

image
Figure 3

To solve for a missing side measurement, the corresponding opposite angle measure is needed.

When solving for an angle, the corresponding opposite side measure is needed. We can use another version of the Law of Cosines to solve for an angle.

image

How To

Given two sides and the angle between them (SAS), find the measures of the remaining side and angles of a triangle.

  1. Sketch the triangle. Identify the measures of the known sides and angles. Use variables to represent the measures of the unknown sides and angles.
  2. Apply the Law of Cosines to find the length of the unknown side or angle.
  3. Apply the Law of Sines or Cosines to find the measure of a second angle.
  4. Compute the measure of the remaining angle.

Example 1

Finding the Unknown Side and Angles of a SAS Triangle

Find the unknown side and angles of the triangle in Figure 4.

image
Figure 4
Show/Hide Solution

First, make note of what is given: two sides and the angle between them. This arrangement is classified as SAS and supplies the data needed to apply the Law of Cosines.

Each one of the three laws of cosines begins with the square of an unknown side opposite a known angle. For this example, the first side to solve for is side [latex]b[/latex], as we know the measurement of the opposite angle [latex]β[/latex].

image

Because we are solving for a length, we use only the positive square root. Now that we know the length [latex]b[/latex], we can use the Law of Sines to fill in the remaining angles of the triangle. Solving for angle [latex]α[/latex], we have

image

The other possibility for [latex]α[/latex] would be [latex]α=180^{\circ}–56.3^{\circ}≈123.7^{\circ}[/latex]. In the original diagram, [latex]α[/latex] is adjacent to the longest side, so [latex]α[/latex] is an acute angle and, therefore, [latex]123.7^{\circ}[/latex] does not make sense. Notice that if we choose to apply the Law of Cosines, we arrive at a unique answer. We do not have to consider the other possibilities, as cosine is unique for angles between [latex]0^{\circ}[/latex] and [latex]180^{\circ}[/latex]. Proceeding with [latex]α≈56.3^{\circ}[/latex], we can then find the third angle of the triangle.

[latex]γ=180^{\circ}−30^{\circ}−56.3^{\circ}≈93.7^{\circ}[/latex]

The complete set of angles and sides is

image

Try It #1

Find the missing side and angles of the given triangle: [latex]α=30^{\circ}, b=12, c=24[/latex].

Example 2

Solving for an Angle of a SSS Triangle

Find the angle [latex]α[/latex] for the given triangle if side [latex]a=20[/latex], side [latex]b=25[/latex], and side [latex]c=18[/latex].

Show/Hide Solution

For this example, we have no angles. We can solve for any angle using the Law of Cosines. To solve for angle [latex]α[/latex], we have

image

See Figure 5.

image
Figure 5

Analysis

Because the inverse cosine can return any angle between 0 and 180 degrees, there will not be any ambiguous cases using this method.

Example 3

Geometry application

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.

Show/Hide Solution

For this example, we need to find the triangle that has the side that we are solving for. Side AC is part of triangle ABC. We know one angle and two adjacent sides, we can use the Law of Cosines to solve for the opposite side.

To solve for side b , we have

Try It #2

Given [latex]a=5,b=7[/latex], and [latex]c=10[/latex], find the missing angles.

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.

Example 4

Using the Law of Cosines to Solve a Communication Problem

On many cell phones with GPS, an approximate location can be given before the GPS signal is received. This is accomplished through a process called triangulation, which works by using the distances from two known points. Suppose there are two cell phone towers within range of a cell phone. The two towers are located 6000 feet apart along a straight highway, running east to west, and the cell phone is north of the highway. Based on the signal delay, it can be determined that the signal is 5,050 feet from the first tower and 2,420 feet from the second tower. Determine the position of the cell phone north and east of the first tower, and determine how far it is from the highway.

 

Show/Hide Solution

For simplicity, we start by drawing a diagram similar to Figure 6 and labeling our given information.

image
Figure 6

Using the Law of Cosines, we can solve for the angle [latex]θ[/latex]. Remember that the Law of Cosines uses the square of one side to find the cosine of the opposite angle. For this example, let [latex]a=2,420,b=5,050[/latex], and [latex]c=6,000[/latex]. Thus, [latex]θ[/latex] corresponds to the opposite side [latex]a=2,420[/latex].

image

To answer the questions about the phone’s position north and east of the tower, and the distance to the highway, drop a perpendicular from the position of the cell phone, as in Figure 7. This forms two right triangles, although we only need the right triangle that includes the first tower for this problem.

image
Figure 7

Using the angle [latex]θ=23.3^{\circ}[/latex] and the basic trigonometric identities, we can find the solutions. Thus

image

The cell phone is approximately 4,638 feet east and 1998 feet north of the first tower, and 1998 feet from the highway.

Example 5

Calculating Distance Traveled Using a SAS Triangle

Returning to our problem at the beginning of this section, suppose a boat leaves port, travels 10 miles, turns 20 degrees, and travels another 8 miles. How far from port is the boat? The diagram is repeated here in Figure 8.

image
Figure 8
Show/Hide Solution

The boat turned 20 degrees, so the obtuse angle of the non-right triangle is the supplemental angle, [latex]180^{\circ}−20^{\circ}=160^{\circ}[/latex]. With this, we can utilize the Law of Cosines to find the missing side of the obtuse triangle—the distance of the boat to the port.

image

The boat is about 17.7 miles from port.

Example 6

Calculating Distance Traveled Using a SAS Triangle

A 125-ft tower is located on the side of a mountain that is inclined [latex]32^{\circ}[/latex] to the horizontal. A guy wire is to be attached to the top of the tower and anchored at a point 55 ft downhill from the base of the tower. Find the shortest length of wire needed.

Show/Hide Solution

 

The shortest length of the wire needed is the when the wire is a straight line from the top of the top to the anchor point.
We form a right triangle by drawing a vertical line from the bottom of the tower to the horizontal. Angles in a triangle add up to [latex]180^{\circ}[/latex], therefore the angle opposite to the horizontal must be [latex]180^{\circ}-90^{\circ}-32^{\circ}=58^{\circ}[/latex].

The angle opposite to the horizontal and the obtuse angle of the non-right triangle are supplementary. Therefore the obtuse angle must be [latex]180^{\circ}-58^{\circ}=122^{\circ}[/latex].

We can utilize the Law of Cosines to find the length of the wire.

The shortest length of the wire needed is about 161.05 ft.

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.

Heron’s Formula

Heron’s formula finds the area of oblique triangles in which sides [latex]a,b[/latex], and [latex]c[/latex] are known.

[latex]Area=\sqrt{s(s−a)(s−b)(s−c)}[/latex]

where [latex]s=\frac{(a+b+c)}{2}[/latex] is one half of the perimeter of the triangle, sometimes called the semi-perimeter.

Example 7

Using Heron’s Formula to Find the Area of a Given Triangle

Find the area of the triangle in Figure 9 using Heron’s formula.

image
Figure 9
Show/Hide Solution

First, we calculate [latex]s[/latex].

image

Then we apply the formula.

image

The area is approximately 29.4 square units.

Try It #3

 

Use Heron’s formula to find the area of a triangle with sides of lengths [latex]a=29.7 ft, b=42.3 ft[/latex], and [latex]c=38.4 ft[/latex].

Example 8

Applying Heron’s Formula to a Real-World Problem

A Chicago city developer wants to construct a building consisting of artist’s lofts on a triangular lot bordered by Rush Street, Wabash Avenue, and Pearson Street. The frontage along Rush Street is approximately 62.4 meters, along Wabash Avenue it is approximately 43.5 meters, and along Pearson Street it is approximately 34.1 meters. How many square meters are available to the developer? See Figure 10 for a view of the city property.

image
Figure 10
Show/Hide Solution

Find the measurement for [latex]s[/latex], which is one-half of the perimeter.

image

Apply Heron’s formula.

image

The developer has about 711.4 square meters.

Try It #4

Find the area of a triangle given [latex]a=4.38 ft ,b=3.79 ft[/latex], and [latex]c=5.22 ft[/latex].

Media

Access these online resources for additional instruction and practice with the Law of Cosines.

Law of Cosines

Law of Cosines: Applications

Law of Cosines: Applications 2

5.2 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?

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 [latex]s[/latex] represents in Heron’s formula.

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?

Algebraic

For the following exercises, assume [latex]α[/latex] is opposite side [latex]a,β[/latex] is opposite side [latex]b[/latex], and [latex]γ[/latex] is opposite side [latex]c[/latex]. If possible, solve each triangle for the unknown side. Round to the nearest tenth.

6. [latex]γ=41.2^{\circ},a=2.49,b=3.13[/latex]

7. [latex]α=120^{\circ},b=6,c=7[/latex]

8. [latex]β=58.7^{\circ},a=10.6,c=15.7[/latex]

9. [latex]γ=115^{\circ},a=18,b=23[/latex]

10. [latex]α=119^{\circ},a=26,b=14[/latex]

11. [latex]γ=113^{\circ},b=10,c=32[/latex]

12. [latex]β=67^{\circ},a=49,b=38[/latex]

13. [latex]α=43.1^{\circ},a=184.2,b=242.8[/latex]

14. [latex]α=36.6^{\circ},a=186.2,b=242.2[/latex]

15. [latex]β= 50^{\circ},a=105,b=45[/latex]

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. [latex]a=42,b=19,c=30[/latex]; find angle [latex]A[/latex].

17. [latex]a=14, b=13, c=20[/latex]; find angle [latex]C[/latex].

18. [latex]a=16,b=31,c=20[/latex]; find angle [latex]B[/latex].

19. [latex]a=13, b=22, c=28[/latex]; find angle [latex]A[/latex].

20. [latex]a=108, b=132, c=160[/latex]; find angle [latex]C[/latex].

For the following exercises, solve the triangle. Round to the nearest tenth.

21. [latex]A=35^{\circ},b=8,c=11[/latex]

22. [latex]B=88^{\circ},a=4.4,c=5.2[/latex]

23. [latex]C=121^{\circ},a=21,b=37[/latex]

24. [latex]a=13,b=11,c=15[/latex]

25. [latex]a=3.1,b=3.5,c=5[/latex]

26. [latex]a=51,b=25,c=29[/latex]

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.

28. Find the area of a triangle with sides of length 20 cm, 26 cm, and 37 cm. Round to the nearest tenth.

29. [latex]a=\frac{1}{2} m,b=\frac{1}{3} m,c=\frac{1}{4} m[/latex]

30. [latex]a=12.4 ft, b=13.7 ft, c=20.2 ft[/latex]

31. [latex]a=1.6 yd, b=2.6 yd, c=4.1 yd[/latex]

Graphical

For the following exercises, find the length of side [latex]x[/latex]. Round to the nearest tenth.

32.
image

33.
image

34.
image

35.
image

36.
image

37.
image

For the following exercises, find the measurement of angle

[latex]A[/latex].

38.
image

39.
image

40.
image

41.
image

42. Find the measure of each angle in the triangle shown in Figure 11. Round to the nearest tenth.

image
Figure 11

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

43.
image

44.
image

45.
image

46.
image

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

47.
image

48.
image

49.
image

50.
image

51.
image

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.

54. A regular octagon is inscribed in a circle with a radius of 8 inches. (See Figure 12.) Find the perimeter of the octagon.

image
Figure 12

55. 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.

image
Figure 13

For the following exercises, suppose that [latex]x^2=25+36−60cos(52)[/latex] represents the relationship of three sides of a triangle and the cosine of an angle.

56. Draw the triangle.

57. Find the length of the third side.

For the following exercises, find the area of the triangle.

58.
image

59.
image

60.
image

Real-World Applications

61. A surveyor has taken the measurements shown in Figure 14. Find the distance across the lake. Round answers to the nearest tenth.

image
Figure 14

62. 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.

image
Figure 15

63. 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.

64. 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.

image
Figure 16

65. 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.

66. 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.

image
Figure 17

67. 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)?

68. 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?

69. 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.

70. 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.

71. 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?

72. 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?

73. 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.

74. 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?

75. 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?

76. 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.

77. 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.

License

Icon for the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License

Topics in Precalculus Copyright © by Sage Bentley; An Do; Carolyn Luna; Stephen Pena; and Phillip Saldivar is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License, except where otherwise noted.

Share This Book