Law of cosines
The law of cosines finds the third side of a triangle when you know two sides and the angle between them (the included angle). cos C is a number determined by the size of angle C, and . If angle C is a right angle, , and the formula becomes the Pythagorean theorem.
Formulas
When to use it
Use it when you know two sides of a triangle and the angle between them and need the third side, or when you know all three sides and need an angle.
Worked example
A triangle has sides 5 and 8 with a angle between them; find the third side c. . So .
Common mistake
A common mistake is to put an angle that is not between the two known sides in place of C. Check that you use the angle opposite the side c you want, which is the angle between a and b.