Is $\frac{\cos^2 (x)\sin(nx)}{\sin(x)}$ trigonometric polynomial of degree at most $n$?
I need this result to show that for any trigonometric polynomial $T(t)$ of degree $n$ exists $a$ such that
$$T(t)=a\cos(nt)+\frac{\cos(nt)}{2n}\sum\limits_{k=1}^{2n}(-1)^kT(t_k)\cot\left(\frac{t-t_k}{2}\right)$$ Where $$t_k=\frac{2k-1}{2n}\pi$$
Assuming $n$ is a positive integer, yes it's a TP, but of degree $n+1>n$. In fact you don't need the cosine:
Say $z=e^{ix}$ and $w=e^{-ix}$. Then $$\frac{\sin(nx)}{\sin(x)} =\frac{z^n-w^n}{z-w}=z^{n-1}+wz^{n-2}+\dots+w^{n-1},$$a TP of degree $n-1$.