We use this rule in basic mechanics (Statics or Dynamics) to determine angles or sides in triangles.
In Trigonometry, the law of Cosines, also known as Cosine Rule or Cosine Formula basically relates the length of the triangle to the cosines of one of its angles.