The Law of Sines needs an angle together with its opposite side. When we know two sides and the angle between them (SAS), or all three sides (SSS), no such pair is available. The Law of Cosines handles these cases. It is the Pythagorean Theorem with a correction term that depends on the cosine of the angle.
01 · The Law of Cosines
b² = a² + c² − 2ac cos β
c² = a² + b² − 2ab cos γ
β = cos⁻¹((a² + c² − b²)/(2ac))
γ = cos⁻¹((a² + b² − c²)/(2ab))
The square of a side equals the sum of the squares of the other two sides, minus twice their product times the cosine of the included angle.
Change the angle γ between sides a and b. At γ = 90° the correction is 0 and you get the Pythagorean Theorem; an acute γ makes c shorter, an obtuse γ makes it longer.
02 · SAS: two sides and the included angle
- Use the Law of Cosines to find the third side.
- Use the Law of Cosines (or the Law of Sines) to find a second angle. Finding the smaller angle first avoids the ambiguous case.
- Find the last angle with α + β + γ = 180°.
The presets include a word problem about a bus trip.
03 · SSS: three sides
First check the triangle inequality: each side must be shorter than the sum of the other two. Then find two angles with the inverse-cosine forms and the third from the angle sum. The largest angle is across from the longest side; finding it with cos⁻¹ also tells you whether the triangle is obtuse.
04 · Heron's formula
Area = √(s(s − a)(s − b)(s − c)), where s = ½(a + b + c) is the semi-perimeter.
05 · Which law do I use?
Decide from the given information alone, before computing anything.
Guided problems · Non-right Triangles: Law of Cosines
Original problems on the Law of Cosines, SAS and SSS triangles, navigation, and Heron's formula. Open a hint if you need one, check your answers, then try another set.
Check your understanding · Non-right Triangles: Law of Cosines
Answer each question on paper first, then open the answer to check yourself.
Solve the triangle with β = 106°, a = 11, c = 16.
Show answer
b² = 11² + 16² − 2(11)(16) cos 106° ≈ 474.0, so b ≈ 21.8. α = cos⁻¹((b² + c² − a²)/(2bc)) ≈ 29.1°, and γ ≈ 180° − 106° − 29.1° ≈ 44.9°.
Solve the triangle with a = 35, b = 29, c = 21.
Show answer
α = cos⁻¹((29² + 21² − 35²)/(2 · 29 · 21)) ≈ 87.3°, β = cos⁻¹((35² + 21² − 29²)/(2 · 35 · 21)) ≈ 55.9°, γ ≈ 36.8°.
Find the area of the triangle with a = 18, b = 24, c = 27.
Show answer
s = 34.5; Area = √(34.5 · 16.5 · 10.5 · 7.5) ≈ 211.7 square units.