# 13.5: The Law of Cosines

**At Grade**Created by: CK-12

**Objective**

Use the Law of Cosines equation to solve non right triangles and find the area of triangles using Heron’s Formula.

**Review Queue**

Find the value of in the following triangles.

1.

2.

3.

## Using the Law of Cosines with SAS (to find the third side)

**Objective**

Use the Law of Cosines to determine the length of the third side of a triangle when two sides and the included angle are known.

**Guidance**

The Law of Cosines can be used to solve for the third side of a triangle when two sides and the included angle are known in a triangle. consider the non right triangle below in which we know and . We can draw an altitude from to create two smaller right triangles as shown where represents the length of the segment from to the foot of the altitude and represents the length of remainder of the side opposite angle .

Now we can use the Pythagorean Theorem to relate the lengths of the segments in each of the right triangles shown.

Triangle 1: or

Triangle 2: or

Since both equations are equal to , we can set them equal to each other and simplify:

Recall that we know the values of and and the measure of angle . We don’t know the measure of . We can use the cosine ratio as show below to find an expression for in terms of what we already know.

Finally, we can replace in the equation to get the Law of Cosines:

Keep in mind that and are the sides of angle in the formula.

**Example A**

Find when and .

**Solution:** Replacing the variables in the formula with the given information and solve for :

**Example B**

Find , when , and .

**Solution:** This time we are given the sides surrounding angle and the measure of angle . We can rewrite the formula as: . Just remember that the length by itself on one side should be the side opposite the angle in the cosine ratio. Now we can plug in our values and solve for .

**Example C**

Rae is making a triangular flower garden. One side is bounded by her porch and a second side is bounded by her fence. She plans to put in a stone border on the third side. If the length of the porch is 10 ft and the length of the fence is 15 ft and they meet at a angle, how many feet of stone border does she need to create?

**Solution:** Let the two known side lengths be and and the angle between is . Now we can use the formula to find , the length of the third side.

So Rae will need to create a 19.4 ft stone border.

**Guided Practice**

1. Find when and .

2. Find when and .

3. Dan likes to swim laps across a small lake near his home. He swims from a pier on the north side to a pier on the south side multiple times for a workout. One day he decided to determine the length of his swim. He determines the distances from each of the piers to a point on land and the angles between the piers from that point to be . How many laps does Dan need to swim to cover 1000 meters?

**Answers**

1.

2.

3.

Since each lap is 27.84 meters, Dan must swim laps.

**Problem Set**

Use the Law of Cosines to find the value of , to the nearest tenth, in problems 1 through 6.

For problems 7 through 10, find the unknown side of the triangle. Round your answers to the nearest tenth.

- Find , given , and .
- Find , given , and .
- Find , given , and .
- Find , given , and .
- Explain why when , the Law of Cosines becomes the Pythagorean Theorem.
- Luis is designing a triangular patio in his backyard. One side, 20 ft long, will be up against the side of his house. A second side is bordered by his wooden fence. If the fence and the house meet at a angle and the fence is 15 ft long, how long is the third side of the patio?

## Using the Law of Cosines with SSS (to find an angle)

**Objective**

Use the Law of Cosines to find the measure of an angle in a triangle in which all three side lengths are known.

**Guidance**

The Law of Cosines, , can be rearranged to facilitate the calculation of the measure of angle when and are all known lengths.

which can be further manipulated to .

**Example A**

Find the measure of the largest angle in the triangle with side lengths 12, 18 and 21.

**Solution:** First, we must determine which angle will be the largest. Recall from Geometry that the longest side is opposite the largest angle. The longest side is 21 so we will let since is the angle we are trying to find. Let and and use the formula to solve for as shown. It doesn’t matter which sides we assign to and . They are interchangeable in the formula.

**Note:** Be careful to put parenthesis around the entire numerator and entire denominator on the calculator to ensure the proper order of operations. Your calculator screen should look like this:

**Example B**

Find the value of , to the nearest degree.

**Solution:** The angle with measure will be angle so and . Remember, and are interchangeable in the formula. Now we can replace the variables with the known measures and solve.

**Example C**

Find the , if and .

**Solution:** First, let’s rearrange the formula to reflect the sides given and requested angle:

, now plug in our values

**Guided Practice**

1. Find the measure of in the diagram:

2. Find the measure of the smallest angle in the triangle with side lengths 47, 54 and 72.

3. Find , if and .

**Answers**

1.

2. The smallest angle will be opposite the side with length 47, so this will be our in the equation.

3. Rearrange the formula to solve for

**Problem Set**

Use the Law of Cosines to find the value of , to the nearest degree, in problems 1 through 6.

- Find the measure of the smallest angle in the triangle with side lengths 150, 165 and 200 meters.
- Find the measure of the largest angle in the triangle with side length 59, 83 and 100 yards.
- Find the if and .
- Find the if and .
- Find the if and .
- A triangular plot of land is bordered by a road, a fence and a creek. If the stretch along the road is 100 meters, the length of the fence is 115 meters and the side along the creek is 90 meters, at what angle do the fence and road meet?

## Heron’s Formula for the Area of a Triangle and Problem Solving with Trigonometry

**Objective**

Use Heron’s formula for area of a triangle when the side lengths are known and solve real world application problems using Law of Sines, Law of Cosines or the area formulas.

**Guidance**

Heron’s Formula, named after Hero of Alexandria 2000 years ago, can be used to find the area of a triangle given the three side lengths. The formula requires the semi-perimeter, , or , where and are the lengths of the sides of the triangle.

Heron’s Formula:

**Example A**

Use Heron’s formula to find the area of a triangle with side lengths 13 cm, 16 cm and 23 cm.

**Solution:** First, find the semi-perimeter or : . Next, substitute our values into the formula as shown and evaluate:

**Example B**

Alena is planning a garden in her yard. She is using three pieces of wood as a border. If the pieces of wood have lengths 4 ft, 6ft and 3 ft, what is the area of her garden?

**Solution:** The garden will be triangular with side lengths 4 ft, 6 ft and 3 ft. Find the semi-perimeter and then use Heron’s formula to find the area.

**Example C**

Caroline wants to measure the height of a radio tower. From some distance away from the tower, the angle of elevation from her spot to the top of the tower is . Caroline walks 100 m further away from the tower and measures the angle of elevation to the top of tower to be . How tall is the tower?

**Solution:** First, make a diagram to illustrate the situation.

We can use angle properties (linear pair and triangle sum) to find the angles shown in green in the diagram.

and

Next, we can use the Law of Sines in the obtuse triangle to find the hypotenuse in the right triangle:

Finally we can use the sine ratio in the right triangle to find the height of the tower:

**Guided Practice**

Use the most appropriate rule or formula (Law of Sines, Law of Cosines, area formula with sine or Heron’s formula) to answer the following questions.

1. Find the area of a triangle with side lengths 50 m, 45 m and 25 m.

2. Matthew is planning to fertilize his grass. Each bag of fertilizer claims to cover 500 sq ft of grass. His property of land is approximately in the shape of a triangle. He measures two sides of his yard to be 75 ft and 100 ft and the angle between them is . How many bags of fertilizer must he buy?

3. A pair of adjacent sides in a parallelogram are 3 in and 7 in and the angle between them is , find the length of the diagonals.

**Answers**

1. Heron’s Formula: .

2. Area formula with sine: , Number of bags bags. We round up because 7 bags is not quite enough.

3.

Law of Cosines to find the blue diagonal:

So, 6.19 in

To find the green diagonal we can use the Law of Cosines with the adjacent angle: :

So, 8.82 in

**Problem Set**

Use the Law of Sines, Law of Cosine, area of triangle with sine or Heron’s Formula to solve the real world application problems.

- Two observers, Rachel and Luis, are standing on the shore, 0.5 miles apart. They each measure the angle between the shoreline and a sailboat out on the water at the same time. If Rachel’s angle is and Luis’ angle is , find the distance between Luis and the sailboat to the nearest hundredth of a mile.
- Two pedestrians walk from opposite ends of a city block to a point on the other side of the street. The angle formed by their paths is . One pedestrian walks 300 ft and the other walks 320 ft. How long is the city block to the nearest foot?
- Two sides and the included angle of a parallelogram have measures 3.2 cm, 4.8 cm and respectively. Find the lengths of the diagonals to the nearest tenth of a centimeter.
- A bridge is supported by triangular braces. If the sides of each brace have lengths 63 ft, 46 ft and 40 ft, find the measure of the largest angle to the nearest degree.
- Find the triangular area, to the nearest square meter, enclosed by three pieces of fencing 123 m, 150 m and 155 m long.
- Find the area, to the nearest square inch, of a parallelogram with sides of length 12 in and 15 in and included angle of .
- A person at point looks due east and spots a UFO with an angle of elevation of . At the same time, another person, 1 mi due west of A looks due east and sights the same UFO with an angle of elevation of . Find the distance between and the UFO. How far is the UFO above the ground? Give answers to the nearest hundredth of a mile.
- Find the area of a triangular playground, to the nearest square meter, with sides of length 10 m, 15 m and 16 m.
- A yard is bounded on two sides with fences of length 80 ft and 60 ft. If these fences meet at a angle, how many feet of fencing are required to completely enclosed a triangular region?
- When a boy stands on the bank of a river and looks across to the other bank, the angle of depression is . If he climbs to the top of a 10 ft tree and looks across to other bank, the angle of depression is . What is the distance from the first position of the boy to the other bank of the river? How wide is the river? Give your answers to the nearest foot.

### Image Attributions

**Save or share your relevant files like activites, homework and worksheet.**

To add resources, you must be the owner of the section. Click Customize to make your own copy.