E7.5 - The cosine rule (Extended)

E7.5 - The cosine rule (Extended)

Two paths of lengths 7 m and 10 m start at the same point. How far apart are their endpoints when the angle between the paths is 50 degrees, and what changes if it is 120 degrees? The cosine rule connects two sides and their included angle, or three sides and an unknown angle. You will also decide when the sine rule is the better choice.

Two sides and included angle

The separation of the path endpoints depends on the opening angle. Pythagoras applies when that angle is a right angle; for other angles the cosine rule adjusts the sum of the two squares.

Included angle

The included angle is the angle between two given sides. In triangle ABCABC, sides b=CAb=CA and c=ABc=AB meet at AA, so their included angle is AA. The side across the triangle from this angle is a=BCa=BC.

Draw a perpendicular height from CC to the line ABAB. The horizontal projection of ACAC has length bcos⁡Ab\cos A when AA is acute. Pythagoras on the smaller right triangles gives a2=(c−bcos⁡A)2+(bsin⁡A)2a^2=(c-b\cos A)^2+(b\sin A)^2. Expanding and using the squared side ratios sin⁡2A+cos⁡2A=1\sin^2 A+\cos^2 A=1 gives the rule below. For an obtuse AA, the projection points backwards, so cos⁡A\cos A is negative; the same rule remains valid.

Cosine rule for a side

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

Here AA is between bb and cc, opposite aa. This applies to any triangle. Supplied in the Extended formula list on Papers 2 and 4.

Reflecting a side across the perpendicular reverses its horizontal projection. Thus cos⁡(180∘−θ)=−cos⁡θ\cos(180^\circ-\theta)=-\cos\theta. In particular, cos⁡120∘=−cos⁡60∘=−12\cos120^\circ=-\cos60^\circ=-\dfrac12.

[DIAGRAM: asset_name: The included angle changes the opposite side; asset_slug: cosine_included_angles; caption: The same two sides give a longer opposite side when their included angle increases.; description: Two exact triangles have sides 7 and 10 meeting at A. The left triangle has included angle 50 degrees and opposite side 7.681779 metres; the right has included angle 120 degrees and opposite side 14.798649 metres. The included angles and opposite sides are highlighted, and all vertex labels agree with a opposite A.]
The same two sides give a longer opposite side when their included angle increases.

Worked example 1: an acute included angle

Question. Two straight paths from AA lead to BB and CC, with AB=10 mAB=10\,\mathrm{m}, AC=7 mAC=7\,\mathrm{m} and BAC=50∘BAC=50^\circ. Calculate BCBC.

Plan. Use the cosine rule because the known angle is between the known sides.

BC2=72+102−2×7×10cos⁡50∘=59.0097…BC=59.0097…=7.68177…\begin{aligned} BC^2&=7^2+10^2-2\times7\times10\cos50^\circ\\ &=59.0097\ldots\\ BC&=\sqrt{59.0097\ldots}=7.68177\ldots \end{aligned}

Answer. BC=7.68 mBC=7.68\,\mathrm{m}, to 3 significant figures.

Check. For a right included angle, the distance would be 149≈12.2 m\sqrt{149}\approx12.2\,\mathrm{m}. An acute opening gives a smaller distance, as found. Also 10−7<7.68<10+710-7<7.68<10+7, so the triangle inequality is satisfied.

Keep both path lengths and widen only the included angle. The cosine term now has a different sign.

Worked example 2: an obtuse included angle

Question. The paths still have AB=10 mAB=10\,\mathrm{m} and AC=7 mAC=7\,\mathrm{m}, but BAC=120∘BAC=120^\circ. Calculate BCBC.

Plan. Use the same cosine-rule arrangement, including the negative value of cos⁡120∘\cos120^\circ.

BC2=72+102−2×7×10cos⁡120∘=149−140(−12)=219BC=219=14.7986…\begin{aligned} BC^2&=7^2+10^2-2\times7\times10\cos120^\circ\\ &=149-140\left(-\frac12\right)=219\\ BC&=\sqrt{219}=14.7986\ldots \end{aligned}

The cosine is negative because the side projects backwards from AA; subtracting that negative contribution increases the squared separation.

Answer. BC=14.8 mBC=14.8\,\mathrm{m}, to 3 significant figures.

Check. The obtuse angle is the largest angle, so its opposite side must be the longest: 14.8>10>714.8>10>7. It is still shorter than the combined path length 17 m.

Always take the positive square root to turn the calculated squared length into a length.

Watch out

The cosine rule gives a2a^2, not aa. Also keep the minus sign before 2bccos⁡A2bc\cos A: for an obtuse included angle, subtracting a negative term makes a2a^2 larger than b2+c2b^2+c^2.

Use a new pair of sides.

Three sides

If all three sides are known, no opposite angle is available for the sine rule. Rearrange the cosine rule instead. First add 2bccos⁡A2bc\cos A and subtract a2a^2 on both sides, then divide by 2bc2bc.

Cosine rule for an angle

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

The side aa is opposite the required angle AA. This is a rearrangement of the supplied cosine rule; the rearranged version is not separately printed in the formula list.

A triangle angle lies between 0∘0^\circ and 180∘180^\circ, where inverse cosine gives a single answer. A negative cosine gives an obtuse angle directly. Do not apply the sine-rule instruction to subtract from 180∘180^\circ again.

Continue this lesson.

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

Create free account