4sin\frac{A}{2}sin\frac{B}{2}sin\frac{C}{2}=2(cos\frac{A-B}{2}-cos\frac{A+B}{2})sin\frac{C}{2}
=2cos\frac{A-B}{2}sin\frac{C}{2}-2sin^{2}\frac{C}{2}
=sin\frac{A+C-B}{2}+sin\frac{C-A+B}{2}-1+cosC
=sin(\frac{\pi }{2}-B)+sin(\frac{\pi }{2}-A)-1+cosC
=cosA+cosB+cosC-1