Find a third side with the cosine rule
The cosine rule, on the Higher tier only, is Pythagoras' theorem with a correction for a triangle with no right angle.
Cosine rule
The cosine rule links an angle of any triangle to the side opposite it and the two sides that make it.
In both triangles the unknown side faces the marked angle.
a2=b2+c2−2bccosA a^2 = b^2 + c^2 - 2bc \cos A a2=b2+c2−2bccosAwhere:
- A{A}A is the known or wanted angle
- b{b}b and c{c}c are the sides that make angle A{A}A
- a{a}a is the side opposite A,{A\text{,}}A, in the same unit as b{b}b and c{c}c
Use it when no right angle is marked, given two sides and the included angle or all three sides.
Included angle
The included angle of two sides is the angle between them.
Surveyors use the cosine rule to find a lake's width from two distances and their included angle.
Learn the rule as Pythagoras, a2=b2+c2,{a^2 = b^2 + c^2\text{,}}a2=b2+c2, then subtract 2bccosA.{2bc \cos A\text{.}}2bccosA. When A=90∘,{A = 90^\circ\text{,}}A=90∘, cosA=0,{\cos A = 0\text{,}}cosA=0, so the rule is exactly Pythagoras' theorem.
Wrong. In triangle XYZ,{XYZ\text{,}}XYZ, with no right angle marked, XY=5 cm,{XY = 5\ \text{cm,}}XY=5 cm, YZ=8 cm{YZ = 8\ \text{cm}}YZ=8 cm and angle Y=70∘.{Y = 70^\circ\text{.}}Y=70∘. Pythagoras gives XZ=52+82=9.43 cm.XZ = \sqrt{5^2 + 8^2} = 9.43\ \text{cm.}XZ=52+82=9.43 cm.
Right. Only a right angle allows Pythagoras. The cosine rule gives XZ2=52+82−2×5×8×cos70∘=61.638…,XZ^2 = 5^2 + 8^2 - 2 \times 5 \times 8 \times \cos 70^\circ = 61.638\ldots\mathclose{\text{,}}XZ2=52+82−2×5×8×cos70∘=61.638…, so XZ=7.85 cm.{XZ = 7.85\ \text{cm.}}XZ=7.85 cm.
Work out 2bccosA{2bc \cos A}2bccosA on its own line before subtracting, because cosA{\cos A}cosA multiplies only 2bc.{2bc\text{.}}2bc.
A radius, then a sector's area
In triangle OAB,{OAB\text{,}}OAB, OA=7 cm,{OA = 7\ \text{cm,}}OA=7 cm, AB=10 cm{AB = 10\ \text{cm}}AB=10 cm and angle OAB=32∘.{OAB = 32^\circ\text{.}}OAB=32∘. OB{OB}OB is the radius of sector OBC,{OBC\text{,}}OBC, with angle BOC=75∘.{BOC = 75^\circ\text{.}}BOC=75∘. Find the sector's area to 3 significant figures.
- Angle A{A}A lies between OA{OA}OA and AB,{AB\text{,}}AB, so b=7,{b = 7\text{,}}b=7, c=10{c = 10}c=10 and a=OB.{a = OB\text{.}}a=OB.
- b2+c2=72+102=49+100=149b^2 + c^2 = 7^2 + 10^2 = 49 + 100 = 149b2+c2=72+102=49+100=149
- 2bccosA=2×7×10×cos32∘=118.726…2bc \cos A = 2 \times 7 \times 10 \times \cos 32^\circ = 118.726\ldots2bccosA=2×7×10×cos32∘=118.726…
- OB2=149−118.726…=30.273…,OB^2 = 149 - 118.726\ldots = 30.273\ldots\mathclose{\text{,}}OB2=149−118.726…=30.273…, so OB=30.273…=5.502… cmOB = \sqrt{30.273\ldots} = 5.502\ldots\ \text{cm}OB=30.273…=5.502… cm
- The area is 75360×π×OB2=75360×π×30.273…=19.8 cm2\dfrac{75}{360} \times \pi \times OB^2 = \dfrac{75}{360} \times \pi \times 30.273\ldots = 19.8\ \text{cm}^236075×π×OB2=36075×π×30.273…=19.8 cm2
Wrong. Sides of 4 cm and 7 cm with an included angle of 50∘{50^\circ}50∘ give a2=42+72−2×4×7×cos50∘=29.0,a^2 = 4^2 + 7^2 - 2 \times 4 \times 7 \times \cos 50^\circ = 29.0\text{,}a2=42+72−2×4×7×cos50∘=29.0, so the third side is 29.0 cm.
Right. The rule gives the side squared, so square root it. a=29.003…=5.39 cm.a = \sqrt{29.003\ldots} = 5.39\ \text{cm.}a=29.003…=5.39 cm.
Find an angle from three sides by rearranging the cosine rule
Given all three sides, rearrange the rule for cosA{\cos A}cosA and use inverse cosine. In a three-letter angle such as PQR,{PQR\text{,}}PQR, the middle letter is the corner.
The two sides meeting at Q{Q}Q are b{b}b and c,{c\text{,}}c, and PR{PR}PR is a.{a\text{.}}a.
Rearranged, it reads:
cosA=b2+c2−a22bc \cos A = \frac{b^2 + c^2 - a^2}{2bc} cosA=2bcb2+c2−a2Substitute straight into this form. Three sides alone cannot go into 12absinC,{\frac{1}{2}ab \sin C\text{,}}21absinC, so find an angle first.
An angle from three sides, then the area and a height
Triangle PQR{PQR}PQR has PQ=6 cm,{PQ = 6\ \text{cm,}}PQ=6 cm, QR=9 cm{QR = 9\ \text{cm}}QR=9 cm and PR=8 cm.{PR = 8\ \text{cm.}}PR=8 cm. Find its area and its height from P{P}P to QR,{QR\text{,}}QR, to 3 significant figures.
- Angle PQR{PQR}PQR lies between PQ{PQ}PQ and QR,{QR\text{,}}QR, so a=PR=8,{a = PR = 8\text{,}}a=PR=8, b=6{b = 6}b=6 and c=9.{c = 9\text{.}}c=9.
- cosQ=62+92−822×6×9=36+81−64108=53108\cos Q = \dfrac{6^2 + 9^2 - 8^2}{2 \times 6 \times 9} = \dfrac{36 + 81 - 64}{108} = \dfrac{53}{108}cosQ=2×6×962+92−82=10836+81−64=10853
- Q=cos−1(53108)=60.610…∘Q = \cos^{-1}\left(\dfrac{53}{108}\right) = 60.610\ldots^\circQ=cos−1(10853)=60.610…∘
- The area is 12×6×9×sin60.610…∘=23.5 cm2\dfrac{1}{2} \times 6 \times 9 \times \sin 60.610\ldots^\circ = 23.5\ \text{cm}^221×6×9×sin60.610…∘=23.5 cm2
- The height is PQsinQ=6×sin60.610…∘=5.23 cmPQ \sin Q = 6 \times \sin 60.610\ldots^\circ = 5.23\ \text{cm}PQsinQ=6×sin60.610…∘=5.23 cm
Use the cosine rule as the first step of a chain
Most questions use the cosine rule as one step of a chain, so plan the chain first.
Both chains begin with the cosine rule, in the triangle with two known sides.
With two triangles, either rule may come first. Find the shared side in the triangle with three known facts, including a side, then use it in the other. The sine-rule step is covered in the guide The Sine Rule.
Two triangles sharing a side
In quadrilateral ABCD,{ABCD\text{,}}ABCD, AB=8 cm,{AB = 8\ \text{cm,}}AB=8 cm, AD=6 cm,{AD = 6\ \text{cm,}}AD=6 cm, angle BAD=70∘,{BAD = 70^\circ\text{,}}BAD=70∘, angle CBD=38∘{CBD = 38^\circ}CBD=38∘ and angle BCD=68∘.{BCD = 68^\circ\text{.}}BCD=68∘. Find CD{CD}CD to 3 significant figures.
- Triangle ABD{ABD}ABD has two sides and the included angle. 2bccosA=2×6×8×cos70∘=32.833…2bc \cos A = 2 \times 6 \times 8 \times \cos 70^\circ = 32.833\ldots2bccosA=2×6×8×cos70∘=32.833…
- BD2=62+82−32.833…=67.166…,BD^2 = 6^2 + 8^2 - 32.833\ldots = 67.166\ldots\mathclose{\text{,}}BD2=62+82−32.833…=67.166…, so BD=67.166…=8.195… cmBD = \sqrt{67.166\ldots} = 8.195\ldots\ \text{cm}BD=67.166…=8.195… cm
- In triangle BCD,{BCD\text{,}}BCD, the sine rule gives CDsin38∘=8.195…sin68∘{\dfrac{CD}{\sin 38^\circ} = \dfrac{8.195\ldots}{\sin 68^\circ}}sin38∘CD=sin68∘8.195…
- CD=8.195…×sin38∘sin68∘=5.44 cmCD = \dfrac{8.195\ldots \times \sin 38^\circ}{\sin 68^\circ} = 5.44\ \text{cm}CD=sin68∘8.195…×sin38∘=5.44 cm
Questions rarely name the rule, so choose it from what is known, then keep each value unrounded until the final answer.
In a bearings problem the north lines are parallel.
Bearings
B{B}B is 16 km from A{A}A on a bearing of 070∘.{070^\circ\text{.}}070∘. C{C}C is 10 km from B{B}B on a bearing of 175∘.{175^\circ\text{.}}175∘. Find the bearing of C{C}C from A{A}A to 1 decimal place.
- North lines are parallel, so co-interior angles give the angle from north at B{B}B to BA{BA}BA as 180∘−70∘=110∘.{180^\circ - 70^\circ = 110^\circ\text{.}}180∘−70∘=110∘. Angles round B{B}B add to 360∘,{360^\circ\text{,}}360∘, so angle ABC=360∘−110∘−175∘=75∘.ABC = 360^\circ - 110^\circ - 175^\circ = 75^\circ\text{.}ABC=360∘−110∘−175∘=75∘.
- AC2=162+102−2×16×10×cos75∘=356−82.822…=273.177…,AC^2 = 16^2 + 10^2 - 2 \times 16 \times 10 \times \cos 75^\circ = 356 - 82.822\ldots = 273.177\ldots\mathclose{\text{,}}AC2=162+102−2×16×10×cos75∘=356−82.822…=273.177…, so AC=16.528… km{AC = 16.528\ldots\ \text{km}}AC=16.528… km
- The sine rule gives sinBAC=10×sin75∘16.528…=0.584…,\sin BAC = \dfrac{10 \times \sin 75^\circ}{16.528\ldots} = 0.584\ldots\mathclose{\text{,}}sinBAC=16.528…10×sin75∘=0.584…, so angle BAC=35.761…∘{BAC = 35.761\ldots^\circ}BAC=35.761…∘
- From A,{A\text{,}}A, C{C}C is clockwise of B,{B\text{,}}B, so the bearing is 070∘+35.761…∘=105.8∘070^\circ + 35.761\ldots^\circ = 105.8^\circ070∘+35.761…∘=105.8∘
C{C}C is south and east of A,{A\text{,}}A, so its bearing must lie between 090∘{090^\circ}090∘ and 180∘.{180^\circ\text{.}}180∘.
- Why does an acute included angle give a shorter side than Pythagoras would?
- How do you choose between the cosine rule and the sine rule?
A triangle has sides of 3 cm, 5 cm and 7 cm. What is its largest angle?
Solution
120∘{120^\circ}120∘
A triangle has sides of 3 cm and 8 cm with an included angle of 60∘.{60^\circ\text{.}}60∘. What is the third side?
Solution
7 cm