∫ xcos^2xdx =∫ x(1+cos2x/2)dx =1/2∫ xdx+1/2∫xcos2xdx =x²/4+1/4∫xdsin2x =x²/4+1/4*xsin2x-1/4∫sin2xdx =x²/4+1/4*xsin2x-1/8∫sin2xd2x =x²/4+1/4*xsin2x+1/8*cos2x+C