Common mistake
The cosine rule is c2 = a2 + b2 + 2ab cos C.
Correct understanding
The sign is minus. For an obtuse angle the negative cosine makes the term positive, increasing c2.
Maths · Lesson 12.2
The law of cosines and its use in SAS and SSS triangles.
By the end of this lesson, you should be able to:
The cosine rule is Pythagoras with a correction term. When the angle between two sides is not 90°, the square of the opposite side is larger or smaller than the sum of the squares of the other two. The correction is −2ab cos C, which vanishes exactly when C = 90°.
This rule handles the two cases the sine rule cannot: two sides with the included angle (SAS), and all three sides (SSS). It is the standard tool for finding a side or an angle in an oblique triangle.
Label the side you want to find as c and the angle opposite it as C. Then c2 = a2 + b2 − 2ab cos C. The two known sides are a and b, and C is the angle between them. Take the positive square root at the end because a side length cannot be negative.
If C is obtuse, cos C is negative, so the correction term becomes positive and c2 exceeds a2 + b2. This matches the geometry: the side opposite an obtuse angle is longer than the hypotenuse of the right triangle with the same legs.
Rearranging the formula gives cos C = (a2 + b2 − c2)/(2ab). Compute the cosine first, then take the inverse cosine. The result lies between 0° and 180°, which is exactly the valid range for a triangle angle.
When all three sides are known, find the largest angle first. It is opposite the longest side, and if the triangle is obtuse this is the angle that reveals it. The remaining angles can then be found with the sine rule, which is usually faster.
Use c2 = a2 + b2 − 2ab cos C.
Substitute: c2 = 49 + 81 − 2(7)(9)cos 120°.
cos 120° = −1/2, so the correction is −126(−1/2) = +63.
Thus c2 = 49 + 81 + 63 = 193, and c = √193 ≈ 13.9 cm.
Common mistake
The cosine rule is c2 = a2 + b2 + 2ab cos C.
Correct understanding
The sign is minus. For an obtuse angle the negative cosine makes the term positive, increasing c2.
Common mistake
Any angle can be found with the cosine rule using the same side order.
Correct understanding
The angle must be opposite the side on the left. Match the labels before substituting.
Because cos 90° = 0, the correction term disappears.
If the three sides violate the triangle inequality, the computed cosine falls outside [−1, 1] and no triangle exists.