We need to find the number of solutions of cosx=∣sinx∣ in the interval −4π≤x≤4π.
Since the RHS is ∣sinx∣≥0, we need cosx≥0.
Squaring both sides (valid since both sides are non-negative when solutions exist):
cos2x=sin2x
cos2x=0
2x=2π+kπ,k∈Z
x=4π+2kπ
The general solutions are x=4π,43π,45π,47π,…
We need cosx≥0, which holds when x∈[−2π+2kπ,2π+2kπ].
At x=4π+2kπ:
- k=0: x=4π, cos4π=22>0 ✓
- k=1: x=43π, cos43π=−22<0 ✗
- k=2: x=45π, cos45π=−22<0 ✗
- k=3: x=47π, cos47π=22>0 ✓
So within each period of 2π, we get exactly 2 valid solutions: x=4π+2mπ and x=−4π+2mπ for integer m.
Solutions of the form x=4π+2mπ:
−4π≤4π+2mπ≤4π
−817≤m≤815
So m=−2,−1,0,1 — giving 4 solutions.
Solutions of the form x=−4π+2mπ:
−4π≤−4π+2mπ≤4π
−815≤m≤817
So m=−1,0,1,2 — giving 4 solutions.
Total solutions = 4+4=8.
The number of solutions is 8, which corresponds to Option C.