A problem on trig functions