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 a is opposite angle A, side b opposite B, side c opposite C.
Law of Sines
asinA=bsinB=csinC
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=50∘, B=60∘, a=8. Find b.
8sin50∘=bsin60∘ b=sin50∘8sin60∘≈0.7668⋅0.866≈9.05
Law of Cosines
c2=a2+b2−2abcosC
(Similar formulas for a2 and b2 by cycling letters.) Notice if C=90∘, cos90∘=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=5, b=7, angle between them C=40∘. Find c.
c2=25+49−2⋅5⋅7⋅cos40∘ c2=74−70⋅0.766≈20.4⟹c≈4.52
Example (SSS). a=4, b=5, c=6. Find angle C.
36=16+25−2⋅4⋅5cosC −5=−40cosC⟹cosC=0.125⟹C≈82.8∘
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
| Known | Use |
|---|---|
| AAS, ASA | Law of Sines |
| SSA | Law of Sines (ambiguous case) |
| SAS | Law of Cosines |
| SSS | Law of Cosines |
Key takeaways
- Law of Sines: ratios of sin(angle) to the opposite side are equal.
- Law of Cosines: like Pythagorean theorem, with a −2abcosC correction.
- SAS or SSS → Law of Cosines. Otherwise → Law of Sines.