$$\frac{ d }{ dt } ( \cos wt+ \sin wt)$$
$w\left(\cos(tw)-\sin(tw)\right)$
$-tw\sin(tw)-tw\cos(tw)+\cos(tw)-\sin(tw)$