Law of Cosines notes (Precalculus)

Solve triangles using law of cosines.

The big question

c² = a² + b² − 2ab cos C

What if we know two sides and the angle between? The Law of Cosines!

Learn it, step by step

1. Pythagoras, upgraded

c² = a² + b² − 2ab cos C.

If C is 90 degrees, cos C = 0, and it's just a² + b² = c².

c² = a² + b² − 2ab cosC
C = 90° → c² = a² + b²

Pythagoras, upgraded. c² = a² + b² − 2ab cosC. C = 90° → c² = a² + b²

2. Example

a = 5, b = 7, C = 60°. c² = 25 + 49 − 70 × ½ = 39.

c = √39 ≈ 6.2.

60°
c ≈ 6.2
c² = 25 + 49 − 35 = 39

Example. 60°. c ≈ 6.2. c² = 25 + 49 − 35 = 39

Watch out: Multiply first

Do 2ab cos C before subtracting. Don't subtract 2ab from a² + b² first.

Wrong: (74 − 70) cos 60. Right: 74 − 70 cos 60.

Your turn

Two sides 3 and 4 with 90 degrees between. Use the Law of Cosines.

a = 3, b = 4, C = 90°

Answer: c = 5. cos 90 is 0: c² = 25, c = 5!

Remember

Use for SAS or SSS. c² = a² + b² − 2ab cos C.

c² = a² + b² − 2ab cosC

Watch the Law of Cosines lesson and practice · Printable worksheet