# 5.11: Law of Cosines

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

**Practice**Law of Cosines

While helping your mom bake one day, the two of you get an unusual idea. You want to cut the cake into pieces, and then frost over the surface of each piece. You start by cutting out a slice of the cake, but you don't quite cut the slice correctly. It ends up being an oblique triangle, with a 5 inch side, a 6 inch side, and an angle of \begin{align*}70^\circ\end{align*}

By the end of this Concept, you'll know how to find the length of the third side of the triangle in cases like this by using the Law of Cosines.

### Watch This

### Guidance

The Law of Cosines is a fantastic extension of the Pythagorean Theorem to oblique triangles. In this Concept, we show some interesting ways to utilize this formula to analyze real world situations.

#### Example A

In a game of pool, a player must put the eight ball into the bottom left pocket of the table. Currently, the eight ball is 6.8 feet away from the bottom left pocket. However, due to the position of the cue ball, she must bank the shot off of the right side bumper. If the eight ball is 2.1 feet away from the spot on the bumper she needs to hit and forms a \begin{align*}168^\circ\end{align*}

Note: This is actually a trick shot performed by spinning the eight ball, and the eight ball will not actually travel in straight-line trajectories. However, to simplify the problem, assume that it travels in straight lines.

**Solution:** In the scenario above, we have the SAS case, which means that we need to use the Law of Cosines to begin solving this problem. The Law of Cosines will allow us to find the distance from the spot on the bumper to the pocket \begin{align*}(y)\end{align*}

\begin{align*}y^2 & = 6.8^2 + 2.1^2 - 2(6.8)(2.1) \cos 168^\circ \\
y^2 & = 78.59 \\
y & = 8.86\ feet\end{align*}

The distance from the spot on the bumper to the pocket is 8.86 feet. We can now use this distance and the Law of Sines to find angle \begin{align*}X\end{align*}

\begin{align*}\frac{\sin 168^\circ}{8.86} & = \frac{\sin X}{6.8} \\
\frac{6.8 \sin 168^\circ}{8.86} & = \sin X \\
0.1596 & \approx \sin B \\
\angle{B} & = 8.77^\circ\end{align*}

In the previous example, we looked at how we can use the Law of Sines and the Law of Cosines together to solve a problem involving the SSA case. In this section, we will look at situations where we can use not only the Law of Sines and the Law of Cosines, but also the Pythagorean Theorem and trigonometric ratios. We will also look at another real-world application involving the SSA case.

#### Example B

Three scientists are out setting up equipment to gather data on a local mountain. Person 1 is 131.5 yards away from Person 2, who is 67.8 yards away from Person 3. Person 1 is 72.6 yards away from the mountain. The mountains forms a \begin{align*}103^\circ\end{align*}

**Solution:** In the triangle formed by the three people, we know two sides and the included angle (SAS). We can use the Law of Cosines to find the remaining side of this triangle, which we will call \begin{align*}x\end{align*}

To find \begin{align*}x\end{align*}

\begin{align*}x^2 & = 131.5^2 + 67.8^2 -2(131.5)(67.8) \cos 92.7 \\
x^2 & = 22729.06397 \\
x & = 150.8\ yds\end{align*}

Now that we know \begin{align*}x = 150.8\end{align*}

\begin{align*}\frac{\sin 103}{150.8} & = \frac{\sin Y}{72.6} \\
\frac{72.6 \sin 103}{150.8} & = \sin Y \\
0.4690932805 & = \sin Y \\
28.0 & \approx \angle{Y}\end{align*}

#### Example C

Katie is constructing a kite shaped like a triangle.

She knows that the lengths of the sides are a = 13 inches, b = 20 inches, and c = 19 inches. What is the measure of the angle between sides "a" and "b"?

**Solution:** Since she knows the length of each of the sides of the triangle, she can use the Law of Cosines to find the angle desired:

\begin{align*}c^2 & = a^2 + b^2 - 2(a)(b)\cos C \\
19^2 & = 13^2 + 20^2 - (2)(13)(20)\cos C \\
361 & = 169 + 400 - 520\cos C \\
-208 & = -520\cos C\\
\cos C & = 0.4\\
C \approx 66.42^\circ
\end{align*}

### Vocabulary

**Law of Cosines:** The ** law of cosines** is a rule involving the sides of an oblique triangle stating that the square of a side of the triangle is equal to the sum of the squares of the other two sides plus two times the lengths of the other two sides times the cosine of the angle opposite the side being computed.

### Guided Practice

1. You are cutting a triangle out for school that looks like this:

Find side \begin{align*}c\end{align*}

2. While hiking one day you walk for 2 miles in one direction. You then turn \begin{align*}110^\circ\end{align*}

When you turn to the left again to complete the triangle that is your hiking path for the day, how far will you have to walk to complete the third side? What angle should you turn before you start walking back home?

3. A support at a construction site is being used to hold up a board so that it makes a triangle, like this:

If the angle between the support and the ground is \begin{align*}17^\circ\end{align*}

**Solutions:**

1. You know that two of the sides have lengths of 11 and 14 inches, and that the angle between them is \begin{align*}14^\circ\end{align*}

\begin{align*}
c^2 = a^2 + b^2 - 2ab\cos \theta\\
c^2 = 121 + 196 - (2)(11)(14)(.97)\\
c^2 = 121 + 196 - 307.384\\
c^2 = 9.16\\
c = 3.03\\
\end{align*}

And with this you can use the Law of Sines to solve for the unknown angle:

\begin{align*}
\frac{\sin 14^\circ}{3.03} = \frac{\sin B}{11}\\
\sin B = \frac{11\sin 14^\circ}{3.03}\\
\sin B = .878\\
B = \sin^{-1}(.0307) = 61.43^\circ\\
\end{align*}

2. Since you know the lengths of two of the legs of the triangle, along with the angle between them, you can use the Law of Cosines to find out how far you'll have to walk along the third leg:

\begin{align*}
c^2 = a^2 + b^2 + 2ab\cos 70^\circ\\
c^2 = 4 + 1 + (2)(2)(1)(.342)\\
c^2 = 6.368\\
c = \sqrt{6.368} \approx 2.52\\
\end{align*}

Now you have enough information to solve for the interior angle of the triangle that is supplementary to the angle you need to turn:

\begin{align*}
\frac{\sin A}{a} = \frac{\sin B}{b}\\
\frac{\sin 70^\circ}{2.52} = \frac{\sin B}{2}\\
\sin B = \frac{2 \sin 70^\circ}{2.52} = \frac{1.879}{2.52} = .746\\
B = \sin^{-1}(.746) = 48.25^\circ\\
\end{align*}

The angle \begin{align*}48.25^\circ\end{align*}

3. You should use the Law of Cosines first to solve for the distance from the ground to where the support meets the board:

\begin{align*}
c^2 = a^2 + b^2 + 2ab\cos 17^\circ\\
c^2 = 6.25 + 9 + (2)(2.5)(3)\cos 17^\circ\\
c^2 = 6.25 + 9 + (2)(2.5)(3)(.956)\\
c^2 = 26.722\\
c \approx 5.17\\
\end{align*}

And now you can use the Law of Sines:

\begin{align*}
\frac{\sin A}{a} = \frac{\sin B}{b}\\
\frac{\sin 17^\circ}{5.17} = \frac{\sin B}{2.5}\\
\sin B = \frac{2.5 \sin 17^\circ}{5.17} = .1414\\
B = \sin^{-1}(.1414) = 8.129^\circ\\
\end{align*}

### Concept Problem Solution

You can use the Law of Cosines to help your mom find out the length of the third side on the piece of cake:

\begin{align*}
c^2 = a^2 + b^2 - 2ab\cos C\\
c^2 = 5^2 + 6^2 + (2)(5)(6) \cos 70^\circ\\
c^2 = 25 + 36 + 60(.342)\\
c^2 = 81.52\\
c \approx 9.03\\
\end{align*}

The piece of cake is just a little over 9 inches long.

### Practice

In \begin{align*}\triangle ABC\end{align*}, a=12, b=15, and c=20.

- Find \begin{align*}m\angle A\end{align*}.
- Find \begin{align*}m\angle B\end{align*}.
- Find \begin{align*}m\angle C\end{align*}.

In \begin{align*}\triangle DEF\end{align*}, d=25, e=13, and f=16.

- Find \begin{align*}m\angle D\end{align*}.
- Find \begin{align*}m\angle E\end{align*}.
- Find \begin{align*}m\angle F\end{align*}.

In \begin{align*}\triangle KBP\end{align*}, k=19, \begin{align*}\angle B=61^\circ\end{align*}, and p=12.

- Find the length of b.
- Find \begin{align*}m\angle K\end{align*}.
- Find \begin{align*}m\angle P\end{align*}.
- While hiking one day you walk for 5 miles due east, then turn to the left and walk 3 more miles \begin{align*}30^\circ\end{align*} west of north. At this point you want to return home. How far are you from home if you were to walk in a straight line?
- A parallelogram has sides of 20 and 31 ft, and an angle of \begin{align*}46^\circ\end{align*}. Find the length of the longer diagonal of the parallelogram.
- Dirk wants to find the length of a long building from one side (point A) to the other (point B). He stands outside of the building (at point C), where he is 500 ft from point A and 220 ft from point B. The angle at C is \begin{align*}94^\circ\end{align*}. Find the length of the building.

Determine whether or not each triangle is possible.

- a=12, b=15, c=10
- a=1, b=5, c=4
- \begin{align*}\angle A=32^\circ\end{align*}, a=8, b=10

### Notes/Highlights Having trouble? Report an issue.

Color | Highlighted Text | Notes | |
---|---|---|---|

Please Sign In to create your own Highlights / Notes | |||

Show More |

Included Angle

The included angle in a triangle is the angle between two known sides.law of cosines

The law of cosines is a rule relating the sides of a triangle to the cosine of one of its angles. The law of cosines states that , where is the angle across from side .SAS

SAS means side, angle, side, and refers to the fact that two sides and the included angle of a triangle are known.SSS

SSS means side, side, side and refers to the fact that all three sides of a triangle are known in a problem.### Image Attributions

Here you'll learn to apply the Law of Cosines in different situations involving triangles.