Given,
x+2‌tan‌x=‌ ⇒‌‌2‌tan‌x=‌−x⇒tan‌x=‌−‌ ⇒‌‌tan‌x=(−‌)x+‌...(i)
Approach In this type of problem solving, graphical approach is best because we have to find only number of solutions, not the solution (i.e. not the value(s) of x).
Concept To find the number of solution(s) for Eq. (i), first of all, let
y=tan‌x... (ii) and
y=(‌)x+‌... (iii) and then draw the graph of Eqs. (ii) and (iii).
Now, total number of solution(s) = Total number of point(s) of intersection of the graph (ii) and (iii).
y=−‌x+‌ intersects
y=tan‌x at three distinct points in
[0,2Ï€].
∴ Total number of solutions
=3