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.
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.
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. If you use the Law of Sines, you must find the smaller of the two remaining angles.
- 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.
Solution
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].
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. Since side [latex]a[/latex] is smaller than side [latex]c[/latex], we will solve for angle [latex]\alpha[/latex]. Solving for angle [latex]\alpha[/latex], we have
The other possibility for [latex]\alpha[/latex] would be [latex]\alpha =180^\circ -56.3^\circ \approx 123.7^\circ[/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^\circ[/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^\circ[/latex] and [latex]180^\circ[/latex]. Proceeding with [latex]\alpha \approx 56.3^\circ[/latex], we can then find the third angle of the triangle.
The complete set of angles and sides is
Try It 1
Find the missing side and angles of the given triangle: [latex]\alpha =30^\circ ,b=12,c=24[/latex].
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].
Solution
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
See Figure 5.
Analysis of the Solution
Because the inverse cosine can return any angle between 0 and 180 degrees, there will not be any ambiguous cases using this method.
Candela Citations
- Precalculus. Authored by: OpenStax College. Provided by: OpenStax. Located at: http://cnx.org/contents/fd53eae1-fa23-47c7-bb1b-972349835c3c@5.175:1/Preface. License: CC BY: Attribution