Skip to main content
Logo image

Section 4.2 The Law of Cosines

For centuries, Micronesian navigators have sailed vast distances between islands, relying on ancestral knowledge passed down through generations. Using clues to determine their speed and direction, these navigators construct a mental map of their journey, viewing the canoe as stationary compared to the ever-shifting backdrop of movable islands.
Before embarking on a voyage, navigators know relative positions of islands to the canoes at the start, along their route, and at the end. As the journey unfolds, the navigator’s perspective from the stationary canoe will figuratively “move islands” in their mental map of the voyage. This dynamic process, known as etak, allows navigators to gauge their progress and anticipate their destination even before sighting land.
For example, consider the voyage from Polowat to Guam. Initially, Chuuk Lagoon lies due east in Tan Mailap (see Figure 1.1.2). However, as the journey progresses, Chuuk Lagoon gradually shifts southeastward, aligning with Tan Tumur at approximately \(42.5^{\circ}\) south of east at then end of the voyage at Guam. This process of moving islands is illustrated in Figure 4.2.1.
Figure 4.2.1. In Micronesian navigation, the concept of etak is illustrated as islands appear to move relative to the stationary canoe. During a voyage from Polowat to Guam, Chuuk Lagoon transitions from an eastern to southeastern position, demonstrating the navigator’s perspective where islands are perceived to move while the canoe remains still.
Suppose the navigator is 200 nautical miles into their journey. What is \(\theta\text{,}\) the angle the navigator moved Chuuk Lagoon relative to due east? Assume Chuuk is 143 nm east of Polowat and the angle formed between Chuuk Lagoon, Polowat, and Guam is \(124.5^{\circ}\text{.}\) We can then illustrate what is happening below:
Since the line from Polowat to Chuuk Lagoon and the line due east from the canoe’s current position are parallel, the angle that Chuuk Lagoon has shifted below east is equivalent to the angle formed from Polowat to Chuuk Lagoon to the canoe by the alternate interior angles of parallel lines in geometry. This is shown in the figure below, where the lines in blue change, depending on the position of the canoe, but the distance between Polowat and Chuuk Lagoon, represented in black, remains the same.
This now creates a triangle where two sides (the distances between Chuuk Lagoon and Polowat, and between Polowat and the canoe) and the included angle (from Chuuk Lagoon to Polowat to the canoe) are known. This triangular configuration is a side-angle-side (SAS) scenario. Unfortunately, we cannot apply the Law of Sines to solve this oblique triangle. In this section, we learn the principles of the Law of Cosines and how to utilize it to solve triangles that are side-side-side (SSS) and side-angle-side (SAS), as well as calculating the areas of triangles with only their sides given.

Subsection 4.2.1 Law of Cosines

Note: If the triangle is a right triangle, say \(C=90^{\circ}\text{,}\) then since \(\cos90^{\circ}=0\text{,}\) the Law of Cosines simplifies into the Pythagorean Theorem: \(c^2=a^2+b^2\text{.}\)

Proof.

To prove the first part, we will place a triangle with \(A\) at the origin and \(C\) on the \(x\)-axis, as shown below.
Using right triangle trigonometry, the coordinate of \(C\) can be written as \((b\cos A,b\sin A)\text{.}\) Using the Pythagorean Theorem, we get
\begin{align*} a^2\amp = (b\cos A-c)^2+(b\sin A)^2\\ \amp = b^2\cos^2A-2bc\cos A+c^2+b^2\sin^2A\\ \amp = b^2(\cos^2A+\sin^2A)+c^2-2bc\cos A\\ \amp = b^2(1)+c^2-2bc\cos A\\ \amp = b^2+c^2-2bc\cos A \end{align*}
where we used the identity \(\cos^2A+\sin^2=1\text{.}\) The other two parts of the Law of Cosines can be proved using a similar argument.

Subsection 4.2.2 Using Law of Cosines (SAS)

We are now ready to revisit the problem posed at the start of this section.

Example 4.2.3. Using Law of Cosines (SAS): Etak - Moving Islands.

A canoe is 200 nautical miles into a journey from Polowat to Guam. If Chuuk Lagoon is 143 nm east of Polowat and the angle formed between Chuuk Lagoon, Polowat, and Guam is \(124.5^{\circ}\text{,}\) what is \(\theta\text{,}\) the angle the navigator moved Chuuk Lagoon relative to due east? First, we note that the angle formed between the canoe, Chuuk Lagoon, and Polowat is also \(\theta\text{,}\) giving us a SAS triangle. If we denote the side of the triangle between Chuuk Lagoon and the canoe as \(d\text{,}\) we have the following triangle:

Solution.

Since the Law of Cosines states that the square of one side equals the sum of the squares of the other two sides, minus twice their product times the cosine of their included angle we get
\begin{equation*} d^2=200^2+143^2-2\cdot200\cdot143\cos124.5^{\circ}\text{.} \end{equation*}
Taking the square root we get:
\begin{equation*} d=\sqrt{200^2+143^2-2\cdot200\cdot143\cos124.5^{\circ}}\approx304.71\text{.} \end{equation*}
Now, to find the angle \(\theta\text{,}\) we can use either the Law of Sines or the Law of Cosines. If we opt for the Law of Sines, we already know side \(d = 304.71\text{,}\) the side between Polowat and Chuuk Lagoon at 143 nm, and the angle between the canoe, Polowat, and Chuuk Lagoon at \(124.5^{\circ}\text{.}\) This combination results in a side-side-angle (SSA) triangle. Given that our angle is obtuse (\(124.5^{\circ}\)) and the side opposite it is greater than the side adjacent to the angle (i.e., \(304.71 \gt 143\)), we fall under Case 6 of Table 4.1.7, which gives us one triangle. We will choose the Law of Sines since it requires fewer steps to isolate the angle \(\theta\text{:}\)
\begin{equation*} \frac{\sin124.5^{\circ}}{304.71}=\frac{\sin\theta}{200}\text{.} \end{equation*}
Isolating \(\sin\theta\text{:}\)
\begin{equation*} \sin\theta=200\cdot\frac{\sin124.5^{\circ}}{304.71}\text{.} \end{equation*}
Finally, solving for \(\theta\) take the inverse sine of both sides to get:
\begin{equation*} \theta=\sin^{-1}\left(200\cdot\frac{\sin124.5^{\circ}}{304.71}\right)\approx32.7^{\circ}\text{.} \end{equation*}
Thus, 200 nm into their voyage, the navigator has moved Chuuk Lagoon \(32.7^{\circ}\) south of due east to Tan Harapwel.

Remark 4.2.4. Steps for solving SAS triangles.

In general, when solving SAS triangles:
  1. Use the Law of Cosines to solve for the remaining side.
  2. To find the second angle, you may use either the Law of Cosines or Law of Sines.
    • Using the Law of Sines may offer a simpler method for finding the angle. Be cautious of the SSA triangle (side-side-angle), which uses the ambiguous case. Refer to Table 4.1.7 to determine which case you have. If you encounter Case 3 (two triangles), check if the angle you need to find is acute (\(\lt90^{\circ}\)) or obtuse (\(\gt90^{\circ}\)). If it’s obtuse, subtract the angle found using the Law of Sines from \(180^{\circ}\text{.}\)
    • Using the Law of Cosines does not require verification of whether the angle is acute or obtuse, but it involves more steps to isolate the angle.
  3. Utilize the fact that the sum of the three angles in a triangle equals \(180^{\circ}\) to find the third angle.

Subsection 4.2.3 Using Law of Cosines (SSS)

Example 4.2.5. Using Law of Cosines (SSS).

If the sides of a triangle are \(a=5\text{,}\) \(b=7\text{,}\) and \(c=3\text{,}\) find the angles.

Solution.

To find \(A\text{,}\) we begin by using the Law of Cosines:
\begin{equation*} a^2=b^2+c^2-2ab\cos A\text{.} \end{equation*}
Isolating the term with angle \(A\) we get
\begin{equation*} \cos A=\frac{b^2+c^2-a^2}{2bc}=\frac{7^2+3^2-5^2}{2\cdot7\cdot3}=\frac{33}{42}\text{.} \end{equation*}
Taking the inverse cosine we get
\begin{equation*} A=\cos^{-1}\left(\frac{33}{42}\right)\approx38.2^{\circ}\text{.} \end{equation*}
To find \(B\text{,}\) we can use either the Law of Sines or Law of Cosines. However, to avoid the ambiguous case with the Law of Sines, we will continue with the Law of Cosines and get:
\begin{equation*} \cos B=\frac{a^2+c^2-b^2}{2ac}=\frac{5^2+3^2-7^2}{2\cdot5\cdot3}=-\frac{15}{30}=-\frac{1}{2}\text{.} \end{equation*}
Taking the inverse cosine we get
\begin{equation*} B=\cos^{-1}\left(-\frac{1}{2}\right)=120^{\circ}\text{.} \end{equation*}
To find the last angle, \(C\text{,}\) we can use the fact that the angles in a triangle sum to \(180^{\circ}\text{:}\)
\begin{equation*} C=180^{\circ}-A-B\approx180^{\circ}-38.2^{\circ}-120^{\circ}=21.8^{\circ}\text{.} \end{equation*}

Remark 4.2.6. Steps for solving SSS triangles.

When solving SSS triangles, the process is similar to that of solving SAS triangles, with a slight variation. Instead of solving for a side in Step 1, you solve for an angle. Steps 2 and 3 remain the same:
  1. Use the Law of Cosines to solve for the first angle.
  2. To find the second angle, you may use either the Law of Cosines or Law of Sines.
    • Using the Law of Sines may provide a simpler method for finding the angle. Be cautious of the SSA triangle (side-side-angle), which can lead to the ambiguous case. Refer to Table SSA to determine your case. If you encounter Case 3 (two triangles), verify if the angle you need to find is acute (\(\lt90^{\circ}\)) or obtuse (\(\gt90^{\circ}\)). For obtuse angles, subtract the angle found using the Law of Sines from \(180^{\circ}\text{.}\)
    • Using the Law of Cosines does not require verification of whether the angle is acute or obtuse, but it involves more steps to isolate the angle.
  3. Utilize the fact that the sum of the three angles in a triangle equals \(180^{\circ}\) to find the third angle.

Subsection 4.2.4 Area of an oblique triangle

The Greek mathematician, Heron of Alexandria, derived a formula for the area of a triangle when all three sides are given. Although a more modern derivation for this formula involves the Law of Cosines, it is still known as Heron’s Formula.

Example 4.2.8. Polynesian Triangle.

The Polynesian Triangle is an expanse in the Pacific Ocean comprising over 1,000 islands collectively known as Polynesia. Positioned at its northern corner are the Hawaiian Islands, while Aotearoa marks the southwestern corner, and Rapa Nui lies at the southeastern corner. Historically, the first settlers are believed to have arrived at Ka Lae, Hawaiʻi; Hokianga, Aotearoa; and Anakena, Rapa Nui, respectively. The distances between these pivotal locations are as follows: 6,850 km separates Ka Lae, Hawai`i from Hokianga, Aotearoa; 7,250 km span between Hokianga, Aotearoa and Anakena, Rapa Nui; and 7,150 km separate Rapa Nui from Ka Lae, Hawaiʻi. What is the area of the Polynesian Triangle, rounded to the nearest square mile?

Solution.

Using Heron’s Formula, we begin by calculating the semiperimeter
\begin{equation*} s=\frac{1}{2}(6,850+7,250+7,150)=10,625 \end{equation*}
Then the area created by the Polynesian Triangle is
\begin{align*} \mbox{Area} \amp = \sqrt{10,625(10,625-6,850)(10,625-7,250)(10,625-7,150)} \\ \amp \approx 21,688,886\mbox{km} ^2 \end{align*}

Exercises 4.2.5 Exercises

Exercise Group.

Use the Law of Coines to solve each triangle. Express angless in degrees, rounded to one decimal and sides rounded to two decimals.
1.
\(b = 8\text{,}\) \(c = 10\text{,}\) \(A = 45^{\circ}\text{.}\)
Answer.
\(a\approx7.13\text{,}\) \(B\approx52.5^{\circ}\text{,}\) \(C\approx82.5^{\circ}\)
2.
\(a = 6\text{,}\) \(c = 9\text{,}\) \(B = 60^{\circ}\text{.}\)
Answer.
\(b\approx7.94\text{,}\) \(A\approx40.9^{\circ}\text{,}\) \(C\approx79.1^{\circ}\)
3.
\(a = 12\text{,}\) \(c = 15\text{,}\) \(B = 40^{\circ}\text{.}\)
Answer.
\(b\approx9.66\text{,}\) \(A\approx53.0^{\circ}\text{,}\) \(C\approx87.0^{\circ}\)
4.
\(a = 10\text{,}\) \(c = 14\text{,}\) \(B = 50^{\circ}\text{.}\)
Answer.
\(b\approx10.77\text{,}\) \(A\approx45.3^{\circ}\text{,}\) \(C\approx84.7^{\circ}\)
5.
\(a = 7\text{,}\) \(b = 9\text{,}\) \(c = 12\text{.}\)
Answer.
\(A\approx35.4^{\circ}\text{,}\) \(B\approx48.2^{\circ}\text{,}\) \(C\approx96.4^{\circ}\)
6.
\(a = 10\text{,}\) \(b = 13\text{,}\) \(c = 15\text{.}\)
Answer.
\(A\approx41.1^{\circ}\text{,}\) \(B\approx58.7^{\circ}\text{,}\) \(C\approx80.3^{\circ}\)
7.
\(a = 14\text{,}\) \(b = 12\text{,}\) \(c = 9\text{.}\)
Answer.
\(A\approx82.3{\circ}\text{,}\) \(B\approx58.1^{\circ}\text{,}\) \(C\approx39.6^{\circ}\)
8.
\(a = 13\text{,}\) \(b = 6\text{,}\) \(c = 10\text{.}\)
Answer.
\(A\approx106.0^{\circ}\text{,}\) \(B\approx26.3^{\circ}\text{,}\) \(C\approx47.7^{\circ}\)

Exercise Group.

Use the Law of Coines to solve each triangle. Express angless in degrees, rounded to one decimal and sides rounded to two decimals.
9.
\(a = 15\text{,}\) \(b = 20\text{,}\) \(C = 60^{\circ}\text{.}\)
Answer.
\(c\approx18.03\text{,}\) \(A\approx46.1^{\circ}\text{,}\) \(B\approx73.9^{\circ}\)
10.
\(b = 8\text{,}\) \(c = 12\text{,}\) \(A = 60^{\circ}\text{.}\)
Answer.
\(a\approx10.58\text{,}\) \(B\approx40.9^{\circ}\text{,}\) \(C\approx79.1^{\circ}\)
11.
\(a = 5\text{,}\) \(c = 13\text{,}\) \(B = 30^{\circ}\text{.}\)
Answer.
\(b\approx9.02\text{,}\) \(A\approx16.1^{\circ}\text{,}\) \(C\approx133.9^{\circ}\)
12.
\(a = 9\text{,}\) \(b = 12\text{,}\) \(C = 75^{\circ}\text{.}\)
Answer.
\(c\approx13.00\text{,}\) \(A\approx42.0^{\circ}\text{,}\) \(B\approx63.0^{\circ}\)
13.
\(b = 7\text{,}\) \(c = 10\text{,}\) \(A = 45^{\circ}\text{.}\)
Answer.
\(a\approx7.07\text{,}\) \(B\approx44.4^{\circ}\text{,}\) \(C\approx90.6^{\circ}\)
14.
\(a = 15\text{,}\) \(c = 20\text{,}\) \(B = 55^{\circ}\text{.}\)
Answer.
\(b\approx16.76\text{,}\) \(A\approx47.2^{\circ}\text{,}\) \(C\approx77.8^{\circ}\)
15.
\(a = 5\text{,}\) \(b = 8\text{,}\) \(c = 9\text{.}\)
Answer.
\(A\approx33.6^{\circ}\text{,}\) \(B\approx62.2^{\circ}\text{,}\) \(C\approx84.3^{\circ}\)
16.
\(a = 7\text{,}\) \(b = 21\text{,}\) \(c = 25\text{.}\)
Answer.
\(A\approx14.4^{\circ}\text{,}\) \(B\approx48.3^{\circ}\text{,}\) \(C\approx117.3^{\circ}\)
17.
\(a = 12\text{,}\) \(b = 16\text{,}\) \(c = 5\text{.}\)
Answer.
\(A\approx31.1^{\circ}\text{,}\) \(B\approx136.5^{\circ}\text{,}\) \(C\approx12.4^{\circ}\)
18.
\(a = 5\text{,}\) \(b = 2\text{,}\) \(c = 4\text{.}\)
Answer.
\(A\approx108.2^{\circ}\text{,}\) \(B\approx22.3^{\circ}\text{,}\) \(C\approx49.5^{\circ}\)
19.
\(a = 3\text{,}\) \(b = 7\text{,}\) \(c = 6\text{.}\)
Answer.
\(A\approx25.2^{\circ}\text{,}\) \(B\approx96.4^{\circ}\text{,}\) \(C\approx58.4^{\circ}\)
20.
\(a = 9\text{,}\) \(b = 10\text{,}\) \(c = 17\text{.}\)
Answer.
\(A\approx25.1^{\circ}\text{,}\) \(B\approx28.1^{\circ}\text{,}\) \(C\approx126.9^{\circ}\)

Exercise Group.

Use Heron’s Formula to find the semiperimeter and area of each triangle. Round your answer to the nearest tenth
21.
\(a = 5\text{,}\) \(b = 6\text{,}\) \(c = 7\text{.}\)
Answer.
\(s=9\text{;}\) \(K=14.7\)
22.
\(a = 9\text{,}\) \(b = 12\text{,}\) \(c = 15\text{.}\)
Answer.
\(s=18\text{;}\) \(K=54\)
23.
\(a = 8\text{,}\) \(b = 10\text{,}\) \(c = 12\text{.}\)
Answer.
\(s=15\text{;}\) \(K=39.7\)
24.
\(a = 7\text{,}\) \(b = 9\text{,}\) \(c = 13\text{.}\)
Answer.
\(s=14.5\text{;}\) \(K=30\)
25.
\(a = 15\text{,}\) \(b = 20\text{,}\) \(c = 25\text{.}\)
Answer.
\(s=30\text{;}\) \(K=150\)
26.
\(a = 12\text{,}\) \(b = 16\text{,}\) \(c = 20\text{.}\)
Answer.
\(s=24\text{;}\) \(K=96\)
27.
\(a = 8\text{,}\) \(b = 15\text{,}\) \(c = 17\text{.}\)
Answer.
\(s=20\text{;}\) \(K=60\)
28.
\(a = 9\text{,}\) \(b = 40\text{,}\) \(c = 41\text{.}\)
Answer.
\(s=45\text{;}\) \(K=180\)

29.

The Fijian canoe Uto Ni Yalo embarks on a voyage from Fiji to Tonga, a distance of 412 nautical miles, positioned in the House Lā; Malanai (\(16.81^{\circ}\)). However, adverse weather conditions force a deviation from their original course. After sailing for one day, covering 120 nautical miles, the canoe finds itself 2 houses (\(22.5^{\circ}\)) off course. Assessing the situation, the navigator determines a direct route to Tonga is now viable.
(a)
At this point what is the remaining distance to Tonga, rounded to the nearest nautical mile?
Answer.
305 NM
(b)
What adjustment angle, \(\theta\text{,}\) rounded to the nearest tenth of a degree, is required to navigate towards their destination?
Answer.
\(31.2^{\circ}\)