I would like to find other ways to prove this identity
$$\cos A+\cos B + \cos C=1+4\sin \frac A2 \sin \frac B2\sin \frac C2$$
Where $A,B,C$ are angles of a triangle.
My way to prove it is by $A+B+C=\pi$. By using product to sum formula, $$2\cos \frac{A+B}{2}\cos\frac{A-B}{2}+\cos C=2\sin\frac C2\cos\frac{A-B}{2}+1-2\sin^2\frac C2$$
This can be trivially proved by factoring $2\sin\frac C2$ and a sum to product formula.
I would like to see if there's another approach such as
- Assuming $B=?, C=?$
- By cyclic polynomial? Since this is a cyclic identity
- Or even Vieta's formula?
One method with Computer Algebra Systems is to use a substitution and factorization. In our case, we want to prove
The first step is to define substitutions $$ A = \frac{2\log(X)}i, \quad B = \frac{2\log(Y)}i, \quad C = \frac{2\log(Z)}i. $$ Rewrite the original equation as $$ \cos A+\cos B + \cos C- \Big(1+4\sin \frac A2 \sin \frac B2\sin \frac C2\Big)=0,$$ use the substitutions, and factor the expression to get $$ \frac{(Z - i\,X Y) (Y - i\,X Z) (X - i\,Y Z) (i - X Y Z)}{2X^2Y^2Z^2}.$$ This expression is zero iff $\, C=(-1)^{n+m}\pi+(-1)^n A+ (-1)^m B.\,$
A Wolfram Mathematica program to verify this is