<meta http-equiv="refresh" content="1; url=/nojavascript/">

# 5.1: The Law of Cosines

Difficulty Level: At Grade Created by: CK-12

## Introduction

This chapter takes concepts that had only been applied to right triangles and interprets them so that they can be used for any type of triangle. First, the laws of sines and cosines take the Pythagorean Theorem and ratios and apply them to any triangle. The second half of the chapter introduces and manipulates vectors. Vectors can be added, subtracted, multiplied and divided.

## Learning Objectives

• Understand how the Law of Cosines is derived.
• Apply the Law of Cosines when you know two sides and the included angle of an oblique (non-right) triangle (SAS).
• Apply the Law of Cosines when you know all three sides of an oblique triangle.
• Identify accurate drawings of oblique triangles.
• Use the Law of Cosines in real-world and applied problems.

## Derive the Law of Cosines

ABC\begin{align*}\triangle{ABC}\end{align*} contains an altitude BD\begin{align*}BD\end{align*} that extends from B\begin{align*}B\end{align*} and intersects AC\begin{align*}AC\end{align*}. We will refer to the length of BD\begin{align*}BD\end{align*} as y\begin{align*}y\end{align*}. The sides of ABC\begin{align*}\triangle{ABC}\end{align*} measure a\begin{align*}a\end{align*} units, b\begin{align*}b\end{align*} units, and c\begin{align*}c\end{align*} units. If DC\begin{align*}DC\end{align*} is x\begin{align*}x\end{align*} units long, then AD\begin{align*}AD\end{align*} measures (bx)\begin{align*}(b - x)\end{align*} units.

Using the Pythagorean Theorem we know that:

c2=y2+(bx)2c2=y2+b22bx+x2c2=a2+b22bxc2=a2+b22b(acosC)c2=a2+b22abcosCPythagorean TheoremExpand (bx)2a2=y2+x2 by Pythagorean TheoremcosC=xa, so acosC=x (cross multiply)Simplify

We can use a similar process to derive all three forms of the Law of Cosines:

a2=b2+c22bccosAb2=a2+c22accosBc2=a2+b22abcosC

Note that if either A,B\begin{align*}\angle{A}, \angle{B}\end{align*} or C\begin{align*}\angle{C}\end{align*} is 90\begin{align*}90^\circ\end{align*} then cos90=0\begin{align*}\cos 90^\circ = 0\end{align*} and the Law of Cosines is identical to the Pythagorean Theorem.

The Law of Cosines is one tool we use in certain situations involving all triangles: right, obtuse, and acute. It is a general statement relating the lengths of the sides of any general triangle to the cosine of one of its angles. There are two situations in which we can and want to use the Law of Cosines:

1. When we know two sides and the included angle in an oblique triangle and want to find the third side (SAS).
2. When we know all three sides in an oblique triangle and want to find one of the angles (SSS).

## Case #1: Finding the Side of an Oblique Triangle

One case where we can use the Law of Cosines is when we know two sides and the included angle in a triangle (SAS) and want to find the third side.

Example 1: Using DEF,E=12,d=18\begin{align*}\triangle{DEF}, \angle{E} = 12^\circ, d = 18\end{align*}, and f=16.8\begin{align*}f = 16.8\end{align*}. Find e\begin{align*}e\end{align*}.

Solution: Since DEF\begin{align*}\triangle{DEF}\end{align*} isn’t a right triangle, we cannot use the Pythagorean Theorem or trigonometry functions to find the third side. However, we can use our newly derived Law of Cosines.

e2e2e2e2e=182+16.822(18)(16.8)cos12=324+282.242(18)(16.8)cos12=324+282.24591.5836689=14.65633113.8Law of CosinesSimplify squaresMultiplyAdd and subtract from left to rightSquare root

Note that the negative answer is thrown out as having no geometric meaning in this case.\begin{align*}^*\text{Note that the negative answer is thrown out as having no geometric meaning in this case.}\end{align*}

Example 2: An architect is designing a kitchen for a client. When designing a kitchen, the architect must pay special attention to the placement of the stove, sink, and refrigerator. In order for a kitchen to be utilized effectively, these three amenities must form a triangle with each other. This is known as the “work triangle.” By design, the three parts of the work triangle must be no less than 3 feet apart and no more than 7 feet apart. Based on the dimensions of the current kitchen, the architect has determined that the sink will be 3.6 feet away from the stove and 5.7 feet away from the refrigerator. If the sink forms a 103\begin{align*}103^\circ\end{align*} angle with the stove and the refrigerator, will the distance between the stove and the refrigerator remain within the confines of the work triangle?

Solution: In order to find the distance from the sink to the refrigerator, we need to find side x\begin{align*}x\end{align*}. To find side x\begin{align*}x\end{align*}, we will use the Law of Cosines because we are dealing with an obtuse triangle (and thus have no right angles to work with). We know the length two sides: the sink to the stove and the sink to the refrigerator. We also know the included angle (the angle between the two known lengths) is 103\begin{align*}103^\circ\end{align*}. This means we have the SAS case and can apply the Law of Cosines.

x2x2x2x2x=3.62+5.722(3.6)(5.7)cos103=12.96+32.492(3.6)(5.7)cos103=12.96+32.49+9.23199127=54.681991277.4Law of CosinesSimplify squaresMultiplyEvaluateSquare root

No, this triangle does not conform to the definition of a work triangle. The sink and the refrigerator are too far apart by 0.4 feet.

## Case #2: Finding any Angle of a Triangle

Another situation where we can apply the Law of Cosines is when we know all three sides in a triangle (SSS) and we need to find one of the angles. The Law of Cosines allows us to find any of the three angles in the triangle. First, we will look at how to apply the Law of Cosines in this case, and then we will look at a real-world application.

Example 3: Continuing on from Example 2, if the architect moves the stove so that it is 4.2 feet from the sink and makes the fridge 6.8 feet from the stove, how does this affect the angle the sink forms with the stove and the refrigerator?

Solution: In order to find how the angle is affected, we will again need to utilize the Law of Cosines, but because we do not know the measures of any of the angles, we solve for Y\begin{align*}Y\end{align*}.

The new angle would be 85.3\begin{align*}85.3^\circ\end{align*}, which means it would be 17.7\begin{align*}17.7^\circ\end{align*} less than the original angle.

Example 4: In oblique MNO,m=45,n=28\begin{align*}\triangle{MNO}, m = 45, n = 28\end{align*}, and o=49\begin{align*}o = 49\end{align*}. Find M\begin{align*}\angle{M}\end{align*}.

Solution: Since we know all three sides of the triangle, we can use the Law of Cosines to find M\begin{align*}\angle{M}\end{align*}.

45220252025202511600.42274052565=282+4922(28)(49)cosM=784+24012(28)(49)cosM=784+24012744cosM=31852744cosM=2744cosM=cosMMLaw of CosinesSimplify squaresMultiplyAddSubtract 3185Divide by 2744cos1 (0.422740525)

It is important to note that we could use the Law of Cosines to find N\begin{align*}\angle{N}\end{align*} or O\begin{align*}\angle{O}\end{align*} also.

Example 5: Sam is building a retaining wall for a garden that he plans on putting in the back corner of his yard. Due to the placement of some trees, the dimensions of his wall need to be as follows: side 1=12ft\begin{align*}1 = 12ft\end{align*}, side 2=18ft\begin{align*}2 = 18ft\end{align*}, and side 3=22ft\begin{align*}3 = 22ft\end{align*}. At what angle do side 1 and side 2 need to be? Side 2 and side 3? Side 1 and side 3?

Solution: Since we know the measures of all three sides of the retaining wall, we can use the Law of Cosines to find the measures of the angles formed by adjacent walls. We will refer to the angle formed by side 1 and side 2 as A\begin{align*}\angle{A}\end{align*}, the angle formed by side 2 and side 3 as B\begin{align*}\angle{B}\end{align*}, and the angle formed by side 1 and side 3 as C\begin{align*}\angle{C}\end{align*}. First, we will find A\begin{align*}\angle{A}\end{align*}.

222484484484160.03703703792.1=122+1822(12)(18)cosA=144+3242(12)(18)cosA=144+324432cosA=468432cosA=432cosAcosAALaw of CosinesSimplify squaresMultiplyAddSubtract 468Divide by 432cos1 (0.037037037)

Next we will find the measure of B\begin{align*}\angle{B}\end{align*} also by using the Law of Cosines.

1823243243243040.57575757654.8=122+2222(12)(22)cosB=144+4842(12)(22)cosB=144+484528cosB=628528cosB=528cosB=cosBBLaw of CosinesSimplify squaresMultiplyAddSubtract 628Divide by 528cos1 (0.575757576)

Now that we know two of the angles, we can find the third angle using the Triangle Sum Theorem, C=180(92.1+54.8)=33.1\begin{align*}\angle{C} = 180 - (92.1 + 54.8) = 33.1^\circ\end{align*}.

## Identify Accurate Drawings of General Triangles

The Law of Cosines can also be used to verify that drawings of oblique triangles are accurate. In a right triangle, we might use the Pythagorean Theorem to verify that all three sides are the correct length, or we might use trigonometric ratios to verify an angle measurement. However, when dealing with an obtuse or acute triangle, we must rely on the Law of Cosines.

Example 6: In ABC\begin{align*}\triangle{ABC}\end{align*} at the right, a=32,b=20\begin{align*}a = 32, b = 20\end{align*}, And c=16\begin{align*}c = 16\end{align*}. Is the drawing accurate if it labels C\begin{align*}\angle{C}\end{align*} as 35.2\begin{align*}35.2^\circ\end{align*}? If not, what should C\begin{align*}\angle{C}\end{align*} measure?

Solution: We will use the Law of Cosines to check whether or not C\begin{align*}\angle{C}\end{align*} is 35.2\begin{align*}35.2^\circ\end{align*}.

162256256256=202+3222(20)(32)cos35.2=400+10242(20)(32)cos35.2=400+10241045.94547378.05453Law of CosinesSimply squaresMultiplyAdd and subtract

Since 256378.05453\begin{align*}256 \neq 378.05453\end{align*}, we know that C\begin{align*}\angle{C}\end{align*} is not 35.2\begin{align*}35.2^\circ\end{align*}. Using the Law of Cosines, we can figure out the correct measurement of C\begin{align*}\angle{C}\end{align*}.

For some situations, it will be necessary to utilize not only the Law of Cosines, but also the Pythagorean Theorem and trigonometric ratios to verify that a triangle or quadrilateral has been drawn accurately.

Example 7: A builder received plans for the construction of a second-story addition on a house. The diagram shows how the architect wants the roof framed, while the length of the house is 20 ft. The builder decides to add a perpendicular support beam from the peak of the roof to the base. He estimates that new beam should be 8.3 feet high, but he wants to double-check before he begins construction. Is the builder’s estimate of 8.3 feet for the new beam correct? If not, how far off is he?

Solution: If we knew either \begin{align*}\angle{A}\end{align*} or \begin{align*}\angle{C}\end{align*}, we could use trigonometric ratios to find the height of the support beam. However, neither of these angle measures are given to us. Since we know all three sides of \begin{align*}\triangle{ABC}\end{align*}, we can use the Law of Cosines to find one of these angles. We will find \begin{align*}\angle{A}\end{align*}.

Now that we know \begin{align*}\angle{A}\end{align*}, we can use it to find the length of \begin{align*}BD\end{align*}.

Yes, the builder’s estimate of 8.3 feet for the support beam is accurate.

## Points to Consider

• How is the Pythagorean Theorem a special case of the Law of Cosines?
• In the SAS case, is it possible to use the Law of Cosines to find all missing sides and angles?
• In which cases can we not use the Law of Cosines? Explain.
• Give an example of three side lengths that do not form a triangle.

## Review Questions

1. Using each figure and the given information below, decide which side(s) or angle(s) you could find using the Law of Cosines.
Given Information Figure What can you find?
a. \begin{align*}\angle{A} = 50^\circ, b = 8, c = 11\end{align*}
b. \begin{align*}t = 6, r = 7, i = 11\end{align*}
c. \begin{align*}\angle{L} = 79.5^\circ, m = 22.4, p = 13.17\end{align*}
d. \begin{align*}q = 17, d = 12.8, r = 18.6, \angle{Q} = 62.4^\circ\end{align*}
e. \begin{align*}\angle{B} = 67.2^\circ, d = 43, e = 39\end{align*}
f. \begin{align*}c = 9, d = 11, m = 13\end{align*}
1. Using the figures and information from the chart above, use the Law of Cosines to find the following:
1. side \begin{align*}a\end{align*}
2. the largest angle
3. side \begin{align*}l\end{align*}
4. the smallest angle
5. side \begin{align*}b\end{align*}
6. the second largest angle
2. In \begin{align*}\triangle{CIR}, c = 63, i = 52\end{align*}, and \begin{align*}r = 41.9\end{align*}. Find the measure of all three angles.
3. Find \begin{align*}AD\end{align*} using the Pythagorean Theorem, Law of Cosines, trig functions, or any combination of the three.
4. Find \begin{align*}HK\end{align*} using the Pythagorean Theorem, Law of Cosines, trig functions, or any combination of the three if \begin{align*}JK = 3.6, KI = 5.2, JI = 1.9, HI = 6.7\end{align*}, and \begin{align*}\angle{KJI} = 96.3^\circ\end{align*}.
5. Use the Law of Cosines to determine whether or not the following triangle is drawn accurately. If not, determine how much side d is off by.
6. A businessman is traveling down Interstate 43 and has intermittent cell phone service. There is a transmission tower near Interstate 43. The range of service from the tower forms a \begin{align*}47^\circ\end{align*} angle and the range of service is 26 miles to one section of I-43 and 31 miles to another point on I-43.
1. If the businessman is traveling at a speed of 45 miles per hour, how long will he have service for?
2. If he slows down to 35mph, how much longer will he be able to have service?

7. A dock is being built so that it is 183 yards away from one buoy and 306 yards away from a second buoy. The two buoys are 194.1 yards apart.
1. What angle does the dock form with the two buoys?
2. If the second buoy is moved so that it is 329 yards away from the dock and 207 yards away from the first buoy, how does this affect the angle formed by the dock and the two buoys?

8. A golfer hits the ball from the \begin{align*}18^{th}\end{align*} tee. His shot is a 235 yard hook (curves to the left) \begin{align*}9^\circ\end{align*} from the path straight to the flag on the green. If the tee is 329 yards from the flag, how far is the ball away from the flag?
9. Given the numbers 127, 210 and 17 degrees write a problem that uses the Law of Cosines.
10. The sides of a triangle are 15, 27 and 39. What is its area?
11. A person inherits a piece of land in the shape of a trapezoid as shown, with the side lengths being in feet. What is the area of the piece of land? How many acres is it?

## Date Created:

Feb 23, 2012

Aug 06, 2015
You can only attach files to None which belong to you
If you would like to associate files with this None, please make a copy first.