(1) Select u and v considering LIATE:

u=x2v=sinxu=2xv=cosxuvoriginaluvfinal

(2) Apply IBP formula uvuv:

uvuvx2(cosx)2x(cosx)dxx2cosx+2xcosxdx(Exp. A)

(3) Select another u=x and v=cosx and do IBP again:

xcosxxsinxsinxdxxsinx+cosx+C

(4) Put all together in (A):

x2cosx+2(xsinx+cosx+C)x2cosx+2xsinx+2cosx+C(Note B)

Note B: We can change notation 2C to C because the value of C is arbitrary.