We start with the equation sin2x−2cosx+4sinx=4. We need to find the number of solutions in the interval [0,5π].
First, recall that sin2x=2sinxcosx. Substitute this into the equation:
2sinxcosx−2cosx+4sinx=4
Move all terms to the left side to set the equation to zero:
2sinxcosx−2cosx+4sinx−4=0
Factor out the common factor of 2:
2(sinxcosx−cosx+2sinx−2)=0
Divide both sides by 2:
sinxcosx−cosx+2sinx−2=0
Group the terms to factor by grouping. Group the first two terms and the last two terms:
(sinxcosx−cosx)+(2sinx−2)=0
Factor out cosx from the first group and 2 from the second group:
cosx(sinx−1)+2(sinx−1)=0
Notice that (sinx−1) is a common factor. Factor it out:
(sinx−1)(cosx+2)=0
This product is zero when either factor is zero. So, we have two cases:
Case 1: sinx−1=0
sinx=1
Case 2: cosx+2=0
cosx=−2
Now, solve each case separately.
For Case 1: sinx=1. The solutions occur at x=2π+2kπ, where k is an integer.
For Case 2: cosx=−2. Since the cosine function ranges between -1 and 1, cosx=−2 is impossible. So, there are no solutions for this case.
Thus, only Case 1 gives solutions: x=2π+2kπ.
Now, find all solutions in the interval [0,5π]. Substitute x=2π+2kπ and solve for integer k such that:
0≤2π+2kπ≤5π
Divide all terms by π:
0≤21+2k≤5
Subtract 21 from all parts:
−21≤2k≤29
Divide by 2:
−41≤k≤49
Since k must be an integer, the possible values are k=0,1,2.
Now, find the corresponding x values:
For k=0: x=2π+2(0)π=2π
For k=1: x=2π+2(1)π=2π+2π=25π
For k=2: x=2π+2(2)π=2π+4π=29π
Check if these are within [0,5π]:
2π≈1.57, which is between 0 and 5π≈15.7
25π=2.5π≈7.85, which is between 0 and 15.7
29π=4.5π≈14.137, which is less than 5π≈15.7, so it is included
Now, check k=3: x=2π+2(3)π=2π+6π=213π=6.5π≈20.42, which is greater than 5π≈15.7, so not in the interval
Check k=−1: x=2π+2(−1)π=2π−2π=−23π≈−4.71, which is less than 0, so not in the interval
Therefore, the solutions are x=2π, x=25π, and x=29π.
Verify each solution in the original equation:
At x=2π:
sin2(2π)=sinπ=0
−2cos(2π)=−2(0)=0
+4sin(2π)=4(1)=4
Sum: 0+0+4=4, which satisfies the equation
At x=25π: same as x=2π because the functions are periodic with period 2π, so it satisfies
At x=29π: same as x=2π, so it satisfies
No other solutions exist because cosx=−2 is impossible, and sinx=1 only occurs at these points in the interval.
Thus, there are three solutions in [0,5π].
Hence, the correct answer is Option A.