In Δ ABC the sides opposite to angles A,B,C are denoted by a,b,c respectively,
cosAc cosB+b cosC+ cosBa cosC+c cosA+ cosCa cosB+b cosA=a2+b2+c22abc