Law of sines/cosines

Math · Trigonometry

Question 1 of 10

0

    A triangle has sides a = 7 and b = 7, with included angle C = 90°. What is side c?

    Decimals (0.75 or 0,75), fractions (3/4) and mixed numbers (1 1/2) are accepted. Do not use thousands separators.

    How to type your answer
    • Fractions: 3/4. Mixed numbers: 1 1/2.
    • Decimals with a point or a comma: 0.75 or 0,75.
    • Negative numbers start with a minus: -3/4.
    • Percentages need the % sign: 75%.

    Stuck? Read the explanation

    Unlocks at a streak of 5 correct answers in a row.

    Print a free worksheet (PDF)

    Embed this practice on your site or class page

    Paste this HTML into your page. Students practise right there; it is free and needs no account.

    Law of sines/cosines explained

    The sine rule and the cosine rule find missing sides and angles in triangles that are not right-angled. Use the cosine rule when you know two sides and the angle between them, or all three sides. Use the sine rule when you know an angle and the side opposite it, plus one more piece of information. If you know two sides and an angle that is not between them, there may be two possible triangles.

    The cosine rule, where CC is the angle opposite side cc:

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

    The sine rule:

    asin⁡A=bsin⁡B=csin⁡C\frac{a}{\sin A} = \frac{b}{\sin B} = \frac{c}{\sin C}

    • For the cosine rule, the angle must sit between the two known sides, and it must be opposite the side you are finding.
    • Rearranging the cosine rule gives an angle when all three sides are known.
    • Put your calculator in degree mode, or every sine and cosine will be wrong.

    Worked example

    In a triangle, a=7a = 7, b=5b = 5 and the angle between them is C=60∘C = 60^\circ. Find cc to 2 decimal places.

    1. Substitute into the cosine rule: c2=72+52−2(7)(5)cos⁡60∘c^2 = 7^2 + 5^2 - 2(7)(5)\cos 60^\circ.
    2. Since cos⁡60∘=0.5\cos 60^\circ = 0.5, we get c2=49+25−35=39c^2 = 49 + 25 - 35 = 39.
    3. So c=39≈6.24c = \sqrt{39} \approx 6.24.

    A common mistake is using the sine rule here. It needs a matching pair of a side and its opposite angle, and this question gives two sides and the angle between them, so the cosine rule is the right choice.

    Key facts

    • Label the triangle so each side is named after the angle opposite it: side aa is opposite angle AA, and so on.
    • Cosine rule for a side: c2=a2+b2−2abcos⁡Cc^2 = a^2 + b^2 - 2ab\cos C. Rearranged for an angle: cos⁡C=a2+b2−c22ab\cos C = \dfrac{a^2 + b^2 - c^2}{2ab}.
    • Sine rule for a side or angle when you already have one matching pair (a side and its opposite angle): asin⁡A=bsin⁡B\dfrac{a}{\sin A} = \dfrac{b}{\sin B}.
    • The medium and hard practice questions ask for an angle to 1 decimal place, with the calculator in degree mode. The easy questions find a side cc from two sides and the angle between them.
    • In the cosine rule the −2abcos⁡C-2ab\cos C term is a subtraction. If CC is obtuse then cos⁡C\cos C is negative, so the term adds to the total.

    Worked example 2

    A triangle has sides a=7a = 7 cm, b=9b = 9 cm and c=12c = 12 cm. Find angle CC, to 1 decimal place.

    1. All three sides are known, so use the rearranged cosine rule: cos⁡C=72+92−1222×7×9\cos C = \dfrac{7^2 + 9^2 - 12^2}{2 \times 7 \times 9}.
    2. Top: 49+81−144=−1449 + 81 - 144 = -14. Bottom: 2×7×9=1262 \times 7 \times 9 = 126.
    3. cos⁡C=−14126=−0.1111…\cos C = \dfrac{-14}{126} = -0.1111\ldots
    4. C=cos⁡−1(−0.1111…)=96.3793…∘C = \cos^{-1}(-0.1111\ldots) = 96.3793\ldots^\circ
    5. C=96.4∘C = 96.4^\circ to 1 decimal place.

    The negative cosine is a good sign here: cc is the longest side, so CC is the largest angle, and it is obtuse. Always pick the longest side as cc so that a negative value does not surprise you. Type the fraction into your calculator, not the rounded decimal.

    Worked example 3

    In triangle ABCABC, a=8a = 8 cm, b=11b = 11 cm and C=50∘C = 50^\circ. Find angle AA, to 1 decimal place.

    This takes two steps. The cosine rule finds the missing side first, then the sine rule finds the angle.

    1. c2=82+112−2×8×11×cos⁡50∘c^2 = 8^2 + 11^2 - 2 \times 8 \times 11 \times \cos 50^\circ.
    2. cos⁡50∘=0.6427…\cos 50^\circ = 0.6427\ldots, so 2×8×11×cos⁡50∘=113.1306…2 \times 8 \times 11 \times \cos 50^\circ = 113.1306\ldots
    3. c2=185−113.1306…=71.8693…c^2 = 185 - 113.1306\ldots = 71.8693\ldots
    4. c=71.8693…=8.4775…c = \sqrt{71.8693\ldots} = 8.4775\ldots cm.
    5. Sine rule: sin⁡A=asin⁡Cc=8×sin⁡50∘8.4775…\sin A = \dfrac{a \sin C}{c} = \dfrac{8 \times \sin 50^\circ}{8.4775\ldots}.
    6. 8×sin⁡50∘=6.1283…8 \times \sin 50^\circ = 6.1283\ldots, so sin⁡A=6.1283…8.4775…=0.7228…\sin A = \dfrac{6.1283\ldots}{8.4775\ldots} = 0.7228\ldots
    7. A=sin⁡−1(0.7228…)=46.2935…∘A = \sin^{-1}(0.7228\ldots) = 46.2935\ldots^\circ
    8. A=46.3∘A = 46.3^\circ to 1 decimal place.

    Why is this safe? Because a=8a = 8 is shorter than c=8.4775…c = 8.4775\ldots, angle AA must be smaller than angle CC, so AA is acute. sin⁡−1\sin^{-1} on a calculator only gives angles up to 90∘90^\circ, so it only gives the right answer when the angle is acute. Find the angle opposite the shorter side.

    Worked example 4

    In triangle ABCABC, A=38∘A = 38^\circ, B=75∘B = 75^\circ and a=9a = 9 cm. Find side bb, to 2 decimal places.

    1. The side aa and its opposite angle AA are a matching pair, so use the sine rule: bsin⁡75∘=9sin⁡38∘\dfrac{b}{\sin 75^\circ} = \dfrac{9}{\sin 38^\circ}.
    2. Multiply by sin⁡75∘\sin 75^\circ: b=9×sin⁡75∘sin⁡38∘b = \dfrac{9 \times \sin 75^\circ}{\sin 38^\circ}.
    3. 9×sin⁡75∘=8.6933…9 \times \sin 75^\circ = 8.6933\ldots and sin⁡38∘=0.6156…\sin 38^\circ = 0.6156\ldots
    4. b=8.6933…0.6156…=14.1203…b = \dfrac{8.6933\ldots}{0.6156\ldots} = 14.1203\ldots cm.
    5. b=14.12b = 14.12 cm to 2 decimal places.

    Sense check: BB is the bigger angle, so bb must be the longer side. It is: 14.12 cm against 9 cm.

    Common mistakes

    • Using the sine rule when there is no matching pair. Two sides and the angle between them, or three sides, always means the cosine rule first.
    • Using the cosine rule with an angle that is not between the two known sides.
    • Calculating (a2+b2−2ab)cos⁡C(a^2 + b^2 - 2ab) \cos C. The cos⁡C\cos C multiplies only the 2ab2ab part, so work out 2abcos⁡C2ab\cos C first and subtract it.
    • Working out a2+b2−c2a^2 + b^2 - c^2 wrongly when the answer is negative, then dropping the minus sign on the way to cos⁡−1\cos^{-1}.
    • Forgetting to take the square root after finding c2c^2.
    • Rounding cc before using it in the sine rule, which can change the last digit of the angle.
    • Having the calculator in radians instead of degrees.

    Exam tips

    • Write the triangle with sides aa, bb, cc opposite angles AA, BB, CC before you substitute anything.
    • Choose the formula by what you are given: three sides or SAS (two sides and the angle between) means the cosine rule, a side plus its opposite angle means the sine rule.
    • In two-step questions, find the angle opposite the shorter side with the sine rule.
    • Check with the rule that the biggest angle faces the longest side.
    • Angles in a triangle add up to 180∘180^\circ. Use it as a quick check, and to get the third angle without another rule.
    • State the accuracy asked for, for example "C=96.4∘C = 96.4^\circ to 1 d.p.", and keep full calculator values until the last line.

    What you will practise

    New numbers every time you practise. Levels: Easy, Medium, Hard. Each answer is followed by a worked explanation.

    Example questions

    • Easy

      A triangle has sides a = 9 and b = 9, with included angle C = 90°. What is side c?

    • Medium

      A triangle has side lengths a = 4, b = 8 and c = 10. Angle C is opposite side c. Find angle C in degrees, to 1 decimal place.

    • Hard

      In triangle ABC, side a = 7, side b = 7 and angle C = 73°. Side a is opposite angle A and side b is opposite angle B. Find angle A in degrees, to 1 decimal place.