The Pythagorean Theorem states that for a right triangle with legs

*a*and

*b*and hypotenuse

*c*,

c

^{2}= a

^{2}+ b

^{2}

The Cosine Law is a generalization of the Pythagorean Theorem. For a triangle with sides

*a*,

*b*, and

*c*and angle

*C*opposite the side

*c*,

c

^{2}= a

^{2}+ b

^{2}− 2ab⋅cos(C)