Key idea of this section
a/sin A = b/sin B = c/sin C = 2R, c² = a² + b² − 2ab cos C (a − b)/(a + b) = tan((A − B)/2) / tan((A + B)/2)
Conventions
In a triangle ABC we write a, b, c for the lengths of the sides opposite the vertices A, B, C, and use the same letters for the angles. We write s = (a + b + c)/2 for the semiperimeter, Δ for the area, R for the circumradius and r for the inradius. Angles satisfy A + B + C = π in the Euclidean plane, which is equivalent to the parallel postulate.
The law of cosines
Theorem 5.1. c² = a² + b² − 2ab cos C.
Proof. Place C at the origin and let u, v be the vectors from C to B and to A. Then |u| = a, |v| = b and u·v = ab cos C by the definition of the angle between vectors (which, by Lesson 2, agrees with the arc-length angle). Hence c² = |u − v|² = a² + b² − 2u·v. ∎
The law of cosines contains Pythagoras's theorem (C = π/2) and its converse, and it determines a triangle up to congruence from SSS or SAS data. Solving for the angle, cos C = (a² + b² − c²)/(2ab). The existence of a triangle with sides a, b, c is equivalent to |cos C| < 1, that is to the triangle inequalities.
The law of sines and the circumcircle
Theorem 5.2. a/sin A = b/sin B = c/sin C = 2R.
Proof. Let O be the circumcentre and let A′ be the point of the circumcircle diametrically opposite B. By the inscribed angle theorem, the angle BA′C equals A (or π − A if A′ and A lie on opposite sides of BC), and the angle BCA′ is a right angle since BA′ is a diameter. Hence a = BC = 2R sin A. ∎
A useful consequence is the area formula Δ = (1/2)ab sin C = abc/(4R). Combining Δ = (1/2)ab sin C with the law of cosines gives Heron's formula:
16Δ² = 4a²b² − (a² + b² − c²)² = (a+b+c)(−a+b+c)(a−b+c)(a+b−c), Δ = √(s(s − a)(s − b)(s − c)).
The ambiguous case SSA
Given a, b and the angle A (not between them), the law of sines gives sin B = b sin A / a. If this exceeds 1 there is no triangle; if it equals 1 there is exactly one (right) triangle; if it is less than 1 there are two candidates B and π − B, and the second is valid exactly when A + (π − B) < π, that is A < B. For example, a = 6, b = 8, A = 30° gives sin B = 2/3, B ≈ 41.81° or 138.19°, and both triangles exist.
Half-angle formulas, the law of tangents, Mollweide
From cos A = (b² + c² − a²)/(2bc) and 1 − cos A = 2 sin²(A/2), one finds:
sin²(A/2) = (s − b)(s − c)/(bc), cos²(A/2) = s(s − a)/(bc), tan(A/2) = r/(s − a),
where the last formula uses Δ = rs (decompose the triangle into three triangles with apex at the incentre). The law of tangents follows from the law of sines and sum-to-product:
(a − b)/(a + b) = (sin A − sin B)/(sin A + sin B) = tan((A − B)/2)/tan((A + B)/2),
and Mollweide's formula, a convenient check in numerical work, is
(a + b)/c = cos((A − B)/2)/sin(C/2).
The law of tangents is the natural tool for SAS data before calculators: given a, b and C one knows (A + B)/2 = (π − C)/2 and tan((A − B)/2) = ((a − b)/(a + b)) cot(C/2).
Worked example: the 13–14–15 triangle
Let a = 13, b = 14, c = 15. Then s = 21 and Δ = √(21·8·7·6) = √7056 = 84. Hence r = Δ/s = 4 and R = abc/(4Δ) = 2730/336 = 65/8. The law of cosines gives cos A = (196 + 225 − 169)/420 = 3/5, so sin A = 4/5, and indeed a/sin A = 65/4 = 2R. The other angles have cos B = 33/65 and cos C = 5/13.
Euler's distance formula
Theorem 5.3 (Euler, 1765). If O and I are the circumcentre and incentre, OI² = R(R − 2r). In particular R ≥ 2r, with equality only for the equilateral triangle.
Proof sketch. Let the bisector from A meet the circumcircle again at M, the midpoint of arc BC. The incentre–excentre lemma gives MI = MB = 2R sin(A/2). Also AI = r/sin(A/2). The power of I with respect to the circumcircle is R² − OI² = AI · IM = (r/sin(A/2)) · 2R sin(A/2) = 2Rr. ∎
For the 13–14–15 triangle, OI² = (65/8)(65/8 − 8) = 65/64.
Exercise
- (a)In a triangle with a = 7, b = 8, c = 9, find cos C and the area.
- (b)Given A = 40°, B = 60° and a = 10, find b and c to three decimal places.
- (c)Prove that in any non-right triangle tan A + tan B + tan C = tan A tan B tan C.
Show solution
Answers: (a) cos C = (49 + 64 − 81)/112 = 2/7, so C ≈ 73.40°; s = 12 and Δ = √(12·5·4·3) = √720 = 12√5 ≈ 26.833. (b) C = 80°; b = 10 sin 60°/sin 40° ≈ 13.473 and c = 10 sin 80°/sin 40° ≈ 15.321. (c) tan C = −tan(A + B) = −(tan A + tan B)/(1 − tan A tan B); clear the denominator and rearrange.