I tried to solve this integral but i was not able to get an answer. I tried foiling the integrand and go from there but was not able to succeed.

Find integral

integral from 0 to pi (xsinx+cosx)(xcosx+sinx)dx

THey gave me a hint

Hint: sinxcosx= 1/2sin2x

So far i just foiled and got the following for the integrand:

x^2sinxcosx + xsin^2x+ xcos^2x + cosxsinx dx