Cosine rule

Apply the cosine rule c2=a2+b2−2abcos⁡Cc^2 = a^2 + b^2 - 2ab\cos C to find unknown sides in non-right-angled triangles; rearrange to find unknown angles using cos⁡C=a2+b2−c22ab\cos C = \dfrac{a^2+b^2-c^2}{2ab}.

Worked examples

Finding an unknown side

Straightforward

Problem

In triangle ABCABC, a=7a = 7 cm, b=10b = 10 cm and C=55°C = 55°. Find side cc.

Finding an unknown angle

Moderate

Problem

In triangle PQRPQR, p=6p = 6 m, q=9q = 9 m and r=11r = 11 m. Find angle RR.

Real-world application

Challenging

Problem

From a lighthouse LL, boat AA is 24 km away on a bearing of 035° and boat BB is 18 km away on a bearing of 105°. Find the distance between the two boats.

Practise

Q1·Straightforward
In triangle ABCABC, a=6a = 6 cm, b=8b = 8 cm and C=60°C = 60°. Use the cosine rule to find side cc. Give your answer to 2 decimal places.
Q2·Straightforward
In triangle PQRPQR, p=5p = 5 m, q=7q = 7 m and R=120°R = 120°. Find side rr using the cosine rule. Give your answer to 2 decimal places.
Q3·Straightforward
In triangle ABCABC, a=10a = 10 cm, b=8b = 8 cm and C=45°C = 45°. Find side cc using the cosine rule. Give your answer to 2 decimal places.
Q4·Straightforward
In triangle ABCABC, a=7a = 7 cm, b=8b = 8 cm and c=10c = 10 cm. Find angle CC to 1 decimal place.
Q5·Moderate
In triangle PQRPQR, p=5p = 5 cm, q=6q = 6 cm and r=9r = 9 cm. Find angle RR to 1 decimal place.
Q6·Moderate
In triangle ABCABC, a=9a = 9 cm, b=12b = 12 cm and C=72°C = 72°. Find side cc to 2 decimal places.
Q7·Moderate
Two ships leave port at the same time. Ship AA sails 15 km on a bearing of 040° and ship BB sails 20 km on a bearing of 100°. The angle between their paths is 60°. Find the distance between the two ships to 2 decimal places.
Q8·Moderate
A triangular garden has sides 10 m, 12 m and 16 m. Find the largest angle of the garden to 1 decimal place.
Q9·Moderate
In triangle XYZXYZ, x=15x = 15 cm, y=12y = 12 cm and z=20z = 20 cm. Find angle XX to 1 decimal place.
Q10·Challenging
Two roads leave an intersection. Road A runs 12 km to town XX and road B runs 18 km to town YY. The angle between the roads at the intersection is 85°. Find the straight-line distance from town XX to town YY to 2 decimal places.
Q11·Challenging
From town PP, town QQ is 25 km away on a bearing of 048° and town RR is 38 km away on a bearing of 130°. Find the distance QRQR to 2 decimal places.
Q12·Challenging
A triangular block of land has sides 32 m, 45 m and 60 m. Find the angle opposite the 60 m side to 1 decimal place.