Key Ideas
1The Law of Cosines Formula. c^2 = a^2 + b^2 - 2ab*cos(C), where C is the angle opposite side c.
2Relation to the Pythagorean Theorem. If C = 90°, cos(C) = 0, and the formula reduces exactly to the Pythagorean theorem: c^2 = a^2 + b^2.
3When to Use It. Use the Law of Cosines when you know: all three sides (SSS), or two sides and the included angle (SAS).
4Finding a Missing Side. Plug the two known sides and included angle directly into the formula to solve for the third side.
5Finding a Missing Angle. Rearrange the formula to solve for cos(C), then take the inverse cosine to find the angle.
Worked Examples
A triangle has sides a=7, b=10, and included angle C=60°. Find side c.
c^2=79, so c is approximately 8.89
A triangle has sides a=5, b=6, c=7. Find angle C (opposite side c) using the Law of Cosines.
cos(C)=0.2, so C = arccos(0.2), approximately 78.5°
Show that the Law of Cosines matches the Pythagorean theorem when C=90°.
c^2 = a^2+b^2, exactly the Pythagorean theorem