Skip to main content
Next exam on November 14 – 15, 2026:
Back to glossary
trigonometryDifficulty: Intermediatetrigonometrygeometrytriangle
Share

余弦定理yúxián dìnglǐ

law of cosines
4 min read
Updated November 2, 2025
Complete

Core Concept

The Law of Cosines is an essential tool for solving triangles, describing the relationship between three sides and the cosine of an angle. It is a generalization of the Pythagorean theorem.

Theorem Statement

In △ABC\triangle ABC, let a,b,ca, b, c be the sides opposite to angles A,B,CA, B, C respectively:

a2=b2+c2−2bccos⁡Aa^2 = b^2 + c^2 - 2bc\cos A b2=a2+c2−2accos⁡Bb^2 = a^2 + c^2 - 2ac\cos B c2=a2+b2−2abcos⁡Cc^2 = a^2 + b^2 - 2ab\cos C

Corollary (solving for angles): cos⁡A=b2+c2−a22bc\cos A = \frac{b^2 + c^2 - a^2}{2bc}

Applications

1. Given Two Sides and Included Angle (SAS)

Example: In △ABC\triangle ABC, b=3b = 3, c=4c = 4, A=60°A = 60°, find aa.

Solution: a2=9+16−2(3)(4)cos⁡60°=25−12=13a^2 = 9 + 16 - 2(3)(4)\cos 60° = 25 - 12 = 13 a=13a = \sqrt{13}

2. Given Three Sides (SSS), Find Angles

Example: In △ABC\triangle ABC, a=5a = 5, b=7b = 7, c=8c = 8, find cos⁡A\cos A.

Solution: cos⁡A=49+64−25112=1114\cos A = \frac{49 + 64 - 25}{112} = \frac{11}{14}

Relationship with Pythagorean Theorem

When A=90°A = 90°, cos⁡A=0\cos A = 0: a2=b2+c2a^2 = b^2 + c^2

This is the Pythagorean theorem. Thus, the Law of Cosines generalizes the Pythagorean theorem.

Common Misconceptions

❌ Misconception 1: Wrong sign in formula

Wrong: a2=b2+c2+2bccos⁡Aa^2 = b^2 + c^2 + 2bc\cos A

Correct: a2=b2+c2−2bccos⁡Aa^2 = b^2 + c^2 - 2bc\cos A (minus sign)

Study Tips

  1. ✅ Understand essence: Law of Cosines generalizes Pythagorean theorem
  2. ✅ Memorize formula: a2=b2+c2−2bccos⁡Aa^2 = b^2 + c^2 - 2bc\cos A
  3. ✅ Master applications: SAS and SSS cases
  4. ✅ Combine with Law of Sines: Use flexibly

💡 Exam Tip: Law of Cosines is as important as Law of Sines, mandatory in CSCA exams!

Practice Exercises

Practice to reinforce your understanding