This question was asked in Ex 3.3, 8
There is another method by using the formula of cos(x t y) 

Kishan Kumar's image