

In their working out I understand for the numerator 2+cosx=3 as cosx is less than equal to 1 but in the denominator I don't understand how they got from 3 square root x-x squared sinx all the way upto 2 square root x, I don't understand any of the steps that they have done in the denominator.
Any help would be much appreciated.

The first thing to note is that for $x\in (0,1)$ we have $0<\sin x<1$ so $0<x^2\sin x<x^2$ and therefore $3\sqrt x-x^2\sin x > 3\sqrt x - x^2$.
The next things to note is that for $x\in (0,1)$ we have $\sqrt x >x > x^2 $ and therefore $3\sqrt x - x^2 > 3\sqrt x - \sqrt x = 2\sqrt x$.
So we have $3\sqrt x-x^2\sin x > 2\sqrt x$ as wished.