Sum and product properties of trigonometric functions