The function xsin(πx) is even. It is nonnegative on [−1, 1] and nonpositive on [1, 3/2]. Therefore the required integral is
2π2∫01xsin(πx)dx−π2∫123xsin(πx)dx.
Integration by parts gives an antiderivative of π2xsin(πx):F(x)=−πxcos(πx)+sin(πx). Its relevant values are F(0)=0,F(1)=π and F(23)=−1.
Thus the integral is 2[F(1)−F(0)]−[F(23)−F(1)]=2π−(−1−π)=1+3π, option (1).