DWG NO. 6.2 — Lesson 2 of 6

Law of Cosines

Unit 6: Additional Topics in Trigonometry · ~25 min

Objective Use the Law of Cosines to solve oblique triangles given SAS or SSS, and to find any angle once all three sides are known.

The Law of Sines needs a known angle paired with its opposite side. Two common triangle setups never hand you that pair: SAS (two sides and the angle between them) and SSS (all three sides, no angles at all). For these, the Law of Cosines — a direct generalization of the Pythagorean theorem — is the tool.

The Law of Cosines

Using the same labeling as Lesson 6.1 (side a opposite angle A, and so on):

Each version pairs one side with the angle directly across from it, using the other two sides and the angle between them. Notice that if C = 90°, cosC = 0 and the formula collapses to c² = a² + b² — the Pythagorean theorem is just the special case where the included angle is a right angle.

A c b a B C

Side a is opposite angle A, which sits between the known sides b and c — the SAS setup the Law of Cosines solves directly

Solving SAS triangles

Given two sides and the included angle, compute the third side first with the Law of Cosines, then find a remaining angle (with either the Law of Cosines or the Law of Sines) and subtract from 180° for the last one.

Solving SSS triangles

Given all three sides, solve the Law of Cosines for cosine and find any angle directly — there's no ambiguous case here, since inverse cosine over 0° to 180° gives exactly one angle for each ratio:

Worked Example 1 · SAS case
Problema = 8, b = 10, C = 53°. Find c, then angle A.
1c² = 8² + 10² − 2(8)(10)cos53° = 164 − 160(0.6018) ≈ 67.71, so c ≈ 8.23.
2cosA = \(\frac{b^{2} + c^{2} - a^{2}}{2bc}\) = \(\frac{100 + 67.71 - 64}{2\cdot10\cdot8.23}\) ≈ 0.6301, so A ≈ 50.9°.
3B = 180° − 53° − 50.9° ≈ 76.1°.
c ≈ 8.23,   A ≈ 50.9°,   B ≈ 76.1°
Worked Example 2 · SSS case
Problema = 7, b = 9, c = 13. Find angle C, the largest angle (opposite the longest side).
1cosC = \(\frac{a^{2} + b^{2} - c^{2}}{2ab}\) = \(\frac{49 + 81 - 169}{2\cdot7\cdot9}\) = \(\frac{-39}{126}\) ≈ −0.3095.
2C ≈ 108.0°. The negative cosine confirms C is obtuse, which makes sense since c is the longest side.
C ≈ 108.0°

Guided practice