how is this equations "y[u]=(cos(wn)-cosw(u-1))/2" equal to cos(wn+theta), need to know the missing steps.

thanks your help...