The Law of Cosines is a fundamental result in trigonometry that relates the lengths of the sides of a triangle to the cosine of one of its angles. It serves as a generalization of the Pythagorean Theorem, enabling calculations in non-right triangles where the simple relationships of right-angled geometry no longer apply. The formula is especially useful in scenarios where direct measurement of one side or angle is not feasible, such as in surveying, navigation, and engineering applications.
For any triangle with sides a, b, and c, and corresponding opposite angles A, B, and C, the Law of Cosines is given by:
Similar expressions can be written for the other sides:
This law is applicable in two primary situations: when two sides and the included angle are known, or when all three sides are known and the included angle is to be determined.
In addition to land surveying, the Law of Cosines is applied in astronomy to calculate distances between celestial bodies forming triangles from Earth's perspective. It is also used in robotics to determine joint angles in arm mechanisms and in physics to resolve forces acting at angles.
For example, consider a triangle where the sides a=7 units, b=10 units, and the included angle C=60o. Using the Law of Cosines:
This shows how the Law of Cosines enables precise distance calculations even in complex geometries.
Consider a triangle with sides a, b, and c, where each angle is named after the vertex opposite its corresponding side.
The Law of Cosines states that the square of one side equals the sum of the squares of the other two sides, minus twice the product of those sides multiplied by the cosine of the included angle.
It applies when two sides and the included angle are known. It also applies when all three sides are given, and the included angle is found using the inverse of cosine.
When the included angle is a right angle, the triangle becomes a right triangle. The cosine of ninety degrees is zero. This removes the cosine term from the formula and simplifies it to the Pythagorean Theorem.
In land surveying, the Law of Cosines is used when one side of a marked triangle is inaccessible, such as when it lies across a water body. The other two sides and the included angle are measured using surveying equipment. Their values are then substituted into the Law of Cosines to calculate the length of the unknown side without direct measurement.