derivative of 2sin(t) + sin(2t)