2. We have $\displaystyle \cos(n-1)x=\cos(nx-x)$
and use $\displaystyle \cos(a-b)=\cos a\cos b+\sin a\sin b$