Try the code and the simulations beside the lesson.
What you will be able to do
prove the sine rule with the circumcircle, and the cosine and projection rules;
solve a triangle from three sides, from two sides and the angle between them, or from two angles and a side;
decide how many triangles fit two sides and an angle that is not between them.
A field you cannot walk across
A surveyor stands at a corner A of a field with a pond in the middle. She measures AB and AC and the angle at A. She cannot measure BC across the pond. Can she still find it? Yes, with the cosine rule. We write a, b, c for the sides opposite A, B, C, as books in India, the UK and the IB all do. Books in the US call the rules the law of sines and the law of cosines.
The sine rule
sinAa=sinBb=sinCc=2R.
Proof. Draw the circumcircle, centre O, radius R, and the diameter BD through B. If A is acute, D and A are on the same side of BC, so ∠BDC=A (same segment). The angle BCD is 90∘ (semicircle). So sinA=BDBC=2Ra. If A is obtuse, ∠BDC=180∘−A, which has the same sine. If A=90∘, a is a diameter and sinA=1. The same works for B and C.
Triangle ABC inside its circumcircle with centre O. The diameter BD is drawn through B, and D is joined to C. The angle BDC is marked equal to the angle A, and the angle BCD is marked as a right angle. The diameter is labelled 2R and the side BC is labelled a.
The cosine rule and the projection rule
Drop the altitude from A to BC, with foot D. The two pieces of BC are the shadows of AB and AC on the line BC: BD=ccosB and DC=bcosC. So
a=bcosC+ccosB.
This is the projection rule. If B or C is obtuse, its cosine is negative and the same formula holds. Write the projection rule for all three sides:
a=bcosC+ccosB,
b=ccosA+acosC,
c=acosB+bcosA.
Multiply them by a, −b and −c and add. Most terms cancel, and we get the cosine rule:
a2=b2+c2−2bccosA.
When A=90∘ it is Pythagoras' theorem. Solved for the angle, it reads cosA=2bcb2+c2−a2.
Solving a triangle
A triangle is fixed by three suitable pieces. Pick the rule that fits.
Three sides (SSS). The cosine rule gives each angle.
Two sides and the angle between them (SAS). The cosine rule gives the third side.
Two angles and a side (ASA, AAS). The third angle is 180∘ minus the two. Then the sine rule gives the other sides.
The ambiguous case (SSA)
Suppose you know a, b and the angle A, which is not between them. The sine rule gives sinB=absinA. Count the triangles.
If sinB>1, there is no triangle: the side a is too short to reach.
If sinB=1, there is one right triangle.
If sinB<1, there are two angles with that sine, B and 180∘−B. Both work when a<b and A is acute: two triangles. When a≥b, only the acute B works: one triangle.
In short, for an acute A there are two triangles exactly when bsinA<a<b.
A worked example
From a corner A, the surveyor measures AB=80m, AC=50m and ∠A=60∘. Find BC and the angle B.
Cosine rule.a2=502+802−2×50×80×21=2500+6400−4000=4900m2. So a=70m.
Sine rule.sinB=absinA=7050×0.866≈0.619. b is not the longest side, so B is acute: B≈38.2∘.
Check with the projection rule.c=acosB+bcosA≈70×0.786+50×0.5≈80m. It agrees.
Practise with new numbers
Try it in Python
The program solves the ambiguous case. Given a, b and A, it lists every triangle and checks each one with the cosine rule.
Common mistakes
The sign in the cosine rule. It is −2bccosA. For an obtuse A the cosine is negative, so a2 grows.
Trusting the calculator in the sine rule.sin−1 gives only the acute angle. Check whether the obtuse one fits too.
Mixing up sides and angles. Side a is opposite angle A.
Degrees and radians. Angles of a triangle are usually in degrees; set the calculator to match.
Remember these
Sine rule: sinAa=sinBb=sinCc=2R.
Cosine rule: a2=b2+c2−2bccosA.
Projection rule: a=bcosC+ccosB.
SSA with acute A: two triangles when bsinA<a<b.
Check yourself
Try each one on your own first. If you are stuck, open a hint. Then check with Show the answer.
A triangle has sides 5cm, 7cm and 8cm. Find the angle opposite the side of 7cm.
In a triangle, a=10cm and A=30∘. What is the circumradius?
How many triangles have A=30∘, b=10cm and a=6cm?
Use the projection rule to find a when b=6cm, c=4cm, C=60∘ and B=90∘.
Show that the cosine rule becomes Pythagoras' theorem for a right angle.
References
OpenStax, Algebra and Trigonometry 2e, Chapter 10, sections 10.1 and 10.2, on the law of sines and the law of cosines.
H. S. M. Coxeter and S. L. Greitzer, Geometry Revisited, Chapter 1, on the extended law of sines.
Enroll free in Solving Triangles, Their Areas and Constructions
Every lesson is open to read. Enrolling also lets you:
Mark lessons done and carry on where you stopped.
Take the tests of this lesson and its course.
Count the course towards the certificate for its chapter.