Number of roots of the equation $x \sin x-1=0$ for $x\in [0,2\pi]$
My attempt is using the bisection method where I initially took $a=0$, $b=\frac{\pi}{2}$
as $f(a)\cdot f(c)<0$
We can proceed along the lines
we get one root $\in[0,\frac{\pi}{2}]$
Similarly we get another root $\in[\frac{\pi}{2},\pi]$
as $f(a)\cdot f(c)<0$ again
but no roots $\in[\pi,2\pi]$ as $f(a)\cdot f(c) \not< 0$
Hence we can concude we have two roots $\in[0,2\pi]$
Please tell me if I am on the correct lines. Ideas,solutions are appreciated.
And if possible tell me tricks to solve such types of transcendental equations.
The curve of xsinx =0 is given above. See that the ampltude of the curve goes on increasing as $(\frac{\pi}{2},\frac{5\pi}{2}...)$
This proves that if $x \in [0,2\pi]$, the function $xsinx$ can attain a value $=1$ only at two instances i.e on the +ve half of the first wave. Hence we are done .
This is a lot handwavy still gives us a correct answer I guess.


Here is the plot of f(x) = $x \sin(x) - 1$ for $0\le x \le 2\pi $.
If $f(a)f(c)\lt0$ there must be at least one root between $a$ and $c$ but there could be more!
Also if $f(a)f(c)\gt0$, it does not mean that there is no root between $a$ and $c$. In fact, you could have infinite number of roots there. There is no simple way to tell the number roots in general case.
In this particular case it is obvious that $x\sin(x) \le 0$ for $\pi \le x \le 2\pi$ so there's no root there.
For $0 \le x \le \pi$, the function $x\sin(x)$ goes from zero to zero and passes through $\pi/2$ for $x=\pi/2$. It means that the graph of the functon $x\sin(x)$ must cross line $y=1$ at least twice so you have at least two roots in this region.