The general solution of the equation
1−sinx+…..+(−1)nsinnx.1+sinx+....+sinnx=1−cos2x1+cos2x is
the numerator and
denominator of LHS are both GP's
so we find there sums using sum of GP formula
we get
(1−(−sinx)n+1)(1−sinx)(1−(sinx)n+1)(1+sinx)=1−cos2x1+cos2x
taking n as even , we conclude that there is
no solution
take n as odd, we get
1−sinx1+sinx=1−cos2x1+cos2x
so sinx=cos2x =1−2sin2x
this gives
sinx=−1,12
we reject −1 because then 1+sinx is not defined
so sinx=12
so x=nπ+(−1)nπ6