Understanding the Law of Cosines A Comprehensive Guide

I'm trying to get a handle on trigonometry for my engineering class, and the Law of Cosines is really tripping me up. I've seen the formula, but I'm not sure when or how to actually use it in different problems. Could someone break it down step-by-step with some examples?

1 Answers

āœ“ Best Answer

šŸ“ Understanding the Law of Cosines

The Law of Cosines is a fundamental trigonometric formula that relates the sides and angles of a triangle. It's especially useful when you can't use the basic trigonometric ratios (SOH CAH TOA) because the triangle isn't a right triangle.

šŸ“ The Formula

For a triangle with sides of length a, b, and c, and angles A, B, and C opposite those sides respectively, the Law of Cosines states:

  • $a^2 = b^2 + c^2 - 2bc \cdot cos(A)$
  • $b^2 = a^2 + c^2 - 2ac \cdot cos(B)$
  • $c^2 = a^2 + b^2 - 2ab \cdot cos(C)$

šŸ¤” When to Use It?

The Law of Cosines is your go-to formula in these situations:

  • Side-Angle-Side (SAS): When you know two sides and the included angle (the angle between them).
  • Side-Side-Side (SSS): When you know all three sides.

āž• Relation to the Pythagorean Theorem

The Law of Cosines is actually a generalization of the Pythagorean theorem. If angle C is a right angle (90 degrees), then $cos(C) = 0$, and the formula simplifies to:

$c^2 = a^2 + b^2$

which is the Pythagorean theorem!

āœļø Examples

Example 1: Finding a Side (SAS)

Given a triangle where $a = 5$, $b = 7$, and angle $C = 45°$, find side c.

import math

a = 5
b = 7
C = math.radians(45)  # Convert degrees to radians

c_squared = a**2 + b**2 - 2 * a * b * math.cos(C)
c = math.sqrt(c_squared)

print(f"Side c = {c}")

Example 2: Finding an Angle (SSS)

Given a triangle with sides $a = 8$, $b = 5$, and $c = 7$, find angle A.

import math

a = 8
b = 5
c = 7

cos_A = (b**2 + c**2 - a**2) / (2 * b * c)
A_radians = math.acos(cos_A)
A_degrees = math.degrees(A_radians)

print(f"Angle A = {A_degrees}")

šŸ’” Key Takeaways

  • The Law of Cosines is essential for solving non-right triangles.
  • It relates sides and angles using the formula: $a^2 = b^2 + c^2 - 2bc \cdot cos(A)$.
  • It's a generalization of the Pythagorean theorem.

Know the answer? Login to help.