Law of cosines can be used to find the missing side or angle of a triangle by applying any of the following formulas, a2 = b2 + c2 - 2bc·cosA. b2 = c2 + a2 - 2ca·cosB. c2 = a2 + b2 - 2ab·cosC.