$$\int_{0}^{1}\left(2x\sin \frac{1}{x}-\cos \frac{1}{x}\right)dx$$
Am stuck in this question. Can't solve by applying any of the properties of definite integral. What should one do? By performing indefinite integration and then putting limits but that would be quite lengthy I guess.
Hint: set $$ f(x) = x^2\sin \frac1x $$ and find $f'(x)$.