The sum-to-product formula is given by $\cos(\alpha) - \cos(\beta) = -2\sin\left(\frac{\alpha + \beta}{2}\right)\sin\left(\frac{\alpha - \beta}{2}\right)$. Here, $\alpha = x$ and $\beta = 3x$. So, we get
$$\cos(x) - \cos(3x) = -2\sin\left(\frac{x +
Show more…