Lesson 8

Cosine rule

Theory and examples

When the matching pair is missing

The sine rule was useful when we had an angle and the side directly opposite it. That matching pair gave us a doorway into the triangle.

The cosine rule is for a different situation. Sometimes the triangle gives us two sides and the angle squeezed between them. Sometimes it gives us all three sides. In both cases, there may be no clean way to use the sine rule.

cabCc2 = a2 + b2 - 2ab cos(C)

The formula looks a little heavier than the sine rule, but the picture is simple. Side cc is opposite angle CC. The other two sides, aa and bb, make the angle CC.

The rule

c2=a2+b2−2abcos⁡(C)c^2=a^2+b^2-2ab\cos(C)

The formula can be used in any direction. The sides aa and bb are simply the two arms that create angle CC. Swapping them makes no difference to the math.

The cosine rule is closely connected to Pythagoras theorem. When the angle is 90∘90^\circ, the extra cosine part becomes zero.

c2=a2+b2−2ab(0)=a2+b2c^2=a^2+b^2-2ab(0)=a^2+b^2

So for a right-angled triangle, the cosine rule turns back into Pythagoras theorem.

But if the angle is not a right angle, the triangle opens wider or closes tighter. The cosine part handles that change.

Example 1

Two sides of a triangle are 8 cm8\text{ cm} and 11 cm11\text{ cm}. The angle between them is 65∘65^\circ. Find the side opposite the angle, correct to one decimal place.

65°8 cm11 cmc
Step 1:The missing side is opposite the 65∘65^\circ angle, so call that side cc.
Step 2:The two sides around the angle are 8 cm8\text{ cm} and 11 cm11\text{ cm}, so substitute them into the cosine rule.
c2=82+112−2(8)(11)cos⁡(65∘)c^2=8^2+11^2-2(8)(11)\cos(65^\circ)
c2≈110.6c^2\approx110.6
Step 3:Take the square root at the end, because the formula has found c2c^2 first.
c≈10.5 cmc\approx10.5\text{ cm}

Notice the square root at the end. The formula gives c2c^2, not cc.

The cosine rule can also work backwards. If you know all three sides, you can rearrange the formula to isolate the angle instead.

cos⁡(C)=a2+b2−c22ab\cos(C)=\frac{a^2+b^2-c^2}{2ab}

The side being subtracted must always be the side directly opposite the angle you are trying to find.

The side lengths now tell us exactly how open the angle must be.

Example 2

A triangle has side lengths 77, 1010, and 1212. Find the angle opposite the side of length 1212, correct to one decimal place.

C71012
Step 1:We want the angle opposite the side 1212, so call that angle CC.
Step 2:Since 1212 is opposite CC, the 12212^2 is the part being subtracted.
cos⁡(C)=72+102−1222(7)(10)\cos(C)=\frac{7^2+10^2-12^2}{2(7)(10)}
cos⁡(C)=5140\cos(C)=\frac{5}{140}
Step 3:Use inverse cosine to turn the ratio back into an angle.
C=cos⁡−1(5140)C=\cos^{-1}\left(\frac{5}{140}\right)
C≈88.0∘C\approx88.0^\circ

Choosing between sine rule and cosine rule

Sine rule

Use it when you can see an opposite angle-side pair.

Cosine rule

Use it for two sides with the included angle, or for all three sides.

Optional mastery

Mastery questions

Do you want a high study score? Be disciplined. Do the mastery questions.

Open mastery questions

Checkpoint

Multiple-choice questions

Answer every question correctly to unlock the next lesson. If something is marked red, change your answer and check again.

Question 1
When is the cosine rule usually the best choice?
Question 2
In c2=a2+b2−2abcos⁡(C)c^2=a^2+b^2-2ab\cos(C), where is angle CC?
Question 3
Which setup finds cc if a=7a=7, b=10b=10, and C=63∘C=63^\circ?
Question 4
If a=6a=6, b=8b=8, and c=11c=11, which expression finds angle CC?