8.5 Law of Cosines
In Section 8.4, we developed the Law of Sines (Theorem 8.15) to enable us to solve triangles in the `Angle-Angle-Side’ (AAS), the `Angle-Side-Angle’ (ASA) and the ambiguous `Side-Side-Angle’ (SSA) 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.
Theorem 8.18 Law of Cosines
Given a triangle with angle-side opposite pairs , and , the following equations hold
or, solving for the cosine in each equation, we have
To prove the theorem, we consider a generic triangle with the vertex of angle at the origin with side positioned along the positive -axis as sketched in the diagram below.
From this set-up, we immediately find that the coordinates of and are and . From Theorem 7.4, we know that because the point lies on a circle of radius , the coordinates of are . (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 .)
We note that the distance between the points and is none other than the length of side . Using the distance formula, Equation 1.1, we get
The remaining formulas given in Theorem 8.18 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 and in the above proof is that is an angle-side opposite pair and and 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.
Indeed, in a triangle in which , (i.e., a right triangle) then and we get the familiar relationship . 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]
Example 8.5.1
Example 8.5.1.1
Solve the following triangles. Give exact answers and decimal approximations (rounded to hundredths) and sketch the triangle.
, units, units
Solution:
Solve the triangle with the properties: , units, units. Give exact answers and decimal approximations (rounded to hundredths) and sketch the triangle.
We are given the lengths of two sides, and , and the measure of the included angle, .
With no angle-side opposite pair to use for the Law of Sines, we apply the Law of Cosines. We get
In order to determine the measures of the remaining angles and , we are forced to used the derived value for . There are two ways to proceed at this point. We could use the Law of Cosines again, or, now that we have the angle-side opposite pair we could use the Law of Sines.
The advantage to using the Law of Cosines over the Law of Sines in cases like this is that unlike the sine function, the cosine function distinguishes between acute and obtuse angles. The cosine of an acute is positive, whereas the cosine of an obtuse angle is negative. The sine of both acute and obtuse angles are positive, thus the sine of an angle alone is not enough to determine if the angle in question is acute or obtuse.
As both authors of the textbook prefer the Law of Cosines, we proceed with this method first. When using the Law of Cosines, it’s always best to find the measure of the largest unknown angle first, as this will give us the obtuse angle of the triangle, if there is one.
The largest angle is opposite the longest side, so we choose to find first. To that end, we use the formula and substitute , and . We get[3]
Because is an angle in a triangle, we know the radian measure of must lie between and radians. This matches the range of the arccosine function, so we have
At this point, we could find using
that is if we trust our approximation for .
To minimize propagation of error (and obtain an exact answer for ), however, we could use the Law of Cosines again.[4] From with , and , we get
We sketch the triangle below.
As we mentioned earlier, once we’ve determined it is possible to use the Law of Sines to find the remaining angles. Here, however, we must proceed with caution as we are in the ambiguous (SSA) case. In the ambiguous case it is advisable to first find the smallest of the unknown angles, because we are guaranteed it will be acute.[5]
In this case, we would find as the side opposite is smaller than the side opposite the other unknown angle, . Using the angle-side opposite pair , we get . The usual calculations produces and .
Example 8.5.1.2
Solve the following triangles. Give exact answers and decimal approximations (rounded to hundredths) and sketch the triangle.
units, units, units
Solution:
Solve the triangle with the properties: units, units, units. Give exact answers and decimal approximations (rounded to hundredths) and sketch the triangle.
All three sides and no angles are given, so we are forced to use the Law of Cosines. Following our discussion in the previous problem, we find first, as it is opposite the longest side, . We get
Now that we have obtained an angle-side opposite pair , we could proceed using the Law of Sines. The Law of Cosines, however, offers us a rare opportunity to find the remaining angles using only the data given to us in the statement of the problem.
Using the Law of Cosines, we get
and
We sketch this triangle below.
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 2 in Example 8.5.1, where the approximate values we record for the measures of the angles sum to , which is geometrically impossible.
Example 8.5.2
Example 8.5.2
A researcher wishes to determine the width of a vernal pond as drawn below. From a point , he finds the distance to the eastern-most point of the pond to be feet, while the distance to the western-most point of the pond from is feet. If the angle between the two lines of sight is , find the width of the pond.
Solution:
We are given the lengths of two sides and the measure of an included angle, so we may apply the Law of Cosines to find the length of the missing side opposite the given angle.
Calling this length (for width), we get
In Section 8.4, we used the proof of the Law of Sines to develop Theorem 8.17 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, the so-called Heron’s Formula.[6]
Theorem 8.19 Heron’s Formula
Suppose , and denote the lengths of the three sides of a triangle. Let be the semiperimeter of the triangle, that is, let . Then, the area enclosed by the triangle is given by
We prove Theorem 8.19 using Theorem 8.17. Using the convention that the angle is opposite the side , we have from Theorem 8.17.
In order to simplify computations, we start by manipulating the expression for .
The Law of Cosines tells us , so substituting this into our equation for gives
Recognizing as a perfect square, , we can factor the resulting difference of squares:
Next, we regroup and . Recognizing and , we continue factoring:
At this stage, we recognize the last factor as the semiperimeter, . To complete the proof, we note that
Similarly, we find and . Hence, we get
so that as required.
We close with an example of Heron’s Formula.
Example 8.5.3
Example 8.5.3
Compute the area enclosed of the triangle in Example 8.5.1 number 2.
Solution:
We are given , and . Using these values, we find
so
Per Heron’s Formula,
8.5.1 Section Exercises
In Exercises 1 – 10, use the Law of Cosines to compute the remaining side(s) and angle(s) if possible.
In Exercises 11 – 16, use any method to solve for the remaining side(s) and angle(s), if possible.
- Determine the area of the triangles given in Exercises 6, 8 and 10 above.
- 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.
- A geologist wants to measure the diameter of an impact 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 , what is the diameter of the crater? Round your answer to the nearest hundredth of a mile.
- From the Pedimaxus International Airport a tour helicopter can fly to Cliffs of Insanity Point by following a bearing of NE for 192 miles and it can fly to Bigfoot Falls by following a bearing of SE for 207 miles.[7] Find the distance between Cliffs of Insanity Point and Bigfoot Falls. Round your answer to the nearest mile.
- Cliffs of Insanity Point and Bigfoot Falls from Exercise 20 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.
- A naturalist sets off on a hike from a lodge on a bearing of SW. After 1.5 miles, she changes her bearing to SW 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.
- The HMS Sasquatch leaves port on a bearing of NE and travels for 5 miles. It then changes course and follows a heading of SE 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.
- The SS Bigfoot leaves a harbor bound for Nessie Island which is 300 miles away at a bearing of NE. 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 SW, 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.
- From a point 300 feet above level ground in a firetower, a ranger spots two fires in the Yeti National Forest. The angle of depression[8] made by the line of sight from the ranger to the first fire is and the angle of depression made by line of sight from the ranger to the second fire is . The angle formed by the two lines of sight is . Find the distance between the two fires. Round your answer to the nearest foot.
HINT: In order to use the 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.
- 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 11, 13, and 14 above in order to demonstrate this result.
Section 8.5 Exercise Answers can be found in the Appendix … Coming soon
- Here, `Side-Angle-Side' means that we are given two sides and the `included' angle - that is, the given angle is adjacent to both of the given sides. ↵
- This shouldn't come as too much of a shock. All of the theorems in Trigonometry can ultimately be traced back to the definition of the circular functions along with the distance formula and hence, the Pythagorean Theorem. ↵
- after simplifying ↵
- Your instructor will let you know which procedure to use. It all boils down to how much you trust your calculator. ↵
- There can only be one obtuse angle in the triangle, and if there is one, it must be the largest. ↵
- Or `Hero's Formula.' ↵
- Please refer to Section 8.4.1 for an introduction to bearings. ↵
- See Exercise 18 in Section 7.2.1 for the definition of this angle. ↵