Further Applications of Trigonometry
10.2 Non-Right Triangles: Law of Cosines
Law of Cosines
Theorem: Law of Cosines
For any triangle ABC, the following are true.
$$c^2=a^2+b^2-2ab\cos(C)$$ $$b^2=a^2+c^2-2ac\cos(B)$$ $$a^2=b^2+c^2-2bc\cos(A)$$
We can use the law of cosines to solve triangles in which we have two sides and know the angle between them. These types of problems are commonly known as side angle side triangles or SAS.
Side Angle Side Case
Example: SAS
Solve the triangle ABC with $B=72^\circ$, $a=6.5$ and $c=5$
Show Solution
Because the angle that we know is between the two sides that we know, this is the perfect problem for law of cosines. We'll start by finding that missing side.
Now we have enough information to start using the law of sines to find the missing angles.
$$ \frac{\sin(A)}{a}=\frac{\sin(B)}{b} \implies \frac{\sin(A)}{6.5}=\frac{\sin(72^\circ)}{6.87} \implies A=\sin^{-1}\left(\frac{6.5\sin(72^\circ)}{6.87}\right)\approx 64.14^\circ $$
We needn't worry about a second triangle here even though we used the inverse sine, because we already have all 3 sides. Using the fact that the angles in the triangle need to add up to 180 we can find the missing angle $180-72-64.14=43.86$.
Example: SAS
Solve the following triangle ABC.
Show Solution
From the diagram we have $a=5.9$, $c=6.8$, and $B=114.6^\circ$.
Because we know two sides and the included angle, we start with the law of cosines to find $b$.
Now we can use the law of sines for one angle, then angle sum for the last angle.
$$ \frac{\sin(A)}{a}=\frac{\sin(B)}{b} \implies \frac{\sin(A)}{5.9}=\frac{\sin(114.6^\circ)}{10.70} \implies A=\sin^{-1}\left(\frac{5.9\sin(114.6^\circ)}{10.70}\right)\approx 30.10^\circ $$
$$ C=180^\circ-114.6^\circ-30.10^\circ\approx 35.30^\circ $$
MyOpenMath: Try your own!
Side Side Side Case
It's also possible to solve triangles of which we know 3 sides but none of the angles using the law of cosines.
Example: SSS
Solve the following triangle ABC.
Show Solution
From the diagram we have $a=8$, $b=12$, and $c=11$.
With SSS, use law of cosines to find one angle first. We'll find $A$.
Now find $B$ the same way.
Then use angle sum for $C$.
$$ C=180^\circ-40.42^\circ-76.53^\circ\approx 63.05^\circ $$
Example: SSS
Solve the following triangle ABC with $a=115$, $b=125$, and $c=100$
Show Solution
We know all three sides, so this is an SSS problem.
Use law of cosines to find $A$.
Use law of cosines again to find $B$.
Then use angle sum for the final angle.
$$ C=180^\circ-60.26^\circ-70.70^\circ\approx 49.03^\circ $$
MyOpenMath: Try your own!
Word Problems
Example: Memorial
A local memorial is V-shaped with equal sides of length $246$ ft. The angle between these sides is $125^\circ$. Find the distance between the ends of the two sides.
Show Solution
Let the unknown distance between the two ends be $d$. The two known sides are each $246$ ft and the included angle is $125^\circ$, so law of cosines gives:
The distance between the two ends is approximately $\boxed{436.4\text{ ft}}$.
Example: Satellite Calculations
A satellite calculates the distances between two cities by pinging them. City A is $370$km away and city B is $350$km away. The angle between these measurements is $2.1^\circ$. What is the distance between the two cities? Round to the nearest tenth of a kilometer.
Show Solution
Let $d$ be the distance between the two cities. The satellite-to-city distances are $370$ km and $350$ km with included angle $2.1^\circ$, so use law of cosines:
Rounded to the nearest tenth, the distance between the cities is $\boxed{24.0\text{ km}}$.
Example: Pilot Navigation
A pilot flies in a straight path for 2 hours and 30 mins. She then makes a course correction, heading $15^\circ$ to the right of her original course and flies 2 hours in the new direction. If she maintains a constant speed of 600 miles per hour, how far is she from her starting position? Round your answer to two decimal places.
Show Solution
First convert the travel times into distances.
$$ 2\text{ hours and }30\text{ min} = 2.5\text{ hours} $$
$$ 600(2.5)=1500 $$
$$ 600(2)=1200 $$
So the two legs of the trip are $1500$ miles and $1200$ miles. Because the pilot changes course by $15^\circ$, the interior angle of the triangle is $180^\circ-15^\circ=165^\circ$.
Let $d$ be the distance from her starting position.
The pilot is approximately $\boxed{2677.19\text{ miles}}$ from her starting position.