cos\alpha+cos\beta=2cos\frac{\alpha+\beta}{2}cos\frac{\alpha-\beta}{2}