63 Non-right Triangles: Law of Cosines

Learning Objectives

In this section, you will:

  • 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). How far from port is the boat?

A triangle whose vertices are the boat, the port, and the turning point of the boat. The side between the port and the turning point is 10 mi, and the side between the turning point and the boat is 8 miles. The side between the port and the turning point is extended in a straight dotted line. The angle between the dotted line and the 8 mile side is 20 degrees.
Figure 1.

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). Generally, triangles exist anywhere in the plane, but for this explanation we will place the triangle as noted.

A triangle A B C plotted in quadrant 1 of the x,y plane. Angle A is theta degrees with opposite side a, angles B and C, with opposite sides b and c respectively, are unknown. Vertex A is located at the origin (0,0), vertex B is located at some point (x-c, 0) along the x-axis, and point C is located at some point in quadrant 1 at the point (b times the cos of theta, b times the sin of theta).
Figure 2.

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

[latex]\mathrm{cos}\,\theta =\frac{x\text{(adjacent)}}{b\text{(hypotenuse)}}\text{ and }\mathrm{sin}\,\theta =\frac{y\text{(opposite)}}{b\text{(hypotenuse)}}[/latex]

In terms of[latex]\,\theta ,\text{ }x=b\mathrm{cos}\,\theta \,[/latex]and[latex]y=b\mathrm{sin}\,\theta .\text{ }[/latex]The[latex]\,\left(x,y\right)\,[/latex]point located at[latex]\,C\,[/latex]has coordinates[latex]\,\left(b\mathrm{cos}\,\theta ,\,\,b\mathrm{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,

[latex]\begin{array}{llllll} {a}^{2}={\left(x-c\right)}^{2}+{y}^{2}\hfill & \hfill & \hfill & \hfill & \hfill & \hfill \\ \text{ }={\left(b\mathrm{cos}\,\theta -c\right)}^{2}+{\left(b\mathrm{sin}\,\theta \right)}^{2}\hfill & \hfill & \hfill & \hfill & \hfill & \text{Substitute }\left(b\mathrm{cos}\,\theta \right)\text{ for}\,x\,\,\text{and }\left(b\mathrm{sin}\,\theta \right)\,\text{for }y.\hfill \\ \text{ }=\left({b}^{2}{\mathrm{cos}}^{2}\theta -2bc\mathrm{cos}\,\theta +{c}^{2}\right)+{b}^{2}{\mathrm{sin}}^{2}\theta \hfill & \hfill & \hfill & \hfill & \hfill & \text{Expand the perfect square}.\hfill \\ \text{ }={b}^{2}{\mathrm{cos}}^{2}\theta +{b}^{2}{\mathrm{sin}}^{2}\theta +{c}^{2}-2bc\mathrm{cos}\,\theta \hfill & \hfill & \hfill & \hfill & \hfill & \text{Group terms noting that }{\mathrm{cos}}^{2}\theta +{\mathrm{sin}}^{2}\theta =1.\hfill \\ \text{ }={b}^{2}\left({\mathrm{cos}}^{2}\theta +{\mathrm{sin}}^{2}\theta \right)+{c}^{2}-2bc\mathrm{cos}\,\theta \hfill & \hfill & \hfill & \hfill & \hfill & \text{Factor out }{b}^{2}.\hfill \\ {a}^{2}={b}^{2}+{c}^{2}-2bc\mathrm{cos}\,\theta \hfill & \hfill & \hfill & \hfill & \hfill & \hfill \end{array}[/latex]

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.

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), 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]\begin{array}{l}{a}^{2}={b}^{2}+{c}^{2}-2bc\,\,\mathrm{cos}\,\alpha \\ {b}^{2}={a}^{2}+{c}^{2}-2ac\,\,\mathrm{cos}\,\beta \\ {c}^{2}={a}^{2}+{b}^{2}-2ab\,\,\mathrm{cos}\,\gamma \end{array}[/latex]
A triangle with standard labels: angles alpha, beta, and gamma with opposite sides a, b, and c respectively.
Figure 3.

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]\begin{array}{l}\hfill \\ \begin{array}{l}\begin{array}{l}\hfill \\ \mathrm{cos}\text{ }\alpha =\frac{{b}^{2}+{c}^{2}-{a}^{2}}{2bc}\hfill \end{array}\hfill \\ \mathrm{cos}\text{ }\beta =\frac{{a}^{2}+{c}^{2}-{b}^{2}}{2ac}\hfill \\ \mathrm{cos}\text{ }\gamma =\frac{{a}^{2}+{b}^{2}-{c}^{2}}{2ab}\hfill \end{array}\hfill \end{array}[/latex]

Given two sides and the angle between them (SAS), find the measures of the remaining side and angles of a triangle.

  1. Sketch the triangle. Identify the measures of the known sides and angles. Use variables to represent the measures of the unknown sides and angles.
  2. Apply the Law of Cosines to find the length of the unknown side or angle.
  3. Apply the Law of Sines or Cosines to find the measure of a second angle.
  4. Compute the measure of the remaining angle.

Finding the Unknown Side and Angles of a SAS Triangle

Find the unknown side and angles of the triangle in (Figure).

A triangle with standard labels. Side a = 10, side c = 12, and angle beta = 30 degrees.
Figure 4.
[reveal-answer q=”fs-id1165137810707″]Show Solution[/reveal-answer]
[hidden-answer a=”fs-id1165137810707″]

First, make note of what is given: two sides and the angle between them. This arrangement is classified as SAS and supplies the data needed to apply the Law of Cosines.

Each one of the three laws of cosines begins with the square of an unknown side opposite a known angle. For this example, the first side to solve for is side[latex]\,b,\,[/latex]as we know the measurement of the opposite angle[latex]\,\beta .[/latex]

[latex]\begin{array}{ll}{b}^{2}={a}^{2}+{c}^{2}-2ac\mathrm{cos}\,\beta \hfill & \hfill \\ {b}^{2}={10}^{2}+{12}^{2}-2\left(10\right)\left(12\right)\mathrm{cos}\left({30}^{\circ }\right)\begin{array}{cccc}& & & \end{array}\hfill & \text{Substitute the measurements for the known quantities}.\hfill \\ {b}^{2}=100+144-240\left(\frac{\sqrt{3}}{2}\right)\hfill & \text{Evaluate the cosine and begin to simplify}.\hfill \\ {b}^{2}=244-120\sqrt{3}\hfill & \hfill \\ \,\,\,b=\sqrt{244-120\sqrt{3}}\hfill & \,\text{Use the square root property}.\hfill \\ \,\,\,b\approx 6.013\hfill & \hfill \end{array}[/latex]

Because we are solving for a length, we use only the positive square root. Now that we know the length[latex]\,b,\,[/latex]we can use the Law of Sines to fill in the remaining angles of the triangle. Solving for angle[latex]\,\alpha ,\,[/latex]we have

[latex]\begin{array}{ll}\frac{\mathrm{sin}\,\alpha }{a}=\frac{\mathrm{sin}\,\beta }{b}\hfill & \hfill \\ \frac{\mathrm{sin}\,\alpha }{10}=\frac{\mathrm{sin}\left(30°\right)}{6.013}\hfill & \hfill \\ \,\mathrm{sin}\,\alpha =\frac{10\mathrm{sin}\left(30°\right)}{6.013}\hfill & \text{Multiply both sides of the equation by 10}.\hfill \\ \,\,\,\,\,\,\,\,\alpha ={\mathrm{sin}}^{-1}\left(\frac{10\mathrm{sin}\left(30°\right)}{6.013}\right)\begin{array}{cccc}& & & \end{array}\hfill & \text{Find the inverse sine of }\frac{10\mathrm{sin}\left(30°\right)}{6.013}.\hfill \\ \,\,\,\,\,\,\,\,\alpha \approx 56.3°\hfill & \hfill \end{array}[/latex]

The other possibility for[latex]\,\alpha \,[/latex]would be[latex]\,\alpha =180°–56.3°\approx 123.7°.\,[/latex]In the original diagram,[latex]\,\alpha \,[/latex]is adjacent to the longest side, so[latex]\,\alpha \,[/latex]is an acute angle and, therefore,[latex]\,123.7°\,[/latex]does not make sense. Notice that if we choose to apply the Law of Cosines, we arrive at a unique answer. We do not have to consider the other possibilities, as cosine is unique for angles between[latex]\,0°\,[/latex]and[latex]\,180°.\,[/latex]Proceeding with[latex]\,\alpha \approx 56.3°,\,[/latex]we can then find the third angle of the triangle.

[latex]\gamma =180°-30°-56.3°\approx 93.7°[/latex]

The complete set of angles and sides is

[latex]\begin{array}{ll}\alpha \approx 56.3°\begin{array}{cccc}& & & \end{array}\hfill & a=10\hfill \\ \beta =30°\hfill & b\approx 6.013\hfill \\ \,\gamma \approx 93.7°\hfill & c=12\hfill \end{array}[/latex][/hidden-answer]

Try It

Find the missing side and angles of the given triangle:[latex]\,\alpha =30°,\,\,b=12,\,\,c=24.[/latex]

[reveal-answer q=”fs-id1165135360387″]Show Solution[/reveal-answer]
[hidden-answer a=”fs-id1165135360387″]

[latex]a\approx 14.9,\,\,\beta \approx 23.8°,\,\,\gamma \approx 126.2°.[/latex]

[/hidden-answer]

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]

[reveal-answer q=”fs-id1165135361166″]Show Solution[/reveal-answer]
[hidden-answer a=”fs-id1165135361166″]

For this example, we have no angles. We can solve for any angle using the Law of Cosines. To solve for angle[latex]\,\alpha ,\,[/latex]we have

[latex]\begin{array}{llll}\hfill & \hfill & \hfill & \hfill \\ \,\,\text{ }{a}^{2}={b}^{2}+{c}^{2}-2bc\mathrm{cos}\,\alpha \hfill & \hfill & \hfill & \hfill \\ \text{ }{20}^{2}={25}^{2}+{18}^{2}-2\left(25\right)\left(18\right)\mathrm{cos}\,\alpha \hfill & \hfill & \hfill & \text{Substitute the appropriate measurements}.\hfill \\ \text{ }400=625+324-900\mathrm{cos}\,\alpha \hfill & \hfill & \hfill & \text{Simplify in each step}.\hfill \\ \text{ }400=949-900\mathrm{cos}\,\alpha \hfill & \hfill & \hfill & \hfill \\ \,\text{ }-549=-900\mathrm{cos}\,\alpha \hfill & \hfill & \hfill & \text{Isolate cos }\alpha .\hfill \\ \text{ }\frac{-549}{-900}=\mathrm{cos}\,\alpha \hfill & \hfill & \hfill & \hfill \\ \,\text{ }0.61\approx \mathrm{cos}\,\alpha \hfill & \hfill & \hfill & \hfill \\ {\mathrm{cos}}^{-1}\left(0.61\right)\approx \alpha \hfill & \hfill & \hfill & \text{Find the inverse cosine}.\hfill \\ \text{ }\alpha \approx 52.4°\hfill & \hfill & \hfill & \hfill \end{array}[/latex]

See (Figure).

A triangle with standard labels. Side b =25, side a = 20, side c = 18, and angle alpha = 52.4 degrees.
Figure 5.

[/hidden-answer]

Analysis

Because the inverse cosine can return any angle between 0 and 180 degrees, there will not be any ambiguous cases using this method.

Try It

Given[latex]\,a=5,b=7,\,[/latex]and[latex]\,c=10,\,[/latex]find the missing angles.

[reveal-answer q=”fs-id1165133210042″]Show Solution[/reveal-answer]
[hidden-answer a=”fs-id1165133210042″]

[latex]\alpha \approx 27.7°,\,\,\beta \approx 40.5°,\,\,\gamma \approx 111.8°[/latex]

[/hidden-answer]

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.

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.

[reveal-answer q=”fs-id1165137419121″]Show Solution[/reveal-answer]
[hidden-answer a=”fs-id1165137419121″]

For simplicity, we start by drawing a diagram similar to (Figure) and labeling our given information.

A triangle formed between the two cell phone towers located on am east to west highway and the cellphone between and north of them. The side between the two towers is 6000 feet, the side between the left tower and the phone is 5050 feet, and the side between the right tower and the phone is 2420 feet. The angle between the 5050 and 6000 feet sides is labeled theta.
Figure 6.

Using the Law of Cosines, we can solve for the angle[latex]\,\theta .\,[/latex]Remember that the Law of Cosines uses the square of one side to find the cosine of the opposite angle. For this example, let[latex]\,a=2420,b=5050,\,[/latex]and[latex]\,c=6000.\,[/latex]Thus,[latex]\,\theta \,[/latex]corresponds to the opposite side[latex]\,a=2420.\,[/latex]

[latex]\begin{array}{l}\begin{array}{l}\hfill \\ \,\text{ }{a}^{2}={b}^{2}+{c}^{2}-2bc\mathrm{cos}\,\theta \hfill \end{array}\hfill \\ \text{ }{\left(2420\right)}^{2}={\left(5050\right)}^{2}+{\left(6000\right)}^{2}-2\left(5050\right)\left(6000\right)\mathrm{cos}\,\theta \hfill \\ \,\,\,\,\,\,{\left(2420\right)}^{2}-{\left(5050\right)}^{2}-{\left(6000\right)}^{2}=-2\left(5050\right)\left(6000\right)\mathrm{cos}\,\theta \hfill \\ \text{ }\frac{{\left(2420\right)}^{2}-{\left(5050\right)}^{2}-{\left(6000\right)}^{2}}{-2\left(5050\right)\left(6000\right)}=\mathrm{cos}\,\theta \hfill \\ \text{ }\mathrm{cos}\,\theta \approx 0.9183\hfill \\ \text{ }\theta \approx {\mathrm{cos}}^{-1}\left(0.9183\right)\hfill \\ \text{ }\theta \approx 23.3°\hfill \end{array}[/latex]

To answer the questions about the phone’s position north and east of the tower, and the distance to the highway, drop a perpendicular from the position of the cell phone, as in (Figure). This forms two right triangles, although we only need the right triangle that includes the first tower for this problem.

The triangle between the phone, the left tower, and a point between the phone and the highway between the towers. The side between the phone and the highway is perpendicular to the highway and is y feet. The highway side is x feet. The angle at the tower, previously labeled theta, is 23.3 degrees.
Figure 7.

Using the angle[latex]\,\theta =23.3°\,[/latex]and the basic trigonometric identities, we can find the solutions. Thus

[latex]\begin{array}{l}\begin{array}{l}\hfill \\ \,\,\,\,\,\,\mathrm{cos}\left(23.3°\right)=\frac{x}{5050}\hfill \end{array}\hfill \\ \text{ }x=5050\mathrm{cos}\left(23.3°\right)\hfill \\ \text{ }x\approx 4638.15\,\text{feet}\hfill \\ \text{ }\mathrm{sin}\left(23.3°\right)=\frac{y}{5050}\hfill \\ \text{ }y=5050\mathrm{sin}\left(23.3°\right)\hfill \\ \text{ }y\approx 1997.5\,\text{feet}\hfill \\ \hfill \end{array}[/latex]

The cell phone is approximately 4638 feet east and 1998 feet north of the first tower, and 1998 feet from the highway.[/hidden-answer]

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).

A triangle whose vertices are the boat, the port, and the turning point of the boat. The side between the port and the turning point is 10 mi, and the side between the turning point and the boat is 8 miles. The side between the port and the turning point is extended in a straight dotted line. The angle between the dotted line and the 8 mile side is 20 degrees.
Figure 8.
[reveal-answer q=”fs-id1165134282021″]Show Solution[/reveal-answer]
[hidden-answer a=”fs-id1165134282021″]

The boat turned 20 degrees, so the obtuse angle of the non-right triangle is the supplemental angle,[latex]180°-20°=160°.\,[/latex]With this, we can utilize the Law of Cosines to find the missing side of the obtuse triangle—the distance of the boat to the port.

[latex]\begin{array}{l}\,{x}^{2}={8}^{2}+{10}^{2}-2\left(8\right)\left(10\right)\mathrm{cos}\left(160°\right)\hfill \\ \,{x}^{2}=314.35\hfill \\ \,\,\,\,x=\sqrt{314.35}\hfill \\ \,\,\,\,x\approx 17.7\,\text{miles}\hfill \end{array}[/latex]

The boat is about 17.7 miles from port.[/hidden-answer]

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.

Heron’s Formula

Heron’s formula finds the area of oblique triangles in which sides[latex]\,a,b\text{,}[/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.

Using Heron’s Formula to Find the Area of a Given Triangle

Find the area of the triangle in (Figure) using Heron’s formula.

A triangle with angles A, B, and C and opposite sides a, b, and c, respectively. Side a = 10, side b - 15, and side c = 7.
Figure 9.
[reveal-answer q=”611728″]Show Solution[/reveal-answer]
[hidden-answer a=”611728″]

First, we calculate[latex]\,s.[/latex]

[latex]\begin{array}{l}\begin{array}{l}\\ s=\frac{\left(a+b+c\right)}{2}\end{array}\hfill \\ s=\frac{\left(10+15+7\right)}{2}=16\hfill \end{array}[/latex]

Then we apply the formula.

[latex]\begin{array}{l}\begin{array}{l}\\ \text{Area}=\sqrt{s\left(s-a\right)\left(s-b\right)\left(s-c\right)}\end{array}\hfill \\ \text{Area}=\sqrt{16\left(16-10\right)\left(16-15\right)\left(16-7\right)}\hfill \\ \text{Area}\approx 29.4\hfill \end{array}[/latex]

The area is approximately 29.4 square units.

[/hidden-answer]

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]

[reveal-answer q=”fs-id1165134102074″]Show Solution[/reveal-answer]
[hidden-answer a=”fs-id1165134102074″]

Area = 552 square feet

[/hidden-answer]

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) for a view of the city property.

A triangle formed by sides Rush Street, N. Wabash Ave, and E. Pearson Street with lengths 62.4, 43.5, and 34.1, respectively.
Figure 10.
[reveal-answer q=”fs-id1165135518137″]Show Solution[/reveal-answer]
[hidden-answer a=”fs-id1165135518137″]

Find the measurement for[latex]\,s,\,[/latex]which is one-half of the perimeter.

[latex]\begin{array}{l}s=\frac{\left(62.4+43.5+34.1\right)}{2}\hfill \\ s=70\,\text{m}\hfill \end{array}[/latex]

Apply Heron’s formula.

[latex]\begin{array}{l}\text{Area}=\sqrt{70\left(70-62.4\right)\left(70-43.5\right)\left(70-34.1\right)}\hfill \\ \text{Area}=\sqrt{506,118.2}\hfill \\ \text{Area}\approx 711.4\hfill \end{array}[/latex]

The developer has about 711.4 square meters.[/hidden-answer]

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]

[reveal-answer q=”fs-id1165137394207″]Show Solution[/reveal-answer]
[hidden-answer a=”fs-id1165137394207″]

about 8.15 square feet

[/hidden-answer]

Access these online resources for additional instruction and practice with the Law of Cosines.

Key Equations

Law of Cosines [latex]\begin{array}{l}{a}^{2}={b}^{2}+{c}^{2}-2bc\mathrm{cos}\,\alpha \hfill \\ {b}^{2}={a}^{2}+{c}^{2}-2ac\mathrm{cos}\,\beta \hfill \\ {c}^{2}={a}^{2}+{b}^{2}-2abcos\,\gamma \hfill \end{array}[/latex]
Heron’s formula [latex]\begin{array}{l}\text{ Area}=\sqrt{s\left(s-a\right)\left(s-b\right)\left(s-c\right)}\hfill \\ \text{where }s=\frac{\left(a+b+c\right)}{2}\hfill \end{array}[/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. See (Figure) and (Figure).
  • 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. See (Figure) and (Figure).
  • Heron’s formula allows the calculation of area in oblique triangles. All three sides must be known to apply Heron’s formula. See (Figure) and See (Figure).

Section Exercises

Verbal

If you are looking for a missing side of a triangle, what do you need to know when using the Law of Cosines?

[reveal-answer q=”fs-id1165137887398″]Show Solution[/reveal-answer]
[hidden-answer a=”fs-id1165137887398″]

two sides and the angle opposite the missing side.

[/hidden-answer]

If you are looking for a missing angle of a triangle, what do you need to know when using the Law of Cosines?

Explain what[latex]\,s\,[/latex]represents in Heron’s formula.

[reveal-answer q=”fs-id1165133143109″]Show Solution[/reveal-answer]
[hidden-answer a=”fs-id1165133143109″]

[latex]\,s\,[/latex]is the semi-perimeter, which is half the perimeter of the triangle.

[/hidden-answer]

Explain the relationship between the Pythagorean Theorem and the Law of Cosines.

When must you use the Law of Cosines instead of the Pythagorean Theorem?

[reveal-answer q=”fs-id1165135518102″]Show Solution[/reveal-answer]
[hidden-answer a=”fs-id1165135518102″]

The Law of Cosines must be used for any oblique (non-right) triangle.

[/hidden-answer]

Algebraic

For the following exercises, assume[latex]\,\alpha \,[/latex]is opposite side[latex]\,a,\beta \,[/latex] is opposite side[latex]\,b,\,[/latex]and[latex]\,\gamma \,[/latex] is opposite side[latex]\,c.\,[/latex]If possible, solve each triangle for the unknown side. Round to the nearest tenth.

[latex]\gamma =41.2°,a=2.49,b=3.13[/latex]

[latex]\alpha =120°,b=6,c=7[/latex]

[reveal-answer q=”fs-id1165133359517″]Show Solution[/reveal-answer]
[hidden-answer a=”fs-id1165133359517″]11.3

[/hidden-answer]

[latex]\beta =58.7°,a=10.6,c=15.7[/latex]

[latex]\gamma =115°,a=18,b=23[/latex]

[reveal-answer q=”fs-id1165134574953″]Show Solution[/reveal-answer]
[hidden-answer a=”fs-id1165134574953″]

34.7

[/hidden-answer]

[latex]\alpha =119°,a=26,b=14[/latex]

[latex]\gamma =113°,b=10,c=32[/latex]

[reveal-answer q=”fs-id1165135354970″]Show Solution[/reveal-answer]
[hidden-answer a=”fs-id1165135354970″]

26.7

[/hidden-answer]

[latex]\beta =67°,a=49,b=38[/latex]

[latex]\alpha =43.1°,a=184.2,b=242.8[/latex]

[reveal-answer q=”fs-id1165137938467″]Show Solution[/reveal-answer]
[hidden-answer a=”fs-id1165137938467″]

257.4

[/hidden-answer]

[latex]\alpha =36.6°,a=186.2,b=242.2[/latex]

[latex]\beta =50°,a=105,b=45{}_{}{}^{}[/latex]

[reveal-answer q=”fs-id1165135515881″]Show Solution[/reveal-answer]
[hidden-answer a=”fs-id1165135515881″]

not possible

[/hidden-answer]

For the following exercises, use the Law of Cosines to solve for the missing angle of the oblique triangle. Round to the nearest tenth.

[latex]\,a=42,b=19,c=30;\,[/latex]find angle[latex]\,A.[/latex]

[latex]\,a=14,\text{ }b=13,\text{ }c=20;\,[/latex]find angle[latex]\,C.[/latex]

[reveal-answer q=”fs-id1165135208492″]Show Solution[/reveal-answer]
[hidden-answer a=”fs-id1165135208492″]

95.5°

[/hidden-answer]

[latex]\,a=16,b=31,c=20;\,[/latex]find angle[latex]\,B.[/latex]

[latex]\,a=13,\,b=22,\,c=28;\,[/latex]find angle[latex]\,A.[/latex]

[reveal-answer q=”fs-id1165137899963″]Show Solution[/reveal-answer]
[hidden-answer a=”fs-id1165137899963″]

26.9°

[/hidden-answer]

[latex]a=108,\,b=132,\,c=160;\,[/latex]find angle[latex]\,C.\,[/latex]

For the following exercises, solve the triangle. Round to the nearest tenth.

[latex]A=35°,b=8,c=11[/latex]

[reveal-answer q=”fs-id1165133199358″]Show Solution[/reveal-answer]
[hidden-answer a=”fs-id1165133199358″]

[latex]B\approx 45.9°,C\approx 99.1°,a\approx 6.4[/latex]

[/hidden-answer]

[latex]B=88°,a=4.4,c=5.2[/latex]

[latex]C=121°,a=21,b=37[/latex]

[reveal-answer q=”fs-id1165137765785″]Show Solution[/reveal-answer]
[hidden-answer a=”fs-id1165137765785″]

[latex]A\approx 20.6°,B\approx 38.4°,c\approx 51.1[/latex]

[/hidden-answer]

[latex]a=13,b=11,c=15[/latex]

[latex]a=3.1,b=3.5,c=5[/latex]

[reveal-answer q=”fs-id1165137643163″]Show Solution[/reveal-answer]
[hidden-answer a=”fs-id1165137643163″]

[latex]A\approx 37.8°,B\approx 43.8,C\approx 98.4°[/latex]

[/hidden-answer]

[latex]a=51,b=25,c=29[/latex]

For the following exercises, use Heron’s formula to find the area of the triangle. Round to the nearest hundredth.

Find the area of a triangle with sides of length 18 in, 21 in, and 32 in. Round to the nearest tenth.

[reveal-answer q=”fs-id1165134201647″]Show Solution[/reveal-answer]
[hidden-answer a=”fs-id1165134201647″]

177.56 in2

[/hidden-answer]

Find the area of a triangle with sides of length 20 cm, 26 cm, and 37 cm. Round to the nearest tenth.

[latex]a=\frac{1}{2}\,\text{m},b=\frac{1}{3}\,\text{m},c=\frac{1}{4}\,\text{m}[/latex]

[reveal-answer q=”fs-id1165134328321″]Show Solution[/reveal-answer]
[hidden-answer a=”fs-id1165134328321″]

0.04 m2

[/hidden-answer]

[latex]a=12.4\text{ ft},\text{ }b=13.7\text{ ft},\text{ }c=20.2\text{ ft}[/latex]

[latex]a=1.6\text{ yd},\text{ }b=2.6\text{ yd},\text{ }c=4.1\text{ yd}[/latex]

[reveal-answer q=”fs-id1165133365504″]Show Solution[/reveal-answer]
[hidden-answer a=”fs-id1165133365504″]

0.91 yd2

[/hidden-answer]

Graphical

For the following exercises, find the length of side [latex]x.[/latex] Round to the nearest tenth.

A triangle. One angle is 72 degrees, with opposite side = x. The other two sides are 5 and 6.5.
A triangle. One angle is 42 degrees with opposite side = x. The other two sides are 4.5 and 3.4.
[reveal-answer q=”fs-id1165135505463″]Show Solution[/reveal-answer]
[hidden-answer a=”fs-id1165135505463″]

3.0

[/hidden-answer]

A triangle. One angle is 40 degrees with opposite side = 15. The other two sides are 12 and x.
A triangle. One angle is 65 degrees with opposite side = x. The other two sides are 30 and 23.
[reveal-answer q=”fs-id1165133249132″]Show Solution[/reveal-answer]
[hidden-answer a=”fs-id1165133249132″]

29.1

[/hidden-answer]

A triangle. One angle is 50 degrees with opposite side = x. The other two sides are 225 and 305.
A triangle. One angle is 123 degrees with opposite side = x. The other two sides are 1/5 and 1/3.
[reveal-answer q=”fs-id1165134370025″]Show Solution[/reveal-answer]
[hidden-answer a=”fs-id1165134370025″]

0.5

[/hidden-answer]

For the following exercises, find the measurement of angle[latex]\,A.[/latex]

A triangle. Angle A is opposite a side of length 2.3. The other two sides are 1.5 and 2.5.
A triangle. Angle A is opposite a side of length 125. The other two sides are 115 and 100.
[reveal-answer q=”fs-id1165135545523″]Show Solution[/reveal-answer]
[hidden-answer a=”fs-id1165135545523″]

70.7°

[/hidden-answer]

A triangle. Angle A is opposite a side of length 6.8. The other two sides are 4.3 and 8.2.
A triangle. Angle A is opposite a side of length 40.6. The other two sides are 38.7 and 23.3.
[reveal-answer q=”fs-id1165134401621″]Show Solution[/reveal-answer]
[hidden-answer a=”fs-id1165134401621″]

77.4°

[/hidden-answer]

Find the measure of each angle in the triangle shown in (Figure). Round to the nearest tenth.

A triangle A B C. Angle A is opposite a side of length 10, angle B is opposite a side of length 12, and angle C is opposite a side of length 7.
Figure 11.

For the following exercises, solve for the unknown side. Round to the nearest tenth.

A triangle. One angle is 60 degrees with opposite side unknown. The other two sides are 20 and 28.
[reveal-answer q=”fs-id1165133236451″]Show Solution[/reveal-answer]
[hidden-answer a=”fs-id1165133236451″]

25.0

[/hidden-answer]

A triangle. One angle is 30 degrees with opposite side unknown. The other two sides are 16 and 10.
A triangle. One angle is 22 degrees with opposite side unknown. The other two sides are 20 and 13.
[reveal-answer q=”fs-id1165135698477″]Show Solution[/reveal-answer]
[hidden-answer a=”fs-id1165135698477″]

9.3

[/hidden-answer]

A triangle. One angle is 88 degrees with opposite side = 9. Another side is 5.

For the following exercises, find the area of the triangle. Round to the nearest hundredth.

A triangle with sides 8, 12, and 17. Angles unknown.
[reveal-answer q=”fs-id1165135525901″]Show Solution[/reveal-answer]
[hidden-answer a=”fs-id1165135525901″]

43.52

[/hidden-answer]

A triangle with sides 50, 22, and 36. Angles unknown.
A triangle with sides 1.9, 2.6, and 4.3. Angles unknown.
[reveal-answer q=”fs-id1165134239622″]Show Solution[/reveal-answer]
[hidden-answer a=”fs-id1165134239622″]

1.41

[/hidden-answer]

A triangle with sides 8.9, 12.5, and 16.2. Angles unknown.
A triangle with sides 1/2, 2/3, and 3/5. Angles unknown.
[reveal-answer q=”fs-id1165134263937″]Show Solution[/reveal-answer]
[hidden-answer a=”fs-id1165134263937″]

0.14

[/hidden-answer]

Extensions

A parallelogram has sides of length 16 units and 10 units. The shorter diagonal is 12 units. Find the measure of the longer diagonal.

The sides of a parallelogram are 11 feet and 17 feet. The longer diagonal is 22 feet. Find the length of the shorter diagonal.

[reveal-answer q=”fs-id1165133091591″]Show Solution[/reveal-answer]
[hidden-answer a=”fs-id1165133091591″]

18.3

[/hidden-answer]

The sides of a parallelogram are 28 centimeters and 40 centimeters. The measure of the larger angle is 100°. Find the length of the shorter diagonal.

A regular octagon is inscribed in a circle with a radius of 8 inches. (See (Figure).) Find the perimeter of the octagon.

An octagon inscribed in a circle.
Figure 12.
[reveal-answer q=”fs-id1165135697763″]Show Solution[/reveal-answer]
[hidden-answer a=”fs-id1165135697763″]

48.98

[/hidden-answer]

A regular pentagon is inscribed in a circle of radius 12 cm. (See (Figure).) Find the perimeter of the pentagon. Round to the nearest tenth of a centimeter.

A pentagon inscribed in a circle.
Figure 13.

For the following exercises, suppose that[latex]\,{x}^{2}=25+36-60\mathrm{cos}\left(52\right)\,[/latex]represents the relationship of three sides of a triangle and the cosine of an angle.

Draw the triangle.

[reveal-answer q=”fs-id1165131837019″]Show Solution[/reveal-answer]
[hidden-answer a=”fs-id1165131837019″]A triangle. One angle is 52 degrees with opposite side = x. The other two sides are 5 and 6.[/hidden-answer]

Find the length of the third side.

For the following exercises, find the area of the triangle.

A triangle. One angle is 22 degrees with opposite side = 3.4. Another side is 5.3.
[reveal-answer q=”fs-id1165134130014″]Show Solution[/reveal-answer]
[hidden-answer a=”fs-id1165134130014″]

7.62

[/hidden-answer]

A triangle. One angle is 80 degrees with opposite side unknown. The other two sides are 8 and 6.
A triangle. One angle is 18 degrees with opposite side = 12.8. Another side is 18.8.
[reveal-answer q=”fs-id1165135633910″]Show Solution[/reveal-answer]
[hidden-answer a=”fs-id1165135633910″]85.1

[/hidden-answer]

Real-World Applications

A surveyor has taken the measurements shown in (Figure). Find the distance across the lake. Round answers to the nearest tenth.

A triangle. One angle is 70 degrees with opposite side unknown, which is the length of the lake. The other two sides are 800 and 900 feet.
Figure 14.

A satellite calculates the distances and angle shown in (Figure) (not to scale). Find the distance between the two cities. Round answers to the nearest tenth.

Insert figure(table) alt text: A triangle formed by two cities on the ground and a satellite above them. The angle by the satellite is 2.1 degrees with opposite side unknown, which is the distance between the two cities. The lengths of the other sides are 370 and 350 km.
Figure 15.
[reveal-answer q=”fs-id1165137827744″]Show Solution[/reveal-answer]
[hidden-answer a=”fs-id1165137827744″]

24.0 km

[/hidden-answer]

An airplane flies 220 miles with a heading of 40°, and then flies 180 miles with a heading of 170°. How far is the plane from its starting point, and at what heading? Round answers to the nearest tenth.

A 113-foot tower is located on a hill that is inclined 34° to the horizontal, as shown in (Figure). A guy-wire is to be attached to the top of the tower and anchored at a point 98 feet uphill from the base of the tower. Find the length of wire needed.

Insert figure(table) alt text: Two triangles, one on top of the other. The bottom triangle is the hill inclined 34 degrees to the horizontal. The second is formed by the base of the tower on the incline of the hill, the top of the tower, and the wire anchor point uphill from the tower on the incline. The sides are the tower, the incline of the hill, and the wire. The tower side is 113 feet and the incline side is 98 feet.
Figure 16.
[reveal-answer q=”fs-id1165135500669″]Show Solution[/reveal-answer]
[hidden-answer a=”fs-id1165135500669″]

99.9 ft

[/hidden-answer]

Two ships left a port at the same time. One ship traveled at a speed of 18 miles per hour at a heading of 320°. The other ship traveled at a speed of 22 miles per hour at a heading of 194°. Find the distance between the two ships after 10 hours of travel.

The graph in (Figure) represents two boats departing at the same time from the same dock. The first boat is traveling at 18 miles per hour at a heading of 327° and the second boat is traveling at 4 miles per hour at a heading of 60°. Find the distance between the two boats after 2 hours.

Insert figure(table) alt text: A graph of two rays, which represent the paths of the two boats. Both rays start at the origin. The first goes into the first quadrant at a 60 degree angle at 4 mph. The second goes into the fourth quadrant at a 327 degree angle from the origin. The second travels at 18 mph.
Figure 17.
[reveal-answer q=”fs-id1165135695099″]Show Solution[/reveal-answer]
[hidden-answer a=”fs-id1165135695099″]

37.3 miles

[/hidden-answer]

A triangular swimming pool measures 40 feet on one side and 65 feet on another side. These sides form an angle that measures 50°. How long is the third side (to the nearest tenth)?

A pilot flies in a straight path for 1 hour 30 min. She then makes a course correction, heading 10° to the right of her original course, and flies 2 hours in the new direction. If she maintains a constant speed of 680 miles per hour, how far is she from her starting position?

[reveal-answer q=”fs-id1165135453158″]Show Solution[/reveal-answer]
[hidden-answer a=”fs-id1165135453158″]

2371 miles

[/hidden-answer]

Los Angeles is 1,744 miles from Chicago, Chicago is 714 miles from New York, and New York is 2,451 miles from Los Angeles. Draw a triangle connecting these three cities, and find the angles in the triangle.

Philadelphia is 140 miles from Washington, D.C., Washington, D.C. is 442 miles from Boston, and Boston is 315 miles from Philadelphia. Draw a triangle connecting these three cities and find the angles in the triangle.

[reveal-answer q=”fs-id1165135200381″]Show Solution[/reveal-answer]
[hidden-answer a=”fs-id1165135200381″]Angle BO is 9.1 degrees, angle PH is 150.2 degrees, and angle DC is 20.7 degrees.[/hidden-answer]

Two planes leave the same airport at the same time. One flies at 20° east of north at 500 miles per hour. The second flies at 30° east of south at 600 miles per hour. How far apart are the planes after 2 hours?

Two airplanes take off in different directions. One travels 300 mph due west and the other travels 25° north of west at 420 mph. After 90 minutes, how far apart are they, assuming they are flying at the same altitude?

[reveal-answer q=”fs-id1165135694395″]Show Solution[/reveal-answer]
[hidden-answer a=”fs-id1165135694395″]599.8 miles

[/hidden-answer]

A parallelogram has sides of length 15.4 units and 9.8 units. Its area is 72.9 square units. Find the measure of the longer diagonal.

The four sequential sides of a quadrilateral have lengths 4.5 cm, 7.9 cm, 9.4 cm, and 12.9 cm. The angle between the two smallest sides is 117°. What is the area of this quadrilateral?

[reveal-answer q=”fs-id1165134408492″]Show Solution[/reveal-answer]
[hidden-answer a=”fs-id1165134408492″]

65.4 cm2

[/hidden-answer]

The four sequential sides of a quadrilateral have lengths 5.7 cm, 7.2 cm, 9.4 cm, and 12.8 cm. The angle between the two smallest sides is 106°. What is the area of this quadrilateral?

Find the area of a triangular piece of land that measures 30 feet on one side and 42 feet on another; the included angle measures 132°. Round to the nearest whole square foot.

[reveal-answer q=”fs-id1165135506390″]Show Solution[/reveal-answer]
[hidden-answer a=”fs-id1165135506390″]

468 ft2

[/hidden-answer]

Find the area of a triangular piece of land that measures 110 feet on one side and 250 feet on another; the included angle measures 85°. Round to the nearest whole square foot.

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

License

Icon for the Creative Commons Attribution 4.0 International License

Algebra and Trigonometry OpenStax Copyright © 2015 by OpenStax is licensed under a Creative Commons Attribution 4.0 International License, except where otherwise noted.

Share This Book