To find the number of elements in the set S={x∈[−π,π]:sinx(sinx+cosx)=a,a∈Z}, we first simplify the given trigonometric equation.
Let f(x)=sinx(sinx+cosx). Expanding this, we get:
f(x)=sin2x+sinxcosx
Using the trigonometric identities sin2x=21−cos2x and sinxcosx=2sin2x, we can rewrite f(x) as:
f(x)=21−cos2x+2sin2x=21+21(sin2x−cos2x)
Using the linear combination identity sinθ−cosθ=2sin(θ−4π), we obtain:
f(x)=21+21sin(2x−4π)
Step 1: Range of f(x) and possible values of integer a
Since the sine function takes values in [−1,1], the range of f(x) is given by:
f(x)∈[21−21,21+21]
Calculating the numerical bounds:
f(x)∈[21−2,21+2]≈[−0.207,1.207]
Since a∈Z, the only integers lying in this range are:
a=0anda=1
Step 2: Finding solutions for a=0
Setting f(x)=0:
21+21sin(2x−4π)=0⟹sin(2x−4π)=−21
Let y=2x−4π. Since x∈[−π,π], we have:
2x∈[−2π,2π]⟹y∈[−2π−4π,2π−4π]=[−49π,47π]
Now we look for values of y∈[−49π,47π] such that siny=−21:
y∈{−49π,−43π,−4π,45π,47π}
Converting back to x=21(y+4π):
- y=−49π⟹x=−π
- y=−43π⟹x=−4π
- y=−4π⟹x=0
- y=45π⟹x=43π
- y=47π⟹x=π
Thus, there are 5 solutions for a=0.
Step 3: Finding solutions for a=1
Setting f(x)=1:
21+21sin(2x−4π)=1⟹sin(2x−4π)=21
For y∈[−49π,47π], the solutions to siny=21 are:
y∈{−47π,−45π,4π,43π}
Converting back to x=21(y+4π):
- y=−47π⟹x=−43π
- y=−45π⟹x=−2π
- y=4π⟹x=4π
- y=43π⟹x=2π
Thus, there are 4 solutions for a=1.
Step 4: Total Number of Solutions
Combining all solutions:
S={−π,−43π,−2π,−4π,0,4π,2π,43π,π}
The total number of elements in set S is:
n(S)=5+4=9
Hence, the correct option is D.