Cosine Rule (AI HL)

The cosine rule states that c2=a2+b2−2abcos⁡Cc^2=a^2+b^2-2ab\cos C, linking the three sides of any triangle to the angle opposite side cc. Use it to find a missing side when two sides and the included angle are known, or to find an angle when all three sides are known. Together with the area formula 12absin⁡C\tfrac12ab\sin C, it solves triangles without a right angle. It's part of the broader Geometry & Trigonometry topic.

11 questions on this sub-topic.

Syllabus

CodeSyllabus content
SL3.2Sine, cosine and tangent ratios for right-angled triangles. The sine rule asin⁡A=bsin⁡B=csin⁡C\dfrac{a}{\sin A}=\dfrac{b}{\sin B}=\dfrac{c}{\sin C} and cosine rule c2=a2+b2−2abcos⁡Cc^2=a^2+b^2-2ab\cos C (this section excludes the ambiguous case). Area of a triangle as 12absin⁡C\tfrac12 ab\sin C.

Official IB source: Mathematics: applications and interpretation subject brief (PDF, ibo.org).

Skills practised on this page:

The formula

Both rules sit in the formula booklet, so the job is spotting which one a question actually needs.

Cosine rule

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

Use with two sides and the included angle to find the third side, or with all three sides to find an angle.

✓ In the formula booklet

Sine rule

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

Needs an angle paired with its opposite side - if that pairing isn't there, it's a cosine rule question instead.

✓ In the formula booklet

Need the full syllabus wording, formula-booklet table and GDC steps? See Geometry & Trigonometry.

Key terms

What is the included angle?

The included angle is the angle between two known sides, formed where those two sides meet. To find the third side with the cosine rule, the known angle must be the included angle.

e.g. With a=5a=5, b=7b=7 and C=60∘C=60^{\circ} in triangle ABCABC, angle CC is the included angle because it lies between sides aa and bb.

How do you find a missing side?

Substitute the two known sides and their included angle into c2=a2+b2−2abcos⁡Cc^2=a^2+b^2-2ab\cos C, then take the square root. Keep the unrounded value until the final answer.

e.g. With a=5a=5, b=7b=7 and C=60∘C=60^{\circ}: c2=25+49−70cos⁡60∘=39c^2=25+49-70\cos60^{\circ}=39, so c=39≈6.24c=\sqrt{39}\approx6.24.

How do you find a missing angle?

Rearrange the rule to cos⁡C=a2+b2−c22ab\cos C=\dfrac{a^2+b^2-c^2}{2ab}, then use inverse cosine on the GDC. The angle found is opposite the side cc that appears alone.

e.g. For a triangle with sides 33, 44 and 66, cos⁡C=9+16−3624=−1124\cos C=\dfrac{9+16-36}{24}=-\dfrac{11}{24}, so C≈117∘C\approx117^{\circ}, where CC is opposite the side of length 66.

How do you find the area of a triangle?

When two sides and the included angle are known, the area is 12absin⁡C\tfrac12ab\sin C. The angle must lie between the two sides used.

e.g. With a=10a=10, b=6b=6 and C=30∘C=30^{\circ}, the area is 12×10×6×sin⁡30∘=15\tfrac12\times10\times6\times\sin30^{\circ}=15 square units.

Worked examples

1
Easy
GDC
[3 marks]

Find the area of triangle ABCABC with a=12a = 12 cm, c=8c = 8 cm, B=35∘B = 35^{\circ}.

Worked solution

Area =12acsin⁡B= \tfrac12 ac\sin B M1
=12(12)(8)sin⁡35∘= \tfrac12(12)(8)\sin 35^{\circ} A1
≈27.5\approx 27.5 units². A1

M1 12acsin⁡B\tfrac12 ac\sin B A1 Correct substitution A1 Correct answer of ≈27.5\approx27.5
2
Hard
GDC
[7 marks]

A triangular plot has two sides of 25 m and 30 m. The area is 300300 m2^2.

(a)(i) Find the value of θ<90∘\theta<90^{\circ}.
(a)(ii) Find the value of θ>90∘\theta>90^{\circ}.
(b)(i) Find the perimeter for the smaller-angle case.
(b)(ii) Find the perimeter for the larger-angle case.

Worked solution

(a)(i) Two angles. 12(25)(30)sin⁡θ=300⇒sin⁡θ=600750=0.8.\tfrac12(25)(30)\sin\theta=300\Rightarrow\sin\theta=\dfrac{600}{750}=0.8. M1
sin⁡θ=0.8.\sin\theta=0.8. A1
θ1=53.1∘.\theta_1=53.1^\circ. A1

(a)(ii) θ2=126.9∘.\theta_2=126.9^\circ. A1

(b)(i) Third side for each angle. For 53.1∘53.1^\circ: c2=625+900−1500cos⁡53.1∘=625⇒c=25.0c^2=625+900-1500\cos53.1^\circ=625\Rightarrow c=25.0 m; perimeter =80.0=80.0 m. For 126.9∘126.9^\circ: c2=625+900−1500cos⁡126.9∘≈2425⇒c≈49.24c^2=625+900-1500\cos126.9^\circ\approx2425\Rightarrow c\approx49.24 m; perimeter ≈104.2\approx104.2 m. M1
perimeter =80.0=80.0 m. A1

(b)(ii) For 126.9∘126.9^\circ: c2=625+900−1500cos⁡126.9∘≈2425⇒c≈49.24c^2=625+900-1500\cos126.9^\circ\approx2425\Rightarrow c\approx49.24 m; perimeter ≈104.2\approx104.2 m. A1

GDC: In degree mode evaluate sin−1⁡(0.8)\sin^{-1}(0.8), then each cosine rule expression.

M1 Area equation A1 sin⁡θ\sin\theta A1 θ=53.1∘\theta=53.1^\circ A1 θ=126.9∘\theta=126.9^\circ M1 Cosine rule A1 Perimeter 80.080.0 m A1 Perimeter 104.2104.2 m
3
Medium
GDC
[4 marks]

In triangle ABCABC, b=10, c=14, A=58∘.b=10,\ c=14,\ A=58^\circ.

diagram not to scale58°1410ABC

(a) Find the area.

(b) Find side a.a.

Worked solution

(a) Area. 12bcsin⁡A=12(10)(14)sin⁡58∘\tfrac12 bc\sin A = \tfrac12(10)(14)\sin58^\circ M1
≈59.4.\approx 59.4. A1

(b) Side aa. a2=100+196−2(140)cos⁡58∘≈147.6a^2 = 100 + 196 - 2(140)\cos58^\circ \approx 147.6 M1
a≈12.2.a \approx 12.2. A1 On the GDC. (a) Find the area of the triangle. (b) Find the side a.

TI-84 Plus CE: (a) mode move down to the RADIAN DEGREE line ▶ enter 2nd mode degree mode set type 1/2*10*14*sin(58) enter Then (b) mode move down to the RADIAN DEGREE line ▶ enter 2nd mode degree mode set type √(10^2+14^2-2*10*14*cos(58)) enterCasio fx-CG50: (a) MENU Run-Matrix SHIFT MENU move down to Angle F1 EXIT degree mode set type 1/2*10*14*sin(58) EXE Then (b) MENU Run-Matrix SHIFT MENU move down to Angle F1 EXIT degree mode set type √(10^2+14^2-2*10*14*cos(58)) EXECasio fx-CG100: (a) HOME Calculate Settings key Angle Degree OK type 1/2*10*14*sin(58) calculate Then (b) HOME Calculate Settings key Angle Degree OK type √(10^2+14^2-2*10*14*cos(58)) calculateTI-Nspire CX: (a) home Settings Document Settings tab Angle Degree enter type 1/2*10*14*sin(58) enter Then (b) home Settings Document Settings tab Angle Degree enter type √(10^2+14^2-2*10*14*cos(58)) enterFull GDC guide: Switch between degrees and radians Topic page

M1 Area formula A1 Correct answer of ≈59.4\approx59.4 M1 Cosine rule A1 a≈12.2a\approx12.2

Common mistakes

  • Reaching for the sine rule when the cosine rule is needed. If you only know three sides, or two sides and the angle between them, there's no opposite angle-side pair to work with - that's the cosine rule's job.
  • Losing the obtuse solution. When cos⁡C\cos C comes out negative, CC is obtuse - don't round it away or "correct" it back to an acute angle; the cosine rule (unlike the sine rule) gives a single, unambiguous angle.
  • Mislabelling which side is squared alone. In c2=a2+b2−2abcos⁡Cc^2=a^2+b^2-2ab\cos C, CC must be the angle between the two sides aa and bb that are multiplied together - swap the labelling and the substitution comes out wrong even with correct arithmetic.

Quick questions

When should I use the cosine rule instead of the sine rule?

Use the cosine rule when you know two sides and the angle between them (to find the third side), or all three sides (to find an angle). The sine rule needs an angle paired with its opposite side, which the cosine rule doesn't require.

What is the cosine rule formula?

c2=a2+b2−2abcos⁡Cc^2 = a^2 + b^2 - 2ab\cos C, where CC is the angle opposite side cc. It's given in the formula booklet.

Why can cos⁡C\cos C come out negative in the cosine rule?

A negative value of cos⁡C\cos C means that angle CC is obtuse, between 90∘90^{\circ} and 180∘180^{\circ}. For example, cos⁡C=−0.5\cos C=-0.5 gives C=120∘C=120^{\circ}.

What does the cosine rule become when the angle is 90 degrees?

Since cos⁡90∘=0\cos90^{\circ}=0, the rule reduces to c2=a2+b2c^2=a^2+b^2, which is Pythagoras' theorem. So Pythagoras' theorem is a special case of the cosine rule.

Can I label the sides differently when using the cosine rule?

Yes, as long as the side on the left is opposite the angle in the cosine term. For example, a2=b2+c2−2bccos⁡Aa^2=b^2+c^2-2bc\cos A is the same rule with the letters rotated.

Ready to practise properly?

11 cosine-rule questions, marked instantly like the real exam.