Trigonometry

Cosine Rule (Law of Cosines)

Solve triangles with 3 sides or 2 sides + included angle.

The Formula
c² = a² + b² - 2ab·cos(C)
Used for: Finding unknown sides or angles when you have 3 sides or 2 sides + included angle
a, b, cLengths of sides
CAngle opposite to side c

🎯 When to Use the Cosine Rule

Best for these two scenarios:

📐Works for ANY triangle

Not just right triangles!

📊Two variations

Find a side OR find an angle

🎯Need 3 pieces of info

Either 3 sides or 2 sides + included angle

📝 Worked Examples

Find a Side (SAS)

Given: a = 8, b = 6, C = 60°. Find c.
1
Formulac² = a² + b² - 2ab·cos(C)
2
Substitutec² = 64 + 36 - 2(8)(6)·cos(60°)
3
Calculatec² = 100 - 96(0.5) = 52
4
Square rootc = √52 ≈ 7.21
Answer: c ≈ 7.21

Find an Angle (SSS)

Given: a = 5, b = 7, c = 8. Find angle C.
1
Rearrangecos(C) = (a² + b² - c²) / 2ab
2
Substitutecos(C) = (25 + 49 - 64) / 70
3
Calculatecos(C) = 10/70 = 0.143
4
Inverse cosC = cos⁻¹(0.143) ≈ 81.8°
Answer: C ≈ 81.8°

💡 Pro Tips

Special case: C = 90°

When C = 90°, cos(C) = 0, and this becomes the Pythagorean theorem!

SAS vs SSS

SAS (2 sides + angle) → find missing side. SSS (3 sides) → find any angle.

vs Sine Rule

Use cosine rule when you don't have matching angle-side pairs