section_path: Identities/Triangle identities/Law of cosines
section_name: Law of cosines
paragraph_text: Law of cosines
  
  The law of cosines (known as the cosine formula, or the "cos rule") is an extension of the Pythagorean theorem to arbitrary triangles:
  
  or equivalently: