HelpContactFor teachers and institutes
>_StemPy Lab
Mock TestsClasses

>_StemPy Lab

Learn. Solve. Code the solutions. Test yourself.

Live examsFree mock exams, timed and rankedEveryone starts together, and your score and rank come the moment it ends.See the exams →
Live examsInternational live exams are comingTell us which exam you want first. Timed practice papers are open now.See what is coming →

Learn

  • Physics
  • Chemistry
  • Mathematics
  • Biology
  • Python Programming
  • Statistics & Data Science
  • Computer Science
  • Space Science and Astronomy
  • Earth and Environmental Science
  • Classes
  • Groups

Practice

  • Problems
  • Quizzes
  • Mock Tests
  • Prepare for an Exam
  • Question Sets
  • Exams
  • Certificates
  • Python Labs
  • AI Practice Generator
  • Student-Created Tests

Community

  • Discussions
  • Resources
  • Notes
  • Glossary
  • Blog

Account

  • Log in
© 2026 senLearn. All rights reserved.HelpFor SchoolsAboutContactPrivacy PolicyTerms of UseRefund Policy
Solving Triangles, Their Areas and Constructions
  1. 1The sine, cosine and projection rules
  2. 2Area, inradius, circumradius and half-angle formulas
  3. 3Constructions with ruler and compasses
  1. Mathematics
  2. /Solving Triangles, Their Areas and Constructions
  3. /The sine, cosine and projection rules

Course 31.3·Lesson 1 of 3

The sine, cosine and projection rules

In every triangle asin⁡A=bsin⁡B=csin⁡C=2R\dfrac{a}{\sin A} = \dfrac{b}{\sin B} = \dfrac{c}{\sin C} = 2RsinAa​=sinBb​=sinCc​=2R

Lesson 1 of 3Show all lessonsHide
Solving Triangles, Their Areas and Constructions
  1. 1The sine, cosine and projection rules
  2. 2Area, inradius, circumradius and half-angle formulas
  3. 3Constructions with ruler and compasses

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 AAA of a field with a pond in the middle. She measures ABABAB and ACACAC and the angle at AAA. She cannot measure BCBCBC across the pond. Can she still find it? Yes, with the cosine rule. We write aaa, bbb, ccc for the sides opposite AAA, BBB, CCC, 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

asin⁡A=bsin⁡B=csin⁡C=2R.\displaystyle \dfrac{a}{\sin A} = \dfrac{b}{\sin B} = \dfrac{c}{\sin C} = 2R.sinAa​=sinBb​=sinCc​=2R.

Proof. Draw the circumcircle, centre OOO, radius RRR, and the diameter BDBDBD through BBB. If AAA is acute, DDD and AAA are on the same side of BCBCBC, so ∠BDC=A\angle BDC = A∠BDC=A (same segment). The angle BCDBCDBCD is 90∘90^\circ90∘ (semicircle). So sin⁡A=BCBD=a2R\sin A = \dfrac{BC}{BD} = \dfrac{a}{2R}sinA=BDBC​=2Ra​. If AAA is obtuse, ∠BDC=180∘−A\angle BDC = 180^\circ - A∠BDC=180∘−A, which has the same sine. If A=90∘A = 90^\circA=90∘, aaa is a diameter and sin⁡A=1\sin A = 1sinA=1. The same works for BBB and CCC.

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 AAA to BCBCBC, with foot DDD. The two pieces of BCBCBC are the shadows of ABABAB and ACACAC on the line BCBCBC: BD=ccos⁡BBD = c\cos BBD=ccosB and DC=bcos⁡CDC = b\cos CDC=bcosC. So

a=bcos⁡C+ccos⁡B.\displaystyle a = b\cos C + c\cos B.a=bcosC+ccosB.

This is the projection rule. If BBB or CCC is obtuse, its cosine is negative and the same formula holds. Write the projection rule for all three sides:

a=bcos⁡C+ccos⁡B,\displaystyle a = b\cos C + c\cos B,a=bcosC+ccosB,
b=ccos⁡A+acos⁡C,\displaystyle b = c\cos A + a\cos C,b=ccosA+acosC,
c=acos⁡B+bcos⁡A.\displaystyle c = a\cos B + b\cos A.c=acosB+bcosA.

Multiply them by aaa, −b-b−b and −c-c−c and add. Most terms cancel, and we get the cosine rule:

a2=b2+c2−2bccos⁡A.\displaystyle a^2 = b^2 + c^2 - 2bc\cos A.a2=b2+c2−2bccosA.

When A=90∘A = 90^\circA=90∘ it is Pythagoras' theorem. Solved for the angle, it reads cos⁡A=b2+c2−a22bc\cos A = \dfrac{b^2 + c^2 - a^2}{2bc}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∘180^\circ180∘ minus the two. Then the sine rule gives the other sides.

The ambiguous case (SSA)

Suppose you know aaa, bbb and the angle AAA, which is not between them. The sine rule gives sin⁡B=bsin⁡Aa\sin B = \dfrac{b\sin A}{a}sinB=absinA​. Count the triangles.

  • If sin⁡B>1\sin B > 1sinB>1, there is no triangle: the side aaa is too short to reach.
  • If sin⁡B=1\sin B = 1sinB=1, there is one right triangle.
  • If sin⁡B<1\sin B < 1sinB<1, there are two angles with that sine, BBB and 180∘−B180^\circ - B180∘−B. Both work when a<ba < ba<b and AAA is acute: two triangles. When a≥ba \ge ba≥b, only the acute BBB works: one triangle.

In short, for an acute AAA there are two triangles exactly when bsin⁡A<a<bb\sin A < a < bbsinA<a<b.

A worked example

From a corner AAA, the surveyor measures AB=80 mAB = 80\ \text{m}AB=80 m, AC=50 mAC = 50\ \text{m}AC=50 m and ∠A=60∘\angle A = 60^\circ∠A=60∘. Find BCBCBC and the angle BBB.

  1. Cosine rule. a2=502+802−2×50×80×12=2500+6400−4000=4900 m2a^2 = 50^2 + 80^2 - 2 \times 50 \times 80 \times \dfrac{1}{2} = 2500 + 6400 - 4000 = 4900\ \text{m}^2a2=502+802−2×50×80×21​=2500+6400−4000=4900 m2. So a=70 ma = 70\ \text{m}a=70 m.
  2. Sine rule. sin⁡B=bsin⁡Aa=50×0.86670≈0.619\sin B = \dfrac{b\sin A}{a} = \dfrac{50 \times 0.866}{70} \approx 0.619sinB=absinA​=7050×0.866​≈0.619. bbb is not the longest side, so BBB is acute: B≈38.2∘B \approx 38.2^\circB≈38.2∘.
  3. Check with the projection rule. c=acos⁡B+bcos⁡A≈70×0.786+50×0.5≈80 mc = a\cos B + b\cos A \approx 70 \times 0.786 + 50 \times 0.5 \approx 80\ \text{m}c=acosB+bcosA≈70×0.786+50×0.5≈80 m. It agrees.

Practise with new numbers

Try it in Python

The program solves the ambiguous case. Given aaa, bbb and AAA, it lists every triangle and checks each one with the cosine rule.

Read it first. Then run it. How many triangles does it find?

1. Change a = 7 to a = 10. How many triangles now, and why?

2. Change a = 7 to a = 4. What does the program say?

Common mistakes

  • The sign in the cosine rule. It is −2bccos⁡A-2bc\cos A−2bccosA. For an obtuse AAA the cosine is negative, so a2a^2a2 grows.
  • Trusting the calculator in the sine rule. sin⁡−1\sin^{-1}sin−1 gives only the acute angle. Check whether the obtuse one fits too.
  • Mixing up sides and angles. Side aaa is opposite angle AAA.
  • Degrees and radians. Angles of a triangle are usually in degrees; set the calculator to match.

Remember these

  • Sine rule: asin⁡A=bsin⁡B=csin⁡C=2R\dfrac{a}{\sin A} = \dfrac{b}{\sin B} = \dfrac{c}{\sin C} = 2RsinAa​=sinBb​=sinCc​=2R.
  • Cosine rule: a2=b2+c2−2bccos⁡Aa^2 = b^2 + c^2 - 2bc\cos Aa2=b2+c2−2bccosA.
  • Projection rule: a=bcos⁡C+ccos⁡Ba = b\cos C + c\cos Ba=bcosC+ccosB.
  • SSA with acute AAA: two triangles when bsin⁡A<a<bb\sin A < a < bbsinA<a<b.

Check yourself

Try each one on your own first. If you are stuck, open a hint. Then check with Show the answer.

  1. A triangle has sides 5 cm5\ \text{cm}5 cm, 7 cm7\ \text{cm}7 cm and 8 cm8\ \text{cm}8 cm. Find the angle opposite the side of 7 cm7\ \text{cm}7 cm.
  1. In a triangle, a=10 cma = 10\ \text{cm}a=10 cm and A=30∘A = 30^\circA=30∘. What is the circumradius?
  1. How many triangles have A=30∘A = 30^\circA=30∘, b=10 cmb = 10\ \text{cm}b=10 cm and a=6 cma = 6\ \text{cm}a=6 cm?
  1. Use the projection rule to find aaa when b=6 cmb = 6\ \text{cm}b=6 cm, c=4 cmc = 4\ \text{cm}c=4 cm, C=60∘C = 60^\circC=60∘ and B=90∘B = 90^\circB=90∘.
  1. 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.
No payment. You can leave at any time.

Problems (3)

Two ships leave a port P at the same time and sail in straight lines…Hard · High School (11–12) · by StemPy Lab
A student is told that triangle ABC has A = 40°, b = CA = 12 cm and a = BC = 9 cm…Advanced · High School (11–12) · by StemPy Lab
Let ABC be any triangle with the usual sides a, b, c…Advanced · High School (11–12) · by StemPy Lab
Next: lesson 2Area, inradius, circumradius and half-angle formulas
← Solving Triangles, Their Areas and Constructions
← PreviousArea, inradius, circumradius and half-angle formulas →

Discussion (0)

Log in to join the discussion.

Loading…

, where
RRR
is the circumradius. The cosine rule
a2=b2+c2−2bccos⁡Aa^2 = b^2 + c^2 - 2bc\cos Aa2=b2+c2−2bccosA
links the three sides with one angle. The projection rule
a=bcos⁡C+ccos⁡Ba = b\cos C + c\cos Ba=bcosC+ccosB
splits a side into two shadows. Two sides and an angle that is not between them can give two triangles, one or none.
about 30 min1 simulation2 practice questions1 Python program5 questions to check yourself

This lesson is free to read. Enroll free to keep your place and take the tests.

Python Labs (1)

Solving a trianglePython Lab · by StemPy Lab