Let S={x∈(-π,π):x≠0,±π2}. The sum of all distinct solutions of the equation 3secx+cosec x+2(tanx-cotx)=0 in the set S is equal to [2016]
(3)
3secx+cosecx+2(tanx-cotx)=0
⇒32sinx+12cosx=cos2x-sin2x
⇒cos(x-π3)=cos2x⇒x-π3=2nπ±2x
⇒x=2nπ3+π9 or x=-2nπ-π3
For x∈S, n=0⇒x=π9,-π3
Now, n=1⇒x=7π9 and n=-1⇒x=-5π9
Hence, sum of all values of x=π9-π3+7π9-5π9=0