What is the Law of Cosines?

The law of cosines is the formula used for solving triangles in geometry. The law of cosines is c^2=a^2+b^2–2abcosC. This can be proven by dividing triangle into two right ones and using the Pythagorean Theorem.