Now we evaluate each at ( x = \frac{\pi}{w} ) and ( x = 0 ).
However, the sine function is periodic with a period of ( \pi ), and for any integer k, ( \sin(k\pi) = 0 ). Thus, since n is an integer, the evaluation of the sine terms at ( \frac{\pi}{w} ) will be zero if (1-n) and (1+n) are integers, which would be the case since n itself is an integer. The evaluation at ( x = 0 ) will also be zero, since sin(0) = 0.
Therefore, these integrals will be zero unless ( (1-n)w = 0 ) or ( (1+n)w = 0 ). These equalities hold when n = 1 or n = -1. Every other time, since the sine of an integer multiple of ( \pi ) is zero, the whole integral evaluates to 0.
For these cases, we would use a different identity to evaluate the integral of ( \sin^2(wx) ), which is:
[ \sin^2(wx) = \frac{1 - \cos(2wx)}{2} ]
And then proceed to integrate over the interval ( [0, \frac{\pi}{w}] ). The resulting integral is not zero, but the most notable conclusion for the original integral provided is that it will be zero for all integers n except for n = 1 or n = -1.