TExcelTAD
Home › Trigonometry: Pure Analysis, Identities & Spherical Geometry › The Law of Cosines, Side-Angle Relations, and Applications

The Law of Cosines, Side-Angle Relations, and Applications

The Law of Cosines is the ultimate generalization of the Pythagorean theorem to arbitrary non-right triangles. If angle C=90∘C = 90^\circ, cos⁡(90∘)=0\cos(90^\circ) = 0, and the formula collapses precisely to c2=a2+b2c^2 = a^2 + b^2.


1. The Three Forms of the Law of Cosines

For any triangle △ABC\triangle ABC:

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

Solving for the cosine of an angle (useful when all three sides are known: SSS):

cos⁡C=a2+b2−c22ab\cos C = \frac{a^2 + b^2 - c^2}{2ab}
Angle Classification by the Law of Cosines: \textbf{Angle Classification by the Law of Cosines: }
  • If a2+b2>c2a^2 + b^2 > c^2, then cos⁡C>0  ⟹  C<90∘\cos C > 0 \implies C < 90^\circ (Acute).
  • If a2+b2=c2a^2 + b^2 = c^2, then cos⁡C=0  ⟹  C=90∘\cos C = 0 \implies C = 90^\circ (Right).
  • If a2+b2<c2a^2 + b^2 < c^2, then cos⁡C<0  ⟹  C>90∘\cos C < 0 \implies C > 90^\circ (Obtuse).

2. Paper Notebook Worked Example

Problem: A triangle has sides a=7a = 7, b=8b = 8, and c=9c = 9.

  1. Compute the exact cosine of angle CC.
  2. Determine whether the triangle is acute, right, or obtuse.
  3. Compute the angle CC in degrees to the nearest tenth.

Step-by-step Solution:

  1. Apply the SSS form of the Law of Cosines:
cos⁡C=a2+b2−c22ab=72+82−922(7)(8)=49+64−81112=32112\cos C = \frac{a^2 + b^2 - c^2}{2ab} = \frac{7^2 + 8^2 - 9^2}{2(7)(8)} = \frac{49 + 64 - 81}{112} = \frac{32}{112}
  1. Simplify the fraction:
cos⁡C=32112=27≈0.2857\cos C = \frac{32}{112} = \frac{2}{7} \approx 0.2857
  1. Since a2+b2=49+64=113>c2=81a^2 + b^2 = 49 + 64 = 113 > c^2 = 81, cos⁡C>0\cos C > 0, meaning the largest angle CC is strictly acute. Therefore, the entire triangle is acute.
  2. Compute the angle:
C=arccos⁡(27)≈73.4∘C = \arccos\left(\frac{2}{7}\right) \approx 73.4^\circ

Geometric Vector Diagram

Angle C Side c Side b Side a A B C Law of Cosines: c^2 = a^2 + b^2 - 2*a*b*cos(C)

Test yourself

What does the Law of Cosines reduce to when angle C=90∘C = 90^\circ?

  1. The Pythagorean Theorem (c2=a2+b2c^2 = a^2 + b^2)
  2. The Law of Sines
  3. Heron's Formula
  4. Stewart's Theorem

If a triangle has sides 5,6,95, 6, 9, what type of triangle is it?

  1. Obtuse, because 52+62=61<92=815^2 + 6^2 = 61 < 9^2 = 81
  2. Acute, because all sides are under 10
  3. Right-angled
  4. Equilateral

In a triangle with a=3,b=4a = 3, b = 4, and included angle C=60∘C = 60^\circ, what is the length of side cc?

  1. 13\sqrt{13}
  2. 55
  3. 37\sqrt{37}
  4. 7\sqrt{7}