10D - The cosine rule

10D - The cosine rule

Two paths have the same lengths but meet at different angles. How much can the direct distance between their endpoints change? You will use the cosine rule to find sides and angles, then choose a suitable triangle method in exact calculations and two-dimensional journeys.

Finding an unknown side

Two sides measure 7 cm7\,\mathrm{cm} and 9 cm9\,\mathrm{cm}. Is the third side fixed before you know the angle between them?

If the sides meet at a right angle, Pythagoras gives the third side as 72+92\sqrt{7^2+9^2}. Closing the angle makes the opposite side shorter; opening it makes that side longer. The cosine rule measures this change.

Cosine rule

In a non-degenerate triangle, with side aa opposite angle AA,

a2=b2+c2−2bccos⁡A.a^2=b^2+c^2-2bc\cos A.

Here bb and cc meet at the included angle AA, with b,c>0b,c>0 and 0∘<A<180∘0^\circ<A<180^\circ. You can relabel the letters to match the triangle.

On the formulae sheet.

Use it directly for SAS data: two sides and their included angle. Find the squared length first, then take its positive square root. Since cos⁡90∘=0\cos90^\circ=0, the formula agrees with Pythagoras for a right triangle. An acute AA subtracts a positive amount; an obtuse AA subtracts a negative amount.

Worked example 1: an acute included angle

Question. In triangle ABCABC, AB=9 cmAB=9\,\mathrm{cm}, AC=7 cmAC=7\,\mathrm{cm} and A=60∘A=60^\circ. Find BCBC exactly.

Plan. The known angle lies between the known sides, so use the cosine rule for the opposite side BCBC.

BC2=72+92−2(7)(9)cos⁡60∘SAS data=130−63=67use cos⁡60∘=12BC=67a length is positive\begin{aligned} BC^2&=7^2+9^2-2(7)(9)\cos60^\circ &&\text{SAS data}\\ &=130-63=67 &&\text{use }\cos60^\circ=\tfrac12\\ BC&=\sqrt{67} &&\text{a length is positive} \end{aligned}

Answer. BC=67 cmBC=\sqrt{67}\,\mathrm{cm}.

Check. Put A=(0,0)A=(0,0) and B=(9,0)B=(9,0). Then C=(7/2,73/2)C=(7/2,7\sqrt3/2), so the distance squared is (9−7/2)2+(73/2)2=67(9-7/2)^2+(7\sqrt3/2)^2=67, independently confirming the answer.

Change only the included angle to 120∘120^\circ. Its cosine changes sign, so the correction now increases the squared length.

Worked example 2: an obtuse included angle

Question. In triangle ABCABC, AB=9 cmAB=9\,\mathrm{cm}, AC=7 cmAC=7\,\mathrm{cm} and A=120∘A=120^\circ. Find BCBC exactly.

Plan. Keep the same side pairing and retain the negative value of the cosine.

BC2=72+92−2(7)(9)cos⁡120∘=130−126(−12)=193BC=193\begin{aligned} BC^2&=7^2+9^2-2(7)(9)\cos120^\circ\\ &=130-126\left(-\frac12\right)=193\\ BC&=\sqrt{193} \end{aligned}

Answer. BC=193 cmBC=\sqrt{193}\,\mathrm{cm}.

Check. This time C=(−7/2,73/2)C=(-7/2,7\sqrt3/2), so (9+7/2)2+(73/2)2=193(9+7/2)^2+(7\sqrt3/2)^2=193. Also 193>130\sqrt{193}>\sqrt{130}, as expected for an angle larger than a right angle.

The opening paths can therefore have a much larger gap between their endpoints even when their own lengths stay fixed.

Finding an unknown angle

Three side lengths determine the shape of a triangle, so they also determine its angles.

Check first that the lengths are positive and that the longest is less than the sum of the other two. Equality gives a straight, degenerate shape; a larger longest side cannot close the triangle.

Rearranging the supplied rule gives

2bccos⁡A=b2+c2−a2,2bc\cos A=b^2+c^2-a^2,

so

cos⁡A=b2+c2−a22bc.\cos A=\frac{b^2+c^2-a^2}{2bc}.

The side aa must be opposite the angle being found. Use inverse cosine to obtain the unique interior angle between 0∘0^\circ and 180∘180^\circ. Unlike inverse sine, inverse cosine distinguishes acute and obtuse interior angles directly.

Worked example 3: an acute angle from three sides

Question. A triangle has a=7 cma=7\,\mathrm{cm}, b=5 cmb=5\,\mathrm{cm} and c=8 cmc=8\,\mathrm{cm}. Find AA.

Plan. All sides are known, so rearrange the cosine rule for the angle opposite aa.

The lengths form a triangle because 8<7+58<7+5.

cos⁡A=52+82−722(5)(8)side 7 opposite A=4080=12A=cos⁡−1(12)=60∘\begin{aligned} \cos A&=\frac{5^2+8^2-7^2}{2(5)(8)} &&\text{side }7\text{ opposite }A\\ &=\frac{40}{80}=\frac12\\ A&=\cos^{-1}\left(\frac12\right)=60^\circ \end{aligned}

Answer. A=60∘A=60^\circ.

Check. The sides adjoining AA can have endpoints (8,0)(8,0) and (5/2,53/2)(5/2,5\sqrt3/2) from a common origin. Their separation squared is (8−5/2)2+75/4=49(8-5/2)^2+75/4=49, giving the required opposite side 77.

Keep the adjoining sides 55 and 88, but lengthen the opposite side. A negative cosine now signals an obtuse angle.

Worked example 4: an obtuse angle from three sides

Question. A triangle has a=129 cma=\sqrt{129}\,\mathrm{cm}, b=5 cmb=5\,\mathrm{cm} and c=8 cmc=8\,\mathrm{cm}. Find AA.

Plan. Keep the exact squared side length when substituting into the angle form.

Since 8<129<13=5+88<\sqrt{129}<13=5+8, these lengths form a triangle.

cos⁡A=25+64−12980=−12A=cos⁡−1(−12)=120∘\begin{aligned} \cos A&=\frac{25+64-129}{80}=-\frac12\\ A&=\cos^{-1}\left(-\frac12\right)=120^\circ \end{aligned}

Answer. A=120∘A=120^\circ.

Check. With adjoining endpoints (8,0)(8,0) and (−5/2,53/2)(-5/2,5\sqrt3/2), the distance squared is (8+5/2)2+75/4=129(8+5/2)^2+75/4=129. Also 129>25+64129>25+64, consistent with an obtuse opposite angle.

The numerator gives a quick classification: a2<b2+c2a^2<b^2+c^2 means AA is acute, equality means right, and a2>b2+c2a^2>b^2+c^2 means obtuse. This is a check on the angle opposite aa, not necessarily on every angle of the triangle.

Watch out

An angle result needs a genuine triangle. For sides 2,3,52,3,5, finding the angle opposite side 22 gives cosine 11 and angle 0∘0^\circ: this is degenerate, not a valid triangle. A cosine outside [−1,1][-1,1] indicates inconsistent data or an error; do not force an angle from it.

Use the side opposite the requested angle in the subtracted term.

Choosing a triangle method

The useful rule is the one that connects the quantities you actually know.

Start with a labelled sketch. Mark the requested side or angle and identify any known opposite pair or included angle.

Available data and targetUseful starting method
Right triangle with two sidesPythagoras for the third side; a basic ratio for an angle
Right triangle with a side and an acute angleSine, cosine or tangent
Complete opposite pair, plus another side or angleSine rule; check both candidates for SSA
Two sides and their included angle, seeking the third sideCosine rule
Three sides, seeking an angleCosine rule
Two sides and their included angle, seeking areaTriangle area formula

Continue this lesson.

You’re previewing NovaLearn without an account. Create a free account to read the rest.

Create free account