We need to find the number of solutions of x+2tanx=2π in [0,2π].
Rearranging, we get 2tanx=2π−x, which gives tanx=21(2π−x).
Let us define f(x)=tanx and g(x)=21(2π−x). The solutions are the intersection points of these two curves in [0,2π].
The function g(x) is a straight line with slope −21 and y-intercept 4π. At x=0, g(0)=4π≈0.785. At x=2π, g(2π)=0. At x=π, g(π)=−4π. At x=2π, g(2π)=−43π.
The function tanx has vertical asymptotes at x=2π and x=23π, and is continuous on the intervals [0,2π), (2π,23π), and (23π,2π].
In the interval [0,2π): tanx increases from 0 to +∞, while g(x) decreases from 4π to 0. At x=0, tan0=0<4π=g(0). As x→2π−, tanx→+∞ while g(x)→0. So tanx crosses g(x) exactly once in this interval.
In the interval (2π,23π): tanx goes from −∞ to +∞. The line g(x) is continuous on this interval, taking finite values. Since tanx is continuous and strictly increasing on this interval, going from −∞ to +∞, it crosses the line g(x) exactly once.
In the interval (23π,2π]: tanx goes from −∞ to 0. At x=23π, g(23π)=21(2π−23π)=−2π≈−1.57. At x=2π, g(2π)=−43π≈−2.36 and tan(2π)=0. Since tanx comes from −∞ and increases to 0, while g(x) takes finite negative values (between −2π and −43π), the curves cross exactly once.
Therefore, the total number of solutions is 3, which is Option A.