Resources For Teachers For Tutors For Students & Parents AI New Pricing
Year 10 Maths - 10A Trigonometry

The Cosine Rule

20 practice questions 1 video lesson Theory + worked examples
Create a free accountTrack your progress and save your work as you go.
Create free account

Theory

The cosine rule finds the third side of a triangle from two sides and the angle between them, or any angle from three sides. This Year 10A maths page covers both forms, obtuse angles, exact answers, equations in \(x\) and bearing problems.

The cosine rule links the three sides of any triangle to one of its angles. For angle \(C\), between sides \(a\) and \(b\), with \(c\) opposite: \(c^2 = a^2 + b^2 - 2ab\cos C\).

It is Pythagoras' theorem with a correction term. When \(C = 90^\circ\), \(\cos C = 0\) and it becomes \(c^2 = a^2 + b^2\). When \(C\) is obtuse, \(\cos C\) is negative, so \(c^2\) is more than \(a^2 + b^2\).

Use it when you know two sides and the included angle (the angle between them) or all three sides. If you know a side and its opposite angle, the sine rule is usually quicker.

Rearranged for an angle, the cosine rule gives one answer only, because \(\cos^{-1}\) of a negative number gives the obtuse angle directly. There is no ambiguous case.

The cosine rule: angle C between sides a and bTriangle ABC. The angle C is between the sides a and b. The side c, opposite C, is shown in red. C a b c A B C
The angle in the formula is the one between the two sides, and it is opposite the side you are finding.
When to use the cosine ruleLeft: a triangle with two known sides and the angle between them; the third side is unknown. Right: a triangle with all three sides known; an angle is unknown. Both are cosine rule problems. known known ? two sides and the angle between ? known known known three sides
Use the cosine rule for two sides and the included angle (find the third side), or for three sides (find an angle).

To find a side:

\[c^2 = a^2 + b^2 - 2ab\cos C\]
c2=a2+b2−2abcosC

To find an angle:

\[\cos C = \dfrac{a^2 + b^2 - c^2}{2ab}\]
cosC=a2+b2−c22ab

The same pattern works for every angle: \(a^2 = b^2 + c^2 - 2bc\cos A\) and \(b^2 = a^2 + c^2 - 2ac\cos B\).

Which rule? Side and its opposite angle known: sine rule. Two sides and the angle between them, or three sides: cosine rule. Right angle: SOH CAH TOA or Pythagoras' theorem.
Sign of the cosine. If \(a^2 + b^2 - c^2\) is negative, \(C\) is obtuse; if it is zero, \(C = 90^\circ\). With exact values, \(\cos 60^\circ = \dfrac{1}{2}\) and \(\cos 120^\circ = -\dfrac{1}{2}\).

How to use the cosine rule

  1. Label the angle you know or want as \(C\), and the side opposite it as \(c\).
  2. Substitute the two sides that form the angle as \(a\) and \(b\).
  3. Calculate with brackets around \(2ab\cos C\), take the square root for a side, or use \(\cos^{-1}\) for an angle.
  4. Check: the largest side is opposite the largest angle.

In problems

  1. Largest or smallest angle: it is opposite the longest or shortest side, so put that side in the \(c^2\) position.
  2. Parallelogram diagonals: adjacent angles add to \(180^\circ\). The longer diagonal is opposite the obtuse angle.
  3. Bearings: find the angle at the turning point from a back bearing, or the angle between two paths by subtracting bearings.
  4. Unknown in the sides: substitute the expressions, expand and solve the quadratic. Reject negative lengths; if both answers are positive, two triangles may fit.
  5. Speeds and time: write each distance as speed \(\times t\), then solve for \(t\).
  6. Several steps: after finding a side, use the unrounded value for the next angle or for a perimeter and cost.
Example 1 — Finding a side
A garden bed is a triangle \(ABC\) with \(AB = 14\) m, \(AC = 9.6\) m and \(\angle A = 118^\circ\). Find the length of \(BC\), correct to one decimal place.
Solution

Two sides and the angle between them: use the cosine rule with \(a\) opposite \(A\).

Triangle with sides 9.6 m and 14 m and an included angle of 118 degreesTriangle ABC with AC = 9.6 m, AB = 14 m and the obtuse angle A = 118 degrees between them. The side a = BC is unknown. 118° 14 m 9.6 m a A B C
\(a^2\)\(=\)\(b^2 + c^2 - 2bc\cos A\)
\(\)\(=\)\(9.6^2 + 14^2\)
\(- 2 \times 9.6 \times 14\cos 118^\circ\)
\(\)\(=\)\(288.16 - 268.8\cos 118^\circ\)
\(\)\(=\)\(414.353\ldots\)
\(a\)\(=\)\(20.355\ldots\)
\(\therefore\ BC\)\(\approx\)\(\mathbf{20.4}\text{ m}\)
a2=9.62+142−2×9.6×14cos118°

\(\cos 118^\circ\) is negative, so the last term is added. \(BC\) is longer than both other sides, as it must be opposite an obtuse angle.

Example 2 — Finding angles from three sides
A triangle has sides \(6\) cm, \(9\) cm and \(13\) cm. Find, correct to one decimal place:
(i) the largest angle
(ii) the smallest angle.
Solution

(i) The largest angle \(\theta\) is opposite the longest side, \(13\) cm.

\(\cos\theta\)\(=\)\(\dfrac{6^2 + 9^2 - 13^2}{2 \times 6 \times 9}\)
\(\)\(=\)\(\dfrac{36 + 81 - 169}{108} = -\dfrac{52}{108}\)
\(\theta\)\(=\)\(118.782\ldots^\circ \approx \mathbf{118.8^\circ}\)

The cosine is negative, so \(\theta\) is obtuse.

(ii) The smallest angle \(\phi\) is opposite the shortest side, \(6\) cm.

\(\cos\phi\)\(=\)\(\dfrac{9^2 + 13^2 - 6^2}{2 \times 9 \times 13}\)
\(= \dfrac{214}{234}\)
\(\phi\)\(=\)\(23.860\ldots^\circ \approx \mathbf{23.9^\circ}\)
cosθ=62+92−1322×6×9

The side opposite the angle you want is the one that is subtracted on top.

Example 3 — The cosine rule as a quadratic
In triangle \(ABC\), \(AC = 7\) cm, \(BC = 13\) cm, \(\angle A = 60^\circ\) and \(AB = x\) cm. Use the cosine rule to find \(x\).
Solution

The known angle \(A\) is opposite \(BC = 13\), so \(13\) goes on the left. Use the exact value \(\cos 60^\circ = \dfrac{1}{2}\).

Triangle with AC 7, BC 13, angle A 60 degrees and AB = xTriangle ABC with AC = 7, BC = 13, angle A = 60 degrees and the unknown side AB = x. 60° 7 13 x A B C
\(13^2\)\(=\)\(x^2 + 7^2\)
\(- 2 \times x \times 7 \times \dfrac{1}{2}\)
\(169\)\(=\)\(x^2 + 49 - 7x\)
\(0\)\(=\)\(x^2 - 7x - 120\)
\(0\)\(=\)\((x - 15)(x + 8)\)
\(x\)\(=\)\(15 \text{ or } x = -8\)

A length cannot be negative, so \(x = \mathbf{15}\).

x2−7x−120=0

Check: \(15^2 + 7^2 - 2 \times 15 \times 7 \times \dfrac{1}{2}\) \(= 225 + 49 - 105\) \(= 169 = 13^2\).

Example 4 — Bearings and speeds
Two ships leave port \(P\) at noon. Ship \(A\) sails at \(18\) km/h on a true bearing of \(062^\circ\); ship \(B\) sails at \(24\) km/h on a true bearing of \(157^\circ\). How far apart are they at 1:30 pm, correct to one decimal place?
Solution

In \(1.5\) hours: \(PA = 18 \times 1.5 = 27\) km and \(PB = 24 \times 1.5 = 36\) km. The angle between the paths is \(157^\circ - 62^\circ = 95^\circ\).

Two ships leaving port on bearings 062 and 157 degreesFrom port P, ship A has sailed 27 km on a bearing of 062 degrees and ship B has sailed 36 km on a bearing of 157 degrees. The angle between their paths at P is 95 degrees. The distance d between them is dashed. N 95° 27 km 36 km d P A B
\(d^2\)\(=\)\(27^2 + 36^2\)
\(- 2 \times 27 \times 36\cos 95^\circ\)
\(\)\(=\)\(2025 - 1944\cos 95^\circ\)
\(\)\(=\)\(2194.430\ldots\)
\(d\)\(=\)\(46.844\ldots\)
\(\)\(\approx\)\(\mathbf{46.8}\text{ km}\)
d2=272+362−2×27×36cos95°

If the time is unknown, write the sides as \(18t\) and \(24t\); the cosine rule then gives an equation for \(t^2\).

Common pitfalls

Do the multiplication before the subtraction. \(81 + 196 - 2 \times 9 \times 14\cos 40^\circ\) is not \((277 - 252)\cos 40^\circ\). Work out \(2ab\cos C\) first, or type the whole line into the calculator.
The angle must be between the two sides. In \(c^2 = a^2 + b^2 - 2ab\cos C\), \(a\) and \(b\) form angle \(C\), and \(c\) is opposite it.
Minus a negative is plus. For an obtuse angle \(\cos C < 0\), so \(-2ab\cos C\) adds to the total.
Do not forget the square root. The formula gives \(c^2\). Take the square root before you round.

Frequently asked questions

When do you use the cosine rule instead of the sine rule?

Use the cosine rule when you know two sides and the angle between them, or all three sides. Use the sine rule when you know a side and the angle opposite it.

How do you find an angle using the cosine rule?

Use \(\cos C = \dfrac{a^2 + b^2 - c^2}{2ab}\), where \(c\) is the side opposite the angle you want. Then use \(\cos^{-1}\). A negative value of \(\cos C\) means the angle is obtuse.

Is the cosine rule the same as Pythagoras' theorem?

It is an extension of it. When the angle is 90 degrees, cos 90 degrees is 0, and the cosine rule becomes c squared equals a squared plus b squared.

Why does the cosine rule not have an ambiguous case?

Between 0 and 180 degrees, each value of cosine belongs to exactly one angle. Positive cosine gives an acute angle and negative cosine gives an obtuse angle, so inverse cos always gives the right one.

How do you find the largest angle of a triangle?

The largest angle is opposite the longest side. Put the longest side in the c squared position of the cosine rule and solve for the angle.