Learning Outcomes
- Use the Law of Cosines to solve oblique triangles.
- Solve applied problems using the Law of Cosines.
- Use Heron’s formula to find the area of a triangle.
Suppose a boat leaves port, travels 10 miles, turns 20 degrees, and travels another 8 miles as shown in Figure 1. How far from port is the boat?
Unfortunately, while the Law of Sines enables us to address many non-right triangle cases, it does not help us with triangles where the known angle is between two known sides, a SAS (side-angle-side) triangle, or when all three sides are known, but no angles are known, a SSS (side-side-side) triangle. In this section, we will investigate another tool for solving oblique triangles described by these last two cases.
Using the Law of Cosines to Solve Oblique Triangles
The tool we need to solve the problem of the boat’s distance from the port is the Law of Cosines, which defines the relationship among angle measurements and side lengths in oblique triangles. Three formulas make up the Law of Cosines. At first glance, the formulas may appear complicated because they include many variables. However, once the pattern is understood, the Law of Cosines is easier to work with than most formulas at this mathematical level.
Understanding how the Law of Cosines is derived will be helpful in using the formulas. The derivation begins with the Generalized Pythagorean Theorem, which is an extension of the Pythagorean Theorem to non-right triangles. Here is how it works: An arbitrary non-right triangle [latex]ABC[/latex] is placed in the coordinate plane with vertex [latex]A[/latex] at the origin, side [latex]c[/latex] drawn along the x-axis, and vertex [latex]C[/latex] located at some point [latex]\left(x,y\right)[/latex] in the plane, as illustrated in Figure 2. Generally, triangles exist anywhere in the plane, but for this explanation we will place the triangle as noted.
We can drop a perpendicular from [latex]C[/latex] to the x-axis (this is the altitude or height). Recalling the basic trigonometric identities, we know that
In terms of [latex]\theta ,\text{ }x=b\cos \theta [/latex] and [latex]y=b\sin \theta .\text{ }[/latex] The [latex]\left(x,y\right)[/latex] point located at [latex]C[/latex] has coordinates [latex]\left(b\cos \theta ,b\sin \theta \right)[/latex]. Using the side [latex]\left(x-c\right)[/latex] as one leg of a right triangle and [latex]y[/latex] as the second leg, we can find the length of hypotenuse [latex]a[/latex] using the Pythagorean Theorem. Thus,
The formula derived is one of the three equations of the Law of Cosines. The other equations are found in a similar fashion.
Keep in mind that it is always helpful to sketch the triangle when solving for angles or sides. In a real-world scenario, try to draw a diagram of the situation. As more information emerges, the diagram may have to be altered. Make those alterations to the diagram and, in the end, the problem will be easier to solve.
A General Note: Law of Cosines
The Law of Cosines states that the square of any side of a triangle is equal to the sum of the squares of the other two sides minus twice the product of the other two sides and the cosine of the included angle. For triangles labeled as in Figure 3, with angles [latex]\alpha ,\beta [/latex], and [latex]\gamma [/latex], and opposite corresponding sides [latex]a,b[/latex], and [latex]c[/latex], respectively, the Law of Cosines is given as three equations.
[latex]{a}^{2}={b}^{2}+{c}^{2}-2bc\cos \alpha[/latex]
[latex]{b}^{2}={a}^{2}+{c}^{2}-2ac\cos \beta[/latex]
[latex]{c}^{2}={a}^{2}+{b}^{2}-2ab\cos \gamma [/latex]
To solve for a missing side measurement, the corresponding opposite angle measure is needed.
When solving for an angle, the corresponding opposite side measure is needed. We can use another version of the Law of Cosines to solve for an angle.
[latex]\cos \alpha =\frac{{b}^{2}+{c}^{2}-{a}^{2}}{2bc}[/latex]
[latex]\cos \beta =\frac{{a}^{2}+{c}^{2}-{b}^{2}}{2ac}[/latex]
[latex]\cos\gamma =\frac{{a}^{2}+{b}^{2}-{c}^{2}}{2ab}[/latex]
How To: Given two sides and the angle between them (SAS), find the measures of the remaining side and angles of a triangle.
- Sketch the triangle. Identify the measures of the known sides and angles. Use variables to represent the measures of the unknown sides and angles.
- Apply the Law of Cosines to find the length of the unknown side or angle.
- Apply the Law of Sines or Cosines to find the measure of a second angle.
- Compute the measure of the remaining angle.
Example 1: Finding the Unknown Side and Angles of a SAS Triangle
Find the unknown side and angles of the triangle in Figure 4.
Try It
Find the missing side and angles of the given triangle: [latex]\alpha =30^\circ ,b=12,c=24[/latex].
Try It
Example 2: Solving for an Angle of a SSS Triangle
Find the angle [latex]\alpha [/latex] for the given triangle if side [latex]a=20[/latex], side [latex]b=25[/latex], and side [latex]c=18[/latex].
Try It
Given [latex]a=5,b=7[/latex], and [latex]c=10[/latex], find the missing angles.
Try It
Solving Applied Problems Using the Law of Cosines
Just as the Law of Sines provided the appropriate equations to solve a number of applications, the Law of Cosines is applicable to situations in which the given data fits the cosine models. We may see these in the fields of navigation, surveying, astronomy, and geometry, just to name a few.
Example 3: Using the Law of Cosines to Solve a Communication Problem
On many cell phones with GPS, an approximate location can be given before the GPS signal is received. This is accomplished through a process called triangulation, which works by using the distances from two known points. Suppose there are two cell phone towers within range of a cell phone. The two towers are located 6000 feet apart along a straight highway, running east to west, and the cell phone is north of the highway. Based on the signal delay, it can be determined that the signal is 5050 feet from the first tower and 2420 feet from the second tower. Determine the position of the cell phone north and east of the first tower, and determine how far it is from the highway.
Example 4: Calculating Distance Traveled Using a SAS Triangle
Returning to our problem at the beginning of this section, suppose a boat leaves port, travels 10 miles, turns 20 degrees, and travels another 8 miles. How far from port is the boat? The diagram is repeated here in Figure 8.
Using Heron’s Formula to Find the Area of a Triangle
We already learned how to find the area of an oblique triangle when we know two sides and an angle. We also know the formula to find the area of a triangle using the base and the height. When we know the three sides, however, we can use Heron’s formula instead of finding the height. Heron of Alexandria was a geometer who lived during the first century A.D. He discovered a formula for finding the area of oblique triangles when three sides are known.
A General Note: Heron’s Formula
Heron’s formula finds the area of oblique triangles in which sides [latex]a,b[/latex], and [latex]c[/latex] are known.
[latex]\text{Area}=\sqrt{s\left(s-a\right)\left(s-b\right)\left(s-c\right)}[/latex]
where [latex]s=\frac{\left(a+b+c\right)}{2}[/latex] is one half of the perimeter of the triangle, sometimes called the semi-perimeter.
Example 5: Using Heron’s Formula to Find the Area of a Given Triangle
Find the area of the triangle in Figure 9 using Heron’s formula.
Try It
Use Heron’s formula to find the area of a triangle with sides of lengths [latex]a=29.7\text{ft},b=42.3\text{ft}[/latex], and [latex]c=38.4\text{ft}[/latex].
Try It
Example 6: Applying Heron’s Formula to a Real-World Problem
A Chicago city developer wants to construct a building consisting of artist’s lofts on a triangular lot bordered by Rush Street, Wabash Avenue, and Pearson Street. The frontage along Rush Street is approximately 62.4 meters, along Wabash Avenue it is approximately 43.5 meters, and along Pearson Street it is approximately 34.1 meters. How many square meters are available to the developer? See Figure 10 for a view of the city property.
Try It
Find the area of a triangle given [latex]a=4.38\text{ft},b=3.79\text{ft,}[/latex] and [latex]c=5.22\text{ft}\text{.}[/latex]
Try It
Key Equations
Law of Cosines |
[latex]{a}^{2}={b}^{2}+{c}^{2}-2bc\cos \alpha[/latex] [latex]{b}^{2}={a}^{2}+{c}^{2}-2ac\cos \beta[/latex] [latex]{c}^{2}={a}^{2}+{b}^{2}-2ab\cos \gamma [/latex] |
Heron’s formula | [latex]\text{Area}=\sqrt{s\left(s-a\right)\left(s-b\right)\left(s-c\right)}[/latex] where [latex]s=\frac{\left(a+b+c\right)}{2}[/latex] |
Key Concepts
- The Law of Cosines defines the relationship among angle measurements and lengths of sides in oblique triangles.
- The Generalized Pythagorean Theorem is the Law of Cosines for two cases of oblique triangles: SAS and SSS. Dropping an imaginary perpendicular splits the oblique triangle into two right triangles or forms one right triangle, which allows sides to be related and measurements to be calculated.
- The Law of Cosines is useful for many types of applied problems. The first step in solving such problems is generally to draw a sketch of the problem presented. If the information given fits one of the three models (the three equations), then apply the Law of Cosines to find a solution.
- Heron’s formula allows the calculation of area in oblique triangles. All three sides must be known to apply Heron’s formula.
-
-
Glossary
- Law of Cosines
- states that the square of any side of a triangle is equal to the sum of the squares of the other two sides minus twice the product of the other two sides and the cosine of the included angle
- Generalized Pythagorean Theorem
- an extension of the Law of Cosines; relates the sides of an oblique triangle and is used for SAS and SSS triangles
-