When the Law of Sines Cannot Start
The law of sines needs a matched pair: a side and the angle opposite it. Two very common setups hand you no such pair:
- SAS: two sides and the angle between them
- SSS: all three sides and no angles at all
For these, we need a different tool. That tool is the law of cosines.
The Law
It relates all three sides to one angle:
Here is the angle, and is the side directly opposite it. The other two sides, and , are the ones that meet at .
The bar on the right is , and it never changes. The green bar is . As the angle opens, watch climb past that fixed line or fall below it. The shaded gap between them is the correction, : it shrinks when is acute, vanishes at , and grows when is obtuse.
It Is Just Pythagoras, Corrected
Look closely at the formula. The first part, , is the Pythagorean theorem. The last part, , is a correction for the angle not being a right angle.
Watch the correction term in the animation as passes through :
| Angle | Correction | Result | |
|---|---|---|---|
| acute () | positive | subtracts | |
| right () | vanishes | ||
| obtuse () | negative | adds |
At exactly the correction disappears and the law of cosines becomes the Pythagorean theorem.
Example: Two Sides and the Angle Between (SAS)
Given , , and the included angle . Find .
So .
Example: Three Sides, Find an Angle (SSS)
Rearranged, the law solves for the angle instead. Move the pieces around:
Given , , . Find .
Unlike the law of sines, gives a single answer between and , so there is no ambiguous case here.
Which Law, When
| You know | Use |
|---|---|
| AAS, ASA, or SSA | Law of Sines |
| SAS or SSS | Law of Cosines |
A simple way to decide: if you have a side paired with its opposite angle, reach for the law of sines. If you are stuck with two sides and the angle between them, or all three sides, reach for the law of cosines.