The laws of sines and cosines
The law of sines and the law of cosines carry trigonometry into any triangle — including one with no right angle. See which to pick for the data you are given, why the law of cosines generalises Pythagoras, and when there are two solutions.
Before you start
This topic builds on earlier ideas. Before you start, it's worth working through the lessons below — they'll make everything click:
- Sine, cosine and tangentSine, cosine and tangent are three ratios of the sides of a right triangle. See why they depend on the angle alone, where the exact values for 30°, 45° and 60° come from, and how to find a side you cannot measure.
- AnglesAngles are measured in degrees: acute below 90°, right exactly 90°, obtuse above it. Meet the kinds of angle, complementary and supplementary pairs, and the single most useful rule in plane geometry — the angles of a triangle always add up to 180°.
All formulas
The law of sines
a side and the angle opposite it — always as a pair
A side from the law of sines
the proportion solved for the unknown side
The law of cosines
α is the angle between the sides b and c
An angle from three sides
the law of cosines solved for the angle
The angle sum
the third angle always follows from the other two
Sine, cosine and tangent were defined in a right triangle. Most triangles, in exercises and in the field, have no right angle — and yet a missing side and a missing angle can still be computed. Two theorems do the job.
Labelling
The convention is simple: a lowercase letter is the side opposite the angle carrying the matching Greek letter. On top of that, the angle sum is always available:
so two known angles hand you the third for free.
The law of sines
A side and the sine of the angle opposite it are proportional: a longer side lies opposite a larger angle. The common ratio even has a geometric meaning — it equals , where is the radius of the circle through the three vertices.
Use the law when the data contains a complete pair: a side together with the angle opposite it.
The law of cosines
Here is the angle enclosed between the sides and . Use the law when there is no complete side–angle pair: two sides and the angle between them, or all three sides.
Look at how the formula is built: the first two terms are the Pythagorean theorem, and the third is a correction. For we have , so the correction disappears:
The Pythagorean theorem is therefore a special case of the law of cosines. For an acute angle the cosine is positive and the correction shrinks ; for an obtuse angle the cosine is negative, minus times minus makes plus, and the opposite side grows longer — exactly what the picture suggests.
Choosing the law
| given | law |
|---|---|
| two angles and a side | sines (third angle from the sum) |
| two sides and an angle opposite one of them | sines (careful: two solutions are possible) |
| two sides and the angle between them | cosines |
| three sides | cosines (solved for the angle) |
The rule in one sentence: a complete side–opposite-angle pair → sines; no such pair → cosines.
The ambiguous case
Data of the form "two sides and the angle opposite the shorter one" can be ambiguous. The reason is in the function itself: , so one value of the sine belongs to two angles — one acute, one obtuse.
Take , and . The law of sines gives
and that sine belongs to both and . Both are admissible, because in both cases the angle sum stays below — so two different triangles fit the data. You only discard the one where would exceed .
A calculator will not point this out: the inverse function returns the acute angle only. The second solution has to be added by hand.
The calculator: DEG mode
Both laws are computed with angles in degrees, so the calculator has to sit in DEG mode. The quick test: must give . If it gives , the calculator is working in radians and every result will be wrong even though the algebra is right.
Exercises
Law-of-cosines questions have a whole-number answer — type it together with its unit, e.g. 7 cm. In law-of-sines questions the unit is given in brackets, so type the bare number rounded to 0.1.
Practice
Work through a set of exercises — they get harder as you go. At the end you'll see your score and the mistakes worth reviewing.
Common mistakes
- Pairing a side with the wrong angle — in the law of sines a side always goes with the angle opposite it.
- Using the law of cosines with an angle that is not between the given sides — in the formula is the angle enclosed by and .
- Computing as — only the sides and are squared.
- Forgetting the square root — is not the answer yet; the answer is .
- Missing the second solution in the SSA case — the sine cannot tell an acute angle from an obtuse one.
- A calculator left in RAD mode — right formulas, wrong numbers.
Formula card
Topic: The laws of sines and cosines
The law of sines
a side and the angle opposite it — always as a pair
A side from the law of sines
the proportion solved for the unknown side
The law of cosines
α is the angle between the sides b and c
An angle from three sides
the law of cosines solved for the angle
The angle sum
the third angle always follows from the other two
