ok, here it is how i would argue about showing the validity of that inequality using calculus.
Lets define the following function:
f(x)=xcosx-sinx,\forall x \in \left(0,\pi \right)
NOw,
f'(x)=cosx-xsinx-cosx=-xsinx
Now let's find the critical numbers
f'(x)=0=>xsinx=0=>x=0,and,x=k\pi
But, notice that none of these numbers are in the domain of our function, so it means that f, has no cr numbers at all.
THis actually means also that f'(x) does not change sign at all on the given interval, so it is sufficient to plug in any value from the interval (0,pi) to determine the sign of f' on the whole interval, that is let x=\frac{\pi}{2}
SO:
f'(x)=\frac{\pi}{2}sin\frac{\pi}{2}=-\frac{\pi}{2}<0
THis means that our function is decreasing on the given interval. Now from this information we know that:
f(0)>f(0+\epsilon),\epsilon>0,\epsilon\to\ 0, \epsilon \in (0,\pi]
Hence,
f(0)=0*cos(0)-sin(0)=0 it means that
f(x)<0,\forall x \in (0,\pi)
so:
f(x)=xcosx-sinx<0=>xcosx<sinx