You are playing a game called ‘‘Over the Line’’, where you stand at one corner of a triangle and hit a ball. The field looks like this:

Points are scored by hitting the ball so that it lands beyond the first line in the triangle, but before the second line.

Given that the angle on the left hand side of the triangle is \begin{align*}15^\circ\end{align*}, and the length of the sides of the triangle going to the first scoring line are 30 yards, can you calculate the length of the line you have to hit the ball past to score?

### Watch This

James Sousa Example: Application of the Law of Cosines

### Guidance

This Concept takes ideas that have 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 Law of Cosines is a generalization of the Pythagorean Theorem, where the angle \begin{align*}C\end{align*} is the angle between the two given sides of a triangle:

\begin{align*}c^2 = a^2 + b^2 - 2(a)(b)\cos C\end{align*}

You'll notice that if this were a right triangle, \begin{align*}\cos C = \cos 90^\circ = 0\end{align*}, and so the third term would disappear, leaving the familiar Pythagorean Theorem.

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 A

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

**Solution:** Since \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.

\begin{align*}e^2 & = 18^2 + 16.8^2 - 2(18)(16.8) \cos 12 && \text{Law of Cosines} \\ e^2 & = 324 + 282.24 - 2(18)(16.8) \cos 12 && \text{Simplify squares} \\ e^2 & = 324 + 282.24 - 591.5836689 && \text{Multiply} \\ e^2 & = 14.6563311 && \text{Add and subtract from left to right} \\ e & \approx 3.8 && \text{Square root}\end{align*}

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

#### Example B

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 \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 \begin{align*}x\end{align*}. To find side \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 \begin{align*}103^\circ\end{align*}. This means we have the SAS case and can apply the Law of Cosines.

\begin{align*}x^2 & = 3.6^2 + 5.7^2 - 2(3.6)(5.7) \cos 103 && \text{Law of Cosines} \\ x^2 & = 12.96 + 32.49 - 2(3.6)(5.7) \cos 103 && \text{Simplify squares} \\ x^2 & = 12.96 + 32.49 + 9.23199127 && \text{Multiply} \\ x^2 & = 54.68199127 && \text{Evaluate} \\ x & \approx 7.4 && \text{Square root} \end{align*}

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.

#### Example C

Using \begin{align*}\triangle{JKL}, \angle{J} = 2^\circ, l = 25\end{align*}, and \begin{align*}k = 27\end{align*}. Find \begin{align*}j\end{align*}.

**Solution:** Since \begin{align*}\triangle{JKL}\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.

\begin{align*}j^2 & = 25^2 + 27^2 - 2(25)(27) \cos 2 && \text{Law of Cosines} \\ j^2 & = 625 + 729 - 2(25)(27) \cos 2 && \text{Simplify squares} \\ j^2 & = 625 + 729 - 1349.18 && \text{Multiply} \\ j^2 & = 4.82 && \text{Add and subtract from left to right} \\ j & \approx 2.20 && \text{Square root}\end{align*}

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

### Guided Practice

1. Find side "a" in this triangle, where \begin{align*}\angle{A} = 50^\circ, b = 8, c = 11\end{align*}

2. Find side "l" in this triangle where \begin{align*}\angle{L} = 79.5^\circ, m = 22.4, p = 13.17\end{align*}

3. Find side "b" in this triangle where \begin{align*}\angle{B} = 67.2^\circ, d = 43, e = 39\end{align*}

**Solutions:**

1. \begin{align*}a^2 = 8^2 + 11^2 - 2 \cdot 8 \cdot 11 \cdot \cos 50^\circ, a \approx 8.5\end{align*}

2. \begin{align*}l^2 = 22.4^2 + 13.17^2 - 2 \cdot 22.4 \cdot 13.17 \cdot \cos 79.5^\circ, l \approx 23.8\end{align*}

3. \begin{align*}b^2 = 39^2 + 43^2 - 2 \cdot 39 \cdot 43 \cdot \cos 67.2^\circ, b \approx 45.5\end{align*}

### Concept Problem Solution

Since you know that the length of each of the other 2 sides is 30 yards, and the angle is \begin{align*}15^\circ\end{align*}, you can use the Law of Cosines to find the length of the third side.

\begin{align*} c^2 = a^2 + b^2 - 2ab \cos \theta\\ c^2 = 30^2 + 30^2 - (2)(30)(30) \cos 15^\circ\\ c^2 = 900 + 900 - 1738.67\\ c^2 = 1800 - 1738.67\\ c^2 = 61.33\\ c \approx 7.83\\ \end{align*}

### Explore More

- State the Law of Cosines.

For each triangle below, state the values of a, b, and C.

Now, for each triangle, solve for the missing side using the Law of Cosines.

- Prove that the Law of Cosines is equivalent to the Pythagorean Theorem for all right triangles.