We need to solve: sinθtanθ+tanθ=sin2θ for θ∈[−π,π]∖{±2π}.
Rewriting the equation:
tanθ(sinθ+1)=2sinθcosθ
cosθsinθ(sinθ+1)=2sinθcosθ
Case 1: sinθ=0
LHS = 0, RHS = 0. This gives θ=−π,0,π.
Note: θ=−π and θ=π represent the same point. We include both if both are in the domain. Since the domain is [−π,π], both −π and π are included.
So θ∈{−π,0,π}.
Case 2: sinθ=0. Divide both sides by sinθ:
cosθsinθ+1=2cosθ
sinθ+1=2cos2θ=2(1−sin2θ)=2−2sin2θ
2sin2θ+sinθ−1=0
(2sinθ−1)(sinθ+1)=0
sinθ=21orsinθ=−1
sinθ=−1 gives θ=−2π, which is excluded from the domain.
sinθ=21 gives θ=6π or θ=65π.
We must verify cosθ=0 for these values (already satisfied).
So S={−π,0,π,6π,65π}
n(S)=5
Now compute T=∑θ∈Scos2θ:
cos2(−π)=cos(−2π)=1
cos2(0)=cos0=1
cos2(π)=cos2π=1
cos2(6π)=cos3π=21
cos2(65π)=cos35π=21
T=1+1+1+21+21=4
T+n(S)=4+5=9
The answer is Option D: 9.