Vertex Learn

The sine and cosine rules

What this lesson covers

  • Use the sine rule when you have a side and its opposite angle.
  • Use the cosine rule for two sides and the angle between them.
  • Use the cosine rule for three sides.
Key idea

Which rule

  • Sine rule: a/sin A = b/sin B = c/sin C.
  • Cosine rule: a² = b² + c² − 2bc cos A.
  • To find an angle from three sides: cos A = (b² + c² − a²) ÷ 2bc.
A triangle with vertices A, B, C and each side a, b, c opposite its angle.
Worked example

Sine rule

  • A = 40°, B = 60°, a = 10. Find b.
  1. b/sin 60° = 10/sin 40°
  2. b = 10 × 0.8660 ÷ 0.6428
  3. b = 13.47
Worked example

Cosine rule for a side

  • b = 7, c = 9, A = 50°. Find a.
  1. a² = 49 + 81 − 126 cos 50°
  2. a² = 130 − 80.99 = 49.01
  3. a = 7.00
Worked example

Cosine rule for an angle

  • The sides are 5, 6 and 7. Find the largest angle, opposite the 7.
  1. cos C = (25 + 36 − 49) ÷ 60
  2. cos C = 0.2
  3. C = 78.5°
Key idea

Try it: change the triangle

  • Set two sides and the angle between them. The cosine rule gives the third side.
Key idea

Triangle solver

Worked example

Two possible triangles

  • a = 8, b = 10, A = 40°. An angle from sin B may have two answers.
  1. sin B = 10 sin 40° ÷ 8 = 0.8035
  2. B = 53.5° or B = 126.5°
  3. both fit: A + B is under 180°
Key idea

Try it: two possible triangles

Common mistakes

  • Using a calculator set to radians.
    Check it shows degrees before you start.
  • Calculating (b² + c² − 2bc) × cos A.
    Only the last term carries cos A.

Your turn

1

Two angles and a side are known. Which rule?

2

Three sides are known. Which rule finds an angle?

3

A = 30°, a = 5, B = 90°. Find b.

4

Sides 3 and 4 with 60° between. Find the third side.

Show answer

1. Sine rule 2. Cosine rule 3. b = 5 sin 90° ÷ sin 30° = 10 4. √13 = 3.61

Your turn

Sample question: Achieved

In triangle ABC, A = 52°, B = 71° and a = 15 cm. Find b.

Hint

You have a side and its opposite angle, so use the sine rule.

Answer

b ≈ 18.00 cm

Step by step
  1. Side a and angle A are opposite each other: a matching pair. That means the sine rule.
  2. bsin B = asin A, so bsin 71° = 15sin 52°.
  3. Multiply both sides by sin 71°: b = 15 sin 71°sin 52°.
  4. b ≈ 15 × 0.9455 ÷ 0.7880 ≈ 18.00 cm.
  5. Check: the bigger angle is opposite the bigger side. 71° > 52° and 18.00 > 15. Correct.
  6. Classic mistake: putting sin 52° on top. Keep the unknown side on top so it is easy to solve.
Full working
  1. bsin 71° = 15sin 52°sine rule
  2. b = 15 sin 71°sin 52°
  3. b ≈ 18.00 cm
Your turn

Sample questions: Merit

1

A triangle has sides 8 cm, 11 cm and 15 cm. Find all three angles.

Hint

Use the cosine rule for the largest angle first; then the other two angles must be acute, so the sine rule is safe.

Answer

About 31.3°, 45.6° and 103.1°

Step by step
  1. With three sides and no angles, the cosine rule is the only way in.
  2. Find the largest angle first, opposite the 15 cm side: cos C = (8² + 11² − 15²) ÷ (2 × 8 × 11) = (64 + 121 − 225) ÷ 176 = −40176.
  3. cos C is negative, so C is obtuse: C ≈ 103.14°.
  4. Why largest first? A triangle has at most one obtuse angle, so the other two are now known to be acute. The sine rule cannot mislead us.
  5. Angle opposite 8 cm: sin A = 8 sin 103.14°15 ≈ 0.5194, so A ≈ 31.29°.
  6. The last angle: 180° − 103.14° − 31.29° ≈ 45.57°.
  7. Classic mistake: finding a small angle first with the sine rule and then the largest angle by sine too. The calculator would give an acute answer for the obtuse angle.
  8. Check the 45.57° with the cosine rule: cos B = (64 + 225 − 121) ÷ 240 = 0.7, which gives 45.57°. It matches.
Full working
  1. cos C = 64 + 121 − 225176 = −40176cosine rule, largest angle
  2. C ≈ 103.14°
  3. sin A = 8 sin 103.14°15, so A ≈ 31.29°sine rule, acute
  4. B = 180° − 103.14° − 31.29° ≈ 45.57°angle sum
  5. 31.3°, 45.6° and 103.1°
2

In triangle ABC, a = 9 cm, b = 12 cm and A = 38°. Find the two possible lengths of side c.

Hint

Use the sine rule to find B. Sine gives two angles between 0° and 180°, so check whether both fit.

Answer

c ≈ 14.60 cm or c ≈ 4.32 cm

Step by step
  1. A and a are a matching pair, so the sine rule finds B: sin B = 12 sin 38°9 ≈ 0.8209.
  2. B ≈ 55.17°, or B = 180° − 55.17° = 124.83°. Sine is positive in both places.
  3. Do both fit? 38° + 55.17° and 38° + 124.83° = 162.83° are both under 180°. So there are two triangles.
  4. Case 1: C = 180° − 38° − 55.17° = 86.83°. c = 9 sin 86.83°sin 38° ≈ 14.60 cm.
  5. Case 2: C = 180° − 38° − 124.83° = 17.17°. c = 9 sin 17.17°sin 38° ≈ 4.32 cm.
  6. Why two? The side a = 9 is opposite the given angle and shorter than b = 12, so it can swing to meet the base line in two places.
  7. Classic mistake: stopping at the calculator's B = 55.17° and giving one answer.
  8. Check case 2 with the cosine rule: 9² should equal 12² + 4.32² − 2 × 12 × 4.32 × cos 38°: 144 + 18.63 − 81.63 ≈ 81. Correct.
Full working
  1. sin B = 12 sin 38°9 ≈ 0.8209sine rule
  2. B ≈ 55.17° or 124.83°both under 180° − 38°
  3. C ≈ 86.83° or 17.17°angle sum
  4. c = 9 sin Csin 38°sine rule
  5. c ≈ 14.60 cm or c ≈ 4.32 cm
Your turn

Sample questions: Excellence

1

In triangle ABC, A = 30°, a = 5 cm and b = x cm. Find the range of values of x for which two different triangles are possible. Then, for x = 8, find both possible lengths of side c.

Hint

With sin 30° = 12, the sine rule gives sin B = x10. Two triangles need 0 < sin B < 1 and the obtuse B to still fit.

Answer

Two triangles when 5 < x < 10; for x = 8, c ≈ 9.93 cm or c ≈ 3.93 cm

Step by step
  1. Sine rule: sin Bx = sin 30°5, so sin B = x × ½ ÷ 5 = x10.
  2. If sin B > 1 (x > 10) there is no triangle. If sin B = 1 (x = 10) there is exactly one, with a right angle at B.
  3. If x < 10, sin B < 1 gives two angles: an acute B and an obtuse 180° − B.
  4. The obtuse one only fits if A + (180° − B) < 180°, that is, B > 30°. That needs sin B > ½, so x10 > ½ and x > 5.
  5. If x ≤ 5, side a is at least as long as b, and only the acute B works. One triangle.
  6. So two triangles exist exactly when 5 < x < 10.
  7. For x = 8: sin B = 0.8, so B ≈ 53.13° or 126.87°.
  8. Then C ≈ 180° − 30° − 53.13° = 96.87°, or C ≈ 180° − 30° − 126.87° = 23.13°.
  9. c = 5 sin Csin 30° = 10 sin C, so c ≈ 10 × 0.9928 = 9.93 cm, or c ≈ 10 × 0.3928 = 3.93 cm.
  10. Check: 8 is between 5 and 10, so two triangles is what the range predicts.
  11. Classic mistake: giving 0 < x < 10. For x ≤ 5 the obtuse angle makes the angle sum too big.
Full working
  1. sin B = x sin 30°5 = x10sine rule
  2. two values of B need x10 < 1x < 10
  3. obtuse B fits only if B > 30°, so x10 > 12x > 5
  4. 5 < x < 10
  5. x = 8: B ≈ 53.13° or 126.87°, C ≈ 96.87° or 23.13°
  6. c = 10 sin C ≈ 9.93 or 3.93
  7. 5 < x < 10; c ≈ 9.93 cm or 3.93 cm
2

From a point A on flat ground, the angle of elevation of the top T of a hill is 18°. A surveyor walks 400 m straight towards the hill to point B, where the angle of elevation is 27°. Find the height of the hill.

Hint

Work in triangle ABT first: find its angles, use the sine rule for BT, then use the right triangle under T.

Answer

About 358.7 m

Step by step
  1. Let F be the point on the ground directly below T. The height is TF.
  2. Triangle ABT: angle at A is 18°. Angle ABT is 180° − 27° = 153°, because it sits next to the 27° on a straight line.
  3. Angle ATB = 180° − 18° − 153° = 9°.
  4. Sine rule: BTsin 18° = 400sin 9°, so BT = 400 sin 18°sin 9° ≈ 790.15 m.
  5. Right triangle BFT: TF = BT sin 27° ≈ 790.15 × 0.4540 ≈ 358.7 m.
  6. Why not tan straight away? Neither right triangle has a known side: we know only the gap of 400 m between A and B. Triangle ABT links them.
  7. Classic mistake: using 27° − 18° as an angle at A. The 9° is the angle at the top of the hill.
  8. Check: AF should be 358.7 ÷ tan 18° ≈ 1104 m and BF = 358.7 ÷ tan 27° ≈ 704 m. Their difference is 400 m. Correct.
  9. Limitation: this assumes the ground is level and that B is on the straight line from A to the hill.
Full working
  1. ∠ABT = 180° − 27° = 153°straight line at B
  2. ∠ATB = 180° − 18° − 153° = 9°angle sum
  3. BT = 400 sin 18°sin 9° ≈ 790.15 msine rule
  4. h = BT sin 27°right triangle BFT
  5. about 358.7 m
Summary

What to take away

  • A matching side and angle: sine rule.
  • Otherwise: cosine rule.
Practice

Practise this

Worksheet with answersWithout answersDownload PDF
Report a mistake

More in AS 91259

Is your child on track?

Take the free placement test