Write the integrand in a simpler form:
π2xsin(πx)=π2∣xsin(πx)∣
Hence
I=∫−13/2π2xsin(πx)dx=π2∫−13/2∣xsin(πx)∣dx
First locate the points where xsin(πx)=0 inside [−1,3/2].
Zeros occur when x=0 or sin(πx)=0(⇒x=integer).
Thus the critical points are x=−1,0,1.
Check the sign of f(x)=xsin(πx) on each sub-interval:
- (−1,0): choose x=−21 ⇒ f(x)=(−21)sin(−2π)=(−21)(−1)>0
- (0,1): choose x=21 ⇒ f(x)=(21)sin(2π)=(21)(1)>0
- (1,3/2): choose x=23 ⇒ f(x)=(23)sin(23π)=(23)(−1)<0
Thus
Case 1: x∈[−1,1]⇒∣f(x)∣=f(x)
Case 2: x∈[1,3/2]⇒∣f(x)∣=−f(x)
Split the integral accordingly:
I=π2[∫−11xsin(πx)dx−∫13/2xsin(πx)dx]
Find an antiderivative of xsin(πx) using integration by parts.
Let u=x,dv=sin(πx)dx.
Then du=dx,v=−πcos(πx).
∫xsin(πx)dx=−πxcos(πx)+π2sin(πx) −(1)
Integral over [−1,1]
Using (1):
F(x)=−πxcos(πx)+π2sin(πx)
∫−11xsin(πx)dx=F(1)−F(−1)=[−π1⋅(−1)+0]−[−π(−1)⋅(−1)+0]=π1−(−π1)=π2
Integral over [1,3/2]
∫13/2xsin(πx)dx=F(23)−F(1)=[0−π21]−π1=−(π1+π21)
Now compute I:
I=π2[π2−(−π1−π21)]=π2[π2+π1+π21]=π2[π3+π21]=3π+1
Therefore, ∫−13/2π2xsin(πx)dx=1+3π.
Option C is correct.