Three arcs of great circles make a spherical triangle. The cosine rule cosa=cosbcosc+sinbsinccosA
Lesson 2 of 3Show all lessonsHide
Try the code and the simulations beside the lesson.
A triangle with curved sides
Draw a triangle on an orange. Start at the top, go down a line of longitude to the equator, turn and walk a quarter of the way round the equator, then go back up to the top. Each corner of this triangle is a right angle. So its angles add up to 270∘. On a sphere the rules of flat triangles fail, and we need new ones.
The spherical triangle
A spherical triangle drawn on a sphere with centre O. Its three corners are A, B and C. Each side is an arc of a great circle, curved outwards. The side opposite A is labelled a, the side opposite B is b and the side opposite C is c. Thin straight lines join O to each corner. A note says that each side is measured by the angle it makes at O. At corner A, two short tangent lines show the angle A between the two great circles that meet there.
A spherical triangle has three corners joined by arcs of great circles. We name the corners A, B and C, and the side opposite each corner by the small letter: side a is opposite A.
Each side is measured by the angle it makes at the centre O of the sphere.
Each angle, such as A, is the angle between the two great circles that meet at that corner. It is the angle between their tangents at the corner.
We use triangles whose sides and angles are all less than 180∘.
The cosine rule
For any spherical triangle,
cosa=cosbcosc+sinbsinccosA
It finds the third side from two sides and the angle between them. Turned round, it finds an angle from three sides:
cosA=sinbsinccosa−cosbcosc
Where it comes from. Put the unit sphere with A on the z axis. Let B lie in the xz plane at angle c from A, and C at angle b from A in a plane turned by the angle A. The unit vectors are B=(sinc,0,cosc) and C=(sinbcosA,sinbsinA,cosb). The side a is the angle between them, so cosa=B⋅C. Multiply out, and the rule appears.
The sine rule
sinAsina=sinBsinb=sinCsinc
It is quick, but it has a trap. The inverse sine gives two angles, x and 180∘−x, with the same sine. Check which one fits, for example with the cosine rule for angles.
The cosine rule for angles
From the three angles we can find a side:
cosA=−cosBcosC+sinBsinCcosa
So on a sphere, three angles fix the triangle and its size. On a flat sheet they fix only its shape.
Small triangles look flat
For small sides, cosx≈1−x2/2 and sinx≈x, with x in radians. Put these in the cosine rule:
1−2a2≈(1−2b2)(1−2c2)
+bccosA
Keep terms up to the second power. This gives a2=b2+c2−2bccosA, the flat cosine rule. A triangle of stars a few degrees across is nearly flat, but a triangle tens of degrees across is not.
The spherical excess and the area
The angles of a spherical triangle always add up to more than 180∘. The extra is the spherical excess
E=A+B+C−180∘
Written in radians, E is the area of the triangle on a sphere of radius 1, in steradians. On a sphere of radius R the area is ER2. The orange triangle above has E=90∘=π/2, so its area is πR2/2, one eighth of the sphere. That checks.
Worked example: two sides and the angle between them
A triangle has b=40∘, c=70∘ and A=100∘. Find a and B.
The side.cosa=cos40∘cos70∘+sin40∘sin70∘cos100∘=0.2620−0.1049=0.1571. So a=80.96∘.
The angle, by the sine rule.sinB=sin40∘×sin100∘/sin80.96∘=0.6410. So B=39.87∘ or 140.13∘.
Which one? The cosine rule for angles has the top cos40∘−cos80.96∘×cos70∘=0.7123 and the bottom sin80.96∘×sin70∘=0.9280. So cosB=0.7676, which is positive. So B=39.87∘.
Check. The larger side, c=70∘, should face the larger of the angles B and C. Here b is the smallest side and B is the smallest angle. It fits.
Make both sides 2∘. Do the two curves agree? Now make both 90∘. What is side a on the sphere for every angle A, and why?
Practise with new numbers
Try it in Python
The program solves a spherical triangle from two sides and the angle between them. It finds the other angles with the cosine rule, so there is no doubt about which angle is right.
Common mistakes
Using the flat cosine rule. On the sky the sides are arcs, so use cosa=cosbcosc+sinbsinccosA.
Taking one answer from the sine rule.sin−1 gives two angles. Decide with the cosine rule.
Mixing a side with an angle. A side is an angle at the centre; an angle of the triangle is between two great circles at a corner.
Expecting 180∘. The angles of a spherical triangle add up to between 180∘ and 540∘.
Forgetting radians for the area. The excess must be in radians to give steradians.
Remember these
Cosine rule: cosa=cosbcosc+sinbsinccosA.
Sine rule: sina/sinA=sinb/sinB=sinc/sinC.
Angles: cosA=−cosBcosC+sinBsinCcosa.
Excess: E=A+B+C−180∘; area =ER2 with E in radians.
Small triangles obey the flat rules.
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 b=c=90∘. What does the cosine rule give for a?
A spherical triangle has angles 75∘, 80∘ and 85∘. What fraction of the sphere does it cover?
The sine rule gives sinB=0.5. Which two values can B have?
Why can two spherical triangles with the same three angles not have different sizes?
References
W. M. Smart, Textbook on Spherical Astronomy (6th edition, Cambridge University Press), Chapter 1, Spherical trigonometry.
A. E. Roy and D. Clarke, Astronomy: Principles and Practice (4th edition, Institute of Physics), the chapter on spherical trigonometry.
Enroll free in Spherical Trigonometry on the Celestial Sphere
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.