James's Math Hub
Trigonometry

Lesson 4 / 5 · 12 min read

Law of Sines and Law of Cosines

Solve any triangle, even when SOH CAH TOA gives up.

When SOH CAH TOA stops working

SOH CAH TOA only works for right triangles. For non-right triangles, you need two more rules.

Labeling convention: side aa is opposite angle AA, side bb opposite BB, side cc opposite CC.

Law of Sines

sinAa=sinBb=sinCc\dfrac{\sin A}{a} = \dfrac{\sin B}{b} = \dfrac{\sin C}{c}

Use when you know:

  • Two angles and any side (AAS or ASA), or
  • Two sides and an angle opposite one of them (SSA — the "ambiguous case").

Example (AAS). A=50A = 50^\circ, B=60B = 60^\circ, a=8a = 8. Find bb.

sin508=sin60b\dfrac{\sin 50^\circ}{8} = \dfrac{\sin 60^\circ}{b} b=8sin60sin5080.8660.7669.05b = \dfrac{8 \sin 60^\circ}{\sin 50^\circ} \approx \dfrac{8 \cdot 0.866}{0.766} \approx 9.05

Law of Cosines

c2=a2+b22abcosCc^2 = a^2 + b^2 - 2ab \cos C

(Similar formulas for a2a^2 and b2b^2 by cycling letters.) Notice if C=90C = 90^\circ, cos90=0\cos 90^\circ = 0 and this becomes the Pythagorean theorem.

Use when you know:

  • Two sides and the angle between them (SAS), or
  • All three sides (SSS).

Example (SAS). a=5a = 5, b=7b = 7, angle between them C=40C = 40^\circ. Find cc.

c2=25+49257cos40c^2 = 25 + 49 - 2 \cdot 5 \cdot 7 \cdot \cos 40^\circ c2=74700.76620.4    c4.52c^2 = 74 - 70 \cdot 0.766 \approx 20.4 \implies c \approx 4.52

Example (SSS). a=4a = 4, b=5b = 5, c=6c = 6. Find angle CC.

36=16+25245cosC36 = 16 + 25 - 2 \cdot 4 \cdot 5 \cos C 5=40cosC    cosC=0.125    C82.8-5 = -40 \cos C \implies \cos C = 0.125 \implies C \approx 82.8^\circ

The ambiguous case (SSA)

Two sides and an angle opposite one of them sometimes gives two valid triangles, one triangle, or no triangle. Sketch the picture — if the "swing" of the opposite side can reach the base in two places, both are valid.

Quick chooser

KnownUse
AAS, ASALaw of Sines
SSALaw of Sines (ambiguous case)
SASLaw of Cosines
SSSLaw of Cosines

Key takeaways

  • Law of Sines: ratios of sin(angle)\sin(\text{angle}) to the opposite side are equal.
  • Law of Cosines: like Pythagorean theorem, with a 2abcosC-2ab\cos C correction.
  • SAS or SSS → Law of Cosines. Otherwise → Law of Sines.