Solution of Triangles: Sine Rule, Cosine Rule, Hero's Formula
Solving a triangle means finding its unknown sides and angles from three given parts, at least one of which is a side. Two rules, the sine rule and the cosine rule, handle every case, and a handful of area formulas connect the triangle to its circumcircle, incircle and excircles. These results appear in FSc Part 1 and turn up every year in ECAT, NUST NET and JEE Main as short numerical questions.
Asked in: ECAT, NUST NET, JEE Main, FSc and Class 11-12 boards
Notation and the four cases
In triangle ABC the angles are A, B and C, and the side opposite each angle is the matching small letter: a = BC, b = CA, c = AB. Always A + B + C = 180°, and the largest side faces the largest angle.
A triangle is fixed by three sides (SSS), two sides and the included angle (SAS), or two angles and a side (ASA or AAS). Two sides and a non-included angle (SSA) may give no triangle, one or two; this is the ambiguous case.
- A + B + C = 180°
- a + b greater than c (and similarly for each pair)
- s = (a + b + c)/2 is the semi-perimeter
The sine rule
In any triangle the ratio of a side to the sine of the opposite angle is the same for all three sides, and it equals the diameter 2R of the circumcircle.
Use it when you know an angle and its opposite side together with one more side or angle (ASA, AAS, SSA). It also shows that the sides are in the same ratio as the sines of the opposite angles.
- a/sin A = b/sin B = c/sin C = 2R
- a : b : c = sin A : sin B : sin C
The cosine rule and projection formulas
The cosine rule generalises Pythagoras' theorem. Use it to find the third side when two sides and the included angle are known (SAS), or to find any angle when all three sides are known (SSS).
The sign of b² + c² − a² tells you the type of angle A: positive means acute, zero means right, negative means obtuse. The projection formulas say that each side equals the sum of the projections of the other two sides on it.
- a² = b² + c² − 2bc cos A
- cos A = (b² + c² − a²)/(2bc)
- a = b cos C + c cos B (projection formula)
Area of a triangle
The area Δ is half the product of two sides and the sine of the angle between them. With all three sides known, Hero's (Heron's) formula gives the area directly from the semi-perimeter.
The area also links to the circumradius and the inradius, so you rarely need to find an angle first.
- Δ = ½ bc sin A = ½ ca sin B = ½ ab sin C
- Hero's formula: Δ = √[s(s − a)(s − b)(s − c)]
- Δ = abc/(4R) = rs
Circumradius, inradius and exradii
The circumcircle passes through the three vertices; its radius is R. The incircle touches all three sides from inside; its radius is r. Each excircle touches one side and the extensions of the other two; the one opposite A has radius r₁.
For a right triangle, the hypotenuse is a diameter of the circumcircle, so R is half the hypotenuse, and r = (sum of the legs − hypotenuse)/2. For an equilateral triangle of side a, R = a/√3 and r = a/(2√3), so R = 2r.
- R = a/(2 sin A) = abc/(4Δ)
- r = Δ/s
- r₁ = Δ/(s − a), r₂ = Δ/(s − b), r₃ = Δ/(s − c)
Half-angle formulas
When all three sides are known, the half-angles can be written using s alone, which avoids inverse cosines of awkward numbers.
These formulas also explain r = (s − a) tan(A/2): the incircle's tangent lengths from vertex A are each s − a.
- sin(A/2) = √[(s − b)(s − c)/(bc)]
- cos(A/2) = √[s(s − a)/(bc)]
- tan(A/2) = √[(s − b)(s − c)/(s(s − a))] = r/(s − a)
Solved examples
- In triangle ABC, A = 45°, B = 60° and a = 10. Find b and C.
- C = 180° − 45° − 60° = 75°.
- Sine rule: b = a sin B/sin A = 10 × (√3/2) ÷ (√2/2) = 10√3/√2 = 5√6.
- 5√6 ≈ 12.25, which is larger than a, as it should be, since B is larger than A.
Answer: b = 5√6 ≈ 12.25 and C = 75° - The sides of a triangle are 7, 5 and 3. Find its largest angle.
- The largest angle faces the largest side, 7. Call it A, with b = 5 and c = 3.
- cos A = (5² + 3² − 7²)/(2 × 5 × 3) = (25 + 9 − 49)/30 = −15/30 = −1/2.
- So A = 120°, an obtuse angle, as the negative cosine predicts.
Answer: 120° - Two sides of a triangle are b = 5 and c = 8, and the angle between them is A = 60°. Find the third side.
- Cosine rule: a² = b² + c² − 2bc cos A = 25 + 64 − 2 × 5 × 8 × ½.
- a² = 89 − 40 = 49, so a = 7.
Answer: a = 7 - Find the area of the triangle with sides 13, 14 and 15 using Hero's formula.
- s = (13 + 14 + 15)/2 = 21.
- s − a = 8, s − b = 7, s − c = 6.
- Δ = √(21 × 8 × 7 × 6) = √7056 = 84 square units.
Answer: 84 square units - For the same triangle with sides 13, 14 and 15, find the circumradius R and the inradius r.
- From the last example Δ = 84 and s = 21.
- R = abc/(4Δ) = (13 × 14 × 15)/(4 × 84) = 2730/336 = 65/8 = 8.125.
- r = Δ/s = 84/21 = 4.
Answer: R = 65/8 and r = 4 - Ayesha is told that a = 6, b = 8 and A = 30°. How many triangles fit this data, and what are the possible values of B?
- Sine rule: sin B = b sin A/a = 8 × ½ ÷ 6 = 2/3.
- Since 2/3 is less than 1, B can be acute or obtuse: B ≈ 41.8° or B ≈ 180° − 41.8° = 138.2°.
- Both work, because 30° + 138.2° is still less than 180°. Check with the rule: b sin A = 4 is less than a = 6, which is less than b = 8, so there are two triangles.
Answer: Two triangles: B ≈ 41.8° or B ≈ 138.2°
Exam shortcuts
- Pick the rule by what is given: an angle with its opposite side means the sine rule; SAS or SSS means the cosine rule.
- Find the largest angle opposite the largest side; if c² is greater than a² + b², the triangle is obtuse, with no need to find the angle.
- Learn a few triangles with whole-number areas: 3-4-5 (6), 5-12-13 (30), 13-14-15 (84) and 7-8-9 (12√5). They appear again and again.
- In a right triangle, R is half the hypotenuse and r = (a + b − c)/2, so no formulas are needed.
- For SSA data, compare a with b sin A: smaller means no triangle, equal means one right triangle, between b sin A and b means two, and a ≥ b means one.
Common mistakes
- Using the cosine rule with the wrong angle; the angle in a² = b² + c² − 2bc cos A must be the one between b and c, opposite a.
- Forgetting the second (obtuse) value of an angle found from the sine rule, which loses one of the two triangles in the ambiguous case.
- Using the perimeter instead of the semi-perimeter s in Hero's formula or in r = Δ/s.
- Mixing up R and r: R = abc/(4Δ) is the larger circumradius, r = Δ/s is the inradius.
Practice MCQs
- In triangle ABC, a = 6, A = 30° and B = 45°. What is b?
A) 3√2
B) 6√2
C) 6√3
D) 12
Answer: B) 6√2 — b = a sin B/sin A = 6 × (√2/2) ÷ (1/2) = 6√2. Multiplying by sin A instead of dividing gives 3√2, 6√3 uses sin 60°, and 12 is 2R, the common ratio a/sin A. - What is the area of a triangle with b = 6, c = 10 and A = 30°?
A) 30
B) 15
C) 60
D) 15√3
Answer: B) 15 — Δ = ½ bc sin A = ½ × 6 × 10 × ½ = 15. Leaving out the ½ in front gives 30, and 15√3 uses cos 30° in place of sin 30°. - The sides of a triangle are 5, 7 and 8. The angle opposite the side 7 is:
A) 120°
B) 30°
C) 60°
D) 45°
Answer: C) 60° — cos θ = (5² + 8² − 7²)/(2 × 5 × 8) = 40/80 = 1/2, so θ = 60°. 120° comes from a sign slip that gives cos θ = −1/2. - What is the circumradius of a triangle with A = 30° and a = 5?
A) 5/2
B) 5
C) 10
D) 5√3
Answer: B) 5 — a/sin A = 2R, so 2R = 5 ÷ ½ = 10 and R = 5. 10 is the diameter 2R, and 5/2 multiplies by sin A instead of dividing. - The inradius of a triangle with sides 6, 8 and 10 is:
A) 2
B) 5
C) 3
D) 4
Answer: A) 2 — This is a right triangle with Δ = ½ × 6 × 8 = 24 and s = 12, so r = Δ/s = 2. Check: r = (6 + 8 − 10)/2 = 2. 5 is the circumradius (half the hypotenuse), and 4 divides by 6 instead of s. - The area of a triangle with sides 7, 8 and 9 is:
A) 12√5
B) 24√5
C) 6√5
D) 12√3
Answer: A) 12√5 — s = 12, so Δ = √(12 × 5 × 4 × 3) = √720 = 12√5 ≈ 26.8. 24√5 is double the area, and 12√3 simplifies √720 wrongly (720 = 144 × 5). - The circumradius of an equilateral triangle of side 6 is:
A) 3
B) 3√3
C) 2√3
D) √3
Answer: C) 2√3 — R = a/(2 sin 60°) = 6/√3 = 2√3. √3 is the inradius a/(2√3), and 3√3 is the height of the triangle. - In a triangle with a = 4, b = 5 and c = 6, cos C equals:
A) 1/8
B) 9/16
C) −1/8
D) 3/4
Answer: A) 1/8 — cos C = (a² + b² − c²)/(2ab) = (16 + 25 − 36)/40 = 5/40 = 1/8. 3/4 is cos A and 9/16 is cos B, found by taking the wrong side as opposite. −1/8 has a sign slip; C is acute because 36 is less than 16 + 25. - In triangle ABC, a = 2, b = √3 + 1 and C = 60°. What is c?
A) 2√2
B) √2
C) √6
D) √3
Answer: C) √6 — c² = a² + b² − 2ab cos C = 4 + (4 + 2√3) − 2(√3 + 1) = 6, so c = √6. The key step is (√3 + 1)² = 4 + 2√3, whose 2√3 cancels against the −2√3 from the last term; expanding the square as just 3 + 1 leaves an untidy surd instead. - In any triangle ABC, a cos B + b cos A equals:
A) 0
B) 2R
C) c
D) a + b
Answer: C) c — This is the projection formula: the projections of sides a and b on side c add up to c. A check with a = 4, b = 5, c = 6: 4 × (9/16) + 5 × (3/4) = 9/4 + 15/4 = 6. The sum a + b is too large, since each cosine is at most 1. - If the sides of a triangle are in the ratio a : b : c = 1 : √3 : 2, then A : B : C equals:
A) 1 : √3 : 2
B) 3 : 2 : 1
C) 1 : 1 : 2
D) 1 : 2 : 3
Answer: D) 1 : 2 : 3 — Since 1² + (√3)² = 2², the triangle is right-angled at C. Then sin A = 1/2 gives A = 30° and B = 60°, so A : B : C = 30 : 60 : 90 = 1 : 2 : 3. Angles are not proportional to sides, so copying the side ratio is wrong. - What is the circumradius of a triangle with sides 5, 5 and 6?
A) 25/8
B) 3/2
C) 4
D) 25/4
Answer: A) 25/8 — The height to the side 6 is √(25 − 9) = 4, so Δ = 12. R = abc/(4Δ) = 150/48 = 25/8. 3/2 is the inradius Δ/s = 12/8, 25/4 is the diameter, and 4 is the height. - How many triangles can be formed with a = 3, b = 8 and A = 30°?
A) Infinitely many
B) One
C) Two
D) None
Answer: D) None — sin B = b sin A/a = 8 × ½ ÷ 3 = 4/3, which is greater than 1, so no angle B exists. In other words a = 3 is shorter than b sin A = 4, the least distance from C to the other side, so side a cannot reach it. - For the right triangle with sides 6, 8 and 10, the exradius opposite the hypotenuse is:
A) 4
B) 12
C) 2
D) 6
Answer: B) 12 — Δ = 24 and s = 12, so r₃ = Δ/(s − c) = 24/(12 − 10) = 12. The other exradii are 24/6 = 4 and 24/4 = 6, and 2 is the inradius Δ/s. - In triangle ABC, (a + b + c)(b + c − a) = 3bc. The angle A is:
A) 120°
B) 30°
C) 90°
D) 60°
Answer: D) 60° — The left side is (b + c)² − a² = b² + c² + 2bc − a². Setting it equal to 3bc gives b² + c² − a² = bc, so cos A = bc/(2bc) = 1/2 and A = 60°. Treating the product as a² − (b + c)² flips the sign and leads to 120°.
Questions
When should I use the sine rule and when the cosine rule?
Use the sine rule when an angle and its opposite side are both known. Use the cosine rule when you know two sides and the angle between them, or all three sides.
What is the ambiguous case?
When two sides and a non-included angle (SSA) are given, the sine rule gives sin B, and both an acute and an obtuse angle have that sine. Depending on the lengths, this can give zero, one or two triangles.
What is Hero's formula?
It gives the area from the three sides: Δ = √[s(s − a)(s − b)(s − c)], where s is half the perimeter. It is credited to Hero (Heron) of Alexandria.
How are R and r related to the area?
Δ = abc/(4R) and Δ = rs. So R = abc/(4Δ) and r = Δ/s, which lets you find both radii once the area is known.