First, [0,2\(\displaystyle \pi\)] is a little misleading, since it is defined only on [0,\(\displaystyle \frac{3}{2}\pi\)].
Second, a little trigonometry has been known to be beneficial.
\(\displaystyle sin(x) - cos(x) = \sqrt{2}*sin(x-\frac{\pi}{4}\)
Third, that isn't much help, but it was fun.
Fourth, how are your numerical methods?