Skip to content
Feb 24

Trigonometry: Law of Cosines

MT
Mindli Team

AI-Generated Content

Trigonometry: Law of Cosines

The Pythagorean theorem is a powerful tool, but it only works for one specific type of triangle: the right triangle. The real world is full of oblique triangles—triangles without a right angle. To solve these, you need a more powerful, generalized tool. The Law of Cosines is that tool, allowing you to find unknown sides and angles in any triangle, whether it's acute, obtuse, or right. Mastering it is essential for fields from surveying and engineering to physics and computer graphics, where triangular relationships are foundational but rarely perfect.

From Pythagoras to a General Rule

The Law of Cosines is a direct extension of the Pythagorean theorem. Recall that for a right triangle with hypotenuse , the theorem states . The Law of Cosines modifies this formula to account for any angle opposite side . For any triangle with sides , , and opposite angles , , and respectively, the formula is:

This elegant equation says: the square of one side equals the sum of the squares of the other two sides, minus twice the product of those two sides and the cosine of the angle between them. The critical insight is the term . When angle , , and the entire term vanishes, leaving you with the classic Pythagorean theorem. Therefore, the Law of Cosines generalizes the Pythagorean theorem to all triangles.

It’s vital to correctly label your triangle. The side you are solving for (or the side opposite the angle you know) is isolated on the left. The other two sides and the cosine of their included angle are on the right.

Solving SAS Triangles: Finding the Missing Side

The most straightforward application is solving an SAS (Side-Angle-Side) triangle. You are given two sides and the measure of the angle between them. Your goal is to find the third side directly opposite the known angle.

Example: A triangle has sides units and units, with the included angle . Find side .

  1. Identify the knowns: We have sides and and the included angle . We want side , opposite angle .
  2. Apply the formula:
  3. Substitute values:
  4. Calculate:
  5. Solve for c:

This process is direct and unambiguous. Once you have the third side, you could then use the Law of Sines or Cosines again to find the remaining angles.

Solving SSS Triangles: Finding an Angle

The Law of Cosines is also the primary method for solving SSS (Side-Side-Side) triangles, where you know all three sides but none of the angles. Here, you rearrange the formula to solve for the cosine of an angle.

The rearranged formula is:

Example: A triangle has sides , , and . Find angle .

  1. Identify the setup: Side is opposite the angle we want, . Sides and are the other two.
  2. Apply the rearranged formula:
  3. Calculate:
  4. Find the angle: Use the inverse cosine function. .

The negative cosine tells you immediately that angle is obtuse (greater than ). This is a quick way to determine triangle type from sides alone. In any triangle with sides , , and (where is the longest side):

  • If , the triangle is acute (all angles < ).
  • If , the triangle is right (Pythagorean theorem holds).
  • If , the triangle is obtuse (the angle opposite the longest side is > ).

Practical Applications and the Ambiguous Case

Beyond textbook problems, the Law of Cosines is used in navigation to find the distance between two points given bearings from a third, in mechanical design to calculate forces in non-right-angled trusses, and in computer vision to determine object orientation.

A crucial strategic point involves the ambiguous case of the Law of Sines. When you are given SSA (two sides and a non-included angle), the Law of Sines can yield two possible solutions, one acute and one obtuse. The Law of Cosines can be used to resolve this ambiguity efficiently. While solving directly with the Law of Cosines for SSA requires solving a quadratic equation, you can use it as a check: after finding a potential side or angle with the Law of Sines, use the Law of Cosines to verify the consistency of all three sides and angles. More directly, if you find yourself with SSA, you can often avoid ambiguity by using the Law of Cosines from the outset to find the side opposite the given angle, though it requires more algebraic steps.

Common Pitfalls

  1. Mislabeling the Triangle: The most frequent error is misassigning sides to angles. Remember, side is opposite angle , side is opposite angle , and side is opposite angle . The angle in the formula must be the one opposite the side you have on the left of the equation. Double-check your labeling before you substitute.
  1. Using the Wrong Formula for the Given Information: The Law of Sines is useful for AAS and ASA cases and is simpler for those. A common mistake is forcing the Law of Cosines when the Law of Sines is more efficient. Use Law of Cosines for SAS and SSS scenarios. For SSA, be aware of the potential for two triangles and use the Law of Cosines to verify your single solution from the Law of Sines, or to solve the quadratic that arises.
  1. Calculator in the Wrong Mode: Angles in trigonometry problems can be measured in degrees or radians. If your angle is given in degrees (like ), your calculator must be in Degree mode. If you compute in Radian mode, you'll get an incorrect value, leading to a wrong answer. Always verify your calculator's angle setting.
  1. Algebraic Errors with the Rearranged Formula: When solving for an angle using , ensure the correct side is subtracted. The side opposite the angle you seek () is the one being subtracted from the sum of squares of the other two sides (). Mixing this up will flip the sign of your cosine and give you the supplementary angle.

Summary

  • The Law of Cosines, , is the definitive generalization of the Pythagorean theorem, working for all triangle types: acute, right, and obtuse.
  • It is the primary tool for solving SAS triangles (to find the missing side) and SSS triangles (to find any angle after rearranging the formula).
  • You can determine a triangle's type by comparing the square of the longest side to the sum of squares of the other two sides: (acute), (right), (obtuse).
  • Always ensure your triangle is labeled correctly (sides opposite their corresponding angles) and your calculator is in the correct angle mode (typically degrees) to avoid fundamental errors.
  • Strategically, prefer the Law of Cosines for SAS and SSS cases, and understand its role in checking or resolving the ambiguous SSA case that arises with the Law of Sines.

Write better notes with AI

Mindli helps you capture, organize, and master any subject with AI-powered summaries and flashcards.