Cosine Rule (AA HL)
The cosine rule is , where is the angle opposite side . Use it to find a side when two sides and the included angle are known, or rearrange it to find an angle when all three sides are known. It reduces to Pythagoras' theorem when . It's part of the broader Triangles & Circular Functions topic.
11 questions on this sub-topic.
Syllabus
| Code | Syllabus content |
|---|---|
| SL3.2 | The sine rule (excluding the ambiguous case). The cosine rule . Area of a triangle . |
Official IB source: Mathematics: analysis and approaches subject brief (PDF, ibo.org).
Skills practised on this page:
- Find a missing side or angle in a non-right-angled triangle using the cosine rule.
- Calculate the area of a triangle using ½ab sin C.
The cosine rule
Both forms below are in the formula booklet.
Cosine rule
Label the angle you know (or want) as , with the two sides enclosing it.
In the formula bookletRearranged - finds an angle
Use this form when all three sides are known and you need one of the angles.
Need the sine rule and triangle area formula too? See Triangles & Circular Functions.
Key terms
Which angle is C in the cosine rule?
is the angle opposite side , the side on the left of the formula. The other two sides, and , are the sides that form the angle .
e.g. For , and , , so .
When do you need the cosine rule rather than the sine rule?
Use the cosine rule when you know two sides and the angle between them, or all three sides. In both cases there is no angle with its opposite side, so the sine rule cannot be set up.
e.g. Sides and with included angle give no angle with its opposite side, so the cosine rule is needed.
What does a negative value of cos C tell you?
A negative cosine means the angle is obtuse, a positive cosine means it is acute, and zero means it is a right angle.
e.g. For sides , and , , so is obtuse.
How does the cosine rule link to Pythagoras' theorem?
When , , so the last term disappears and the rule becomes .
e.g. With , and , , so .
Worked examples
In triangle ,
Find the exact length of
Worked solution
M1
Use : A1
giving A1
M1
A1
A triangle has sides
Find the largest angle.
Worked solution
M1
A1
Inverse cosine: M1
A1On the GDC. Find in degrees. The calculator shows about 96.4.
A triangle has side lengths and where It is known that
Show that
Worked solution
Side is opposite angle , with adjacent sides and : M1
A1
A1
M1
A1
or M1
Since (a length), reject : R1AG
Common mistakes
- Using the sine rule when the cosine rule is needed. If you know two sides and the angle between them, or all three sides, the sine rule can't be set up directly - reach for the cosine rule instead.
- Rounding too early. Carry full calculator accuracy through the cosine rule calculation, and only round the final answer - early rounding (especially before a square root) can shift the last significant figure.
- Labelling the wrong angle as . The angle in must be the one enclosed by the sides you call and - relabel the triangle consistently before substituting.
Quick questions
What is the cosine rule?
, used to find a side of a triangle when the other two sides and the angle between them are known.
How do you use the cosine rule to find an angle?
Rearrange to , then take the inverse cosine. This works when all three sides are known.
How do I find the largest angle when I know all three sides?
The largest angle is opposite the longest side. Call that side and use .
Can I use the cosine rule to find an angle other than C?
Yes. Relabel so that the angle you want is opposite the side on the left, for example .
Why do I get an error when I take the inverse cosine?
The value must lie between and . A value outside this range means there is an arithmetic slip or the lengths cannot form a triangle.
Ready to practise properly?
11 cosine-rule questions, marked instantly like the real exam.