6.02d, 10.05e - The cosine rule

6.02d, 10.05e - The cosine rule

Find the third side when two sides and their included angle are known, or find an angle from three sides. Derive the 6.02d formula from Pythagoras, then use 10.05e to choose and combine triangle rules without losing accuracy.

Why the cosine rule works

Two paths leave a hut at an angle of 50∘50^\circ. One reaches a gate 7 km7\,\mathrm{km} away; the other reaches a tower 10 km10\,\mathrm{km} away. How far apart are the gate and tower? There is no known opposite side–angle pair for the sine rule, and the angle is not a right angle. We need a different starting point.

Think first about two sides of lengths 66 and 88. If they meet at 90∘90^\circ, Pythagoras gives a third side of 1010. If we close the angle to 60∘60^\circ, their endpoints move closer together. The third side should be less than 1010. The cosine rule adjusts Pythagoras to account for that angle.

Included angle

The included angle is the angle between two specified sides. In triangle ABCABC, sides b=ACb=AC and c=ABc=AB meet at AA, so their included angle is AA. The side opposite that angle is a=BCa=BC.

Place AA at (0,0)(0,0), BB at (c,0)(c,0), and CC above the horizontal axis. The horizontal and vertical components of ACAC are bcos⁡Ab\cos A and bsin⁡Ab\sin A.

[DIAGRAM: asset_name: The cosine rule from horizontal and vertical distances; asset_slug: cosine-projection; caption: Pythagoras uses the horizontal difference c minus b cos A and the vertical height b sin A.; description: Two panels show triangle ABC with A at the origin and B at horizontal coordinate c. In the acute panel C has positive horizontal coordinate b cos A. In the obtuse panel it has negative horizontal coordinate b cos A, with the perpendicular foot left of A. Both show AC equal to b, BC equal to a and the perpendicular height b sin A.]
Pythagoras uses the horizontal difference c minus b cos A and the vertical height b sin A.

The squared horizontal separation of BB and CC, plus their squared vertical separation, is BC2BC^2. This is the coordinate form of Pythagoras.

a2=(c−bcos⁡A)2+(bsin⁡A)2=c2−2bccos⁡A+b2cos⁡2A+b2sin⁡2A=b2+c2−2bccos⁡A\begin{aligned} a^2&=(c-b\cos A)^2+(b\sin A)^2\\ &=c^2-2bc\cos A+b^2\cos^2 A+b^2\sin^2 A\\ &=b^2+c^2-2bc\cos A \end{aligned}

The last step uses sin⁡2A+cos⁡2A=1\sin^2 A+\cos^2 A=1, which comes from dividing Pythagoras by the hypotenuse squared in a right-angled triangle. For an obtuse angle, reflecting across the vertical axis makes the horizontal component negative and leaves the height positive: cos⁡(180∘−A)=−cos⁡A\cos(180^\circ-A)=-\cos A, while the sine stays the same. The coordinate calculation therefore works for obtuse triangles too.

Cosine rule

In any non-degenerate triangle, with aa opposite AA,

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

The angle AA is between sides bb and cc. At 90∘90^\circ, cos⁡A=0\cos A=0, so the rule becomes Pythagoras.

In the June and November 2027 Higher Tier Formulae Sheet.

Use a right angle first to see the familiar special case.

Worked example 1: recovering Pythagoras

Question. Two sides are 6 cm6\,\mathrm{cm} and 8 cm8\,\mathrm{cm}, with included angle 90∘90^\circ. Find the opposite side aa.

Plan. Substitute into the cosine rule and use cos⁡90∘=0\cos90^\circ=0.

a2=62+82−2×6×8cos⁡90∘=36+64−0=100a=100=10\begin{aligned} a^2&=6^2+8^2-2\times6\times8\cos90^\circ\\ &=36+64-0=100\\ a&=\sqrt{100}=10 \end{aligned}

Answer. a=10 cma=10\,\mathrm{cm}.

Check. Direct Pythagoras gives the familiar 66–88–1010 right-angled triangle.

Change only the included angle to 60∘60^\circ. The correction term now subtracts a positive amount.

Worked example 2: closing the angle

Question. The same two sides, 6 cm6\,\mathrm{cm} and 8 cm8\,\mathrm{cm}, meet at 60∘60^\circ. Find aa exactly.

Plan. Use cos⁡60∘=12\cos60^\circ=\frac12, then take the positive square root.

a2=62+82−2×6×8×12=100−48=52a=52=213\begin{aligned} a^2&=6^2+8^2-2\times6\times8\times\frac12\\ &=100-48=52\\ a&=\sqrt{52}=2\sqrt{13} \end{aligned}

Answer. a=213 cma=2\sqrt{13}\,\mathrm{cm}.

Check. The endpoint of the 6 cm6\,\mathrm{cm} side has coordinates (3,33)(3,3\sqrt3). Its distance from (8,0)(8,0) is 52+(33)2=52\sqrt{5^2+(3\sqrt3)^2}=\sqrt{52}, and is smaller than 1010, as expected.

The rule covers both cases. It does not require you to call any side the hypotenuse unless there is a right angle.

Watch out

The correction is −2bccos⁡A-2bc\cos A, with the two sides that touch AA. Do not use an angle opposite one of those sides in that position.

Look for the vanishing correction term in this case.

Finding the third side

Use the cosine rule directly when you know two sides and their included angle.

Label the unknown opposite that angle, substitute carefully, and calculate the squared length first. Then take the positive square root because a side length is positive. Use degree mode, and retain the full expression or stored calculator value until the final rounding.

Worked example 3: an acute included angle

Question. Two sides are 7 cm7\,\mathrm{cm} and 10 cm10\,\mathrm{cm}, with included angle 60∘60^\circ. Find the third side xx to 33 significant figures.

Plan. The known angle lies between the known sides, so use the cosine rule.

x2=72+102−2×7×10cos⁡60∘=149−70=79x=79=8.888194…\begin{aligned} x^2&=7^2+10^2-2\times7\times10\cos60^\circ\\ &=149-70=79\\ x&=\sqrt{79}=8.888194\ldots \end{aligned}

Answer. x=8.89 cmx=8.89\,\mathrm{cm}.

Check. With the 1010-unit side on the horizontal axis, the other endpoint is (3.5,73/2)(3.5,7\sqrt3/2). Its squared distance from (10,0)(10,0) is 6.52+147/4=796.5^2+147/4=79.

Keep both sides the same and change only the angle to its supplement, 120∘120^\circ. The cosine changes sign.

Worked example 4: an obtuse included angle

Question. Two sides are 7 cm7\,\mathrm{cm} and 10 cm10\,\mathrm{cm}, with included angle 120∘120^\circ. Find the third side xx to 33 significant figures.

Plan. Keep the subtraction sign in the formula, then substitute the negative cosine.

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

Answer. x=14.8 cmx=14.8\,\mathrm{cm}.

Check. The horizontal separation is now 10−(−3.5)=13.510-(-3.5)=13.5, giving x2=13.52+147/4=219x^2=13.5^2+147/4=219. The side opposite 120∘120^\circ is the longest, but 14.8<7+1014.8<7+10, as a triangle requires.

The drawing makes the sign change visible: the endpoints separate as the included angle opens.

[DIAGRAM: asset_name: Opening the included angle; asset_slug: cosine-angle-change; caption: Keeping the two sides fixed, changing 60 degrees to 120 degrees increases the opposite side.; description: Two accurately drawn triangles have sides 7 and 10 meeting at a common labelled vertex in each panel. Their included angles are 60 degrees and 120 degrees, and the respective opposite sides are labelled square root 79 and square root 219.]
Keeping the two sides fixed, changing 60 degrees to 120 degrees increases the opposite side.

Watch out

An obtuse angle does not make a squared length negative. Since its cosine is negative, subtracting 2bccos⁡A2bc\cos A adds a positive amount.

Apply the same sequence to a new triangle.

Continue this lesson.

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

Create free account