I didn't understand your substitution of u = x dv = secx.
It wasn't a substitution, it was by parts ∫udv=uv−∫vdu (where u and v are functions of x).
That said, mathematica gave me an answer that cannot be expressed in elementary functions, so I suspect something is wrong with the question... (if a DE, check your working up to coming to having to integrate xsecx...)
this question is doable by parts the hard part is to integrate sec x. the reason why its very hard to integrate it is because its so hard that it is actually provided in (at least for mine) the official formula list. just for refernce to all, integration of sec x is ln |sec x + tan x |