Question:hard

Find the value of \(\displaystyle\int_{-1}^{3/2}|x\sin\pi x|\,dx\).

Show Hint

Check the sign of x sin(pi x) separately on (-1,1) and (1,3/2) before removing the modulus.
Updated On: Sep 22, 2026
Show Solution

Solution and Explanation

Step 1: Using symmetry of the function:
Check that $f(x)=x\sin\pi x$ is even: replacing $x$ by $-x$ gives $(-x)\sin(-\pi x)=(-x)(-\sin\pi x)=x\sin\pi x=f(x)$.
So the graph of $f$ is symmetric about the y-axis, which means $\displaystyle\int_{-1}^{0}|f(x)|\,dx=\int_{0}^{1}|f(x)|\,dx$.

Step 2: Checking sign by sample points:
At $x=0.5$: $\sin(0.5\pi)=1>0$ and $x>0$, so $f>0$ on $(0,1)$.
At $x=1.25$: $\sin(1.25\pi)<0$ and $x>0$, so $f<0$ on $(1,1.5)$.
So the given integral equals $\displaystyle 2\int_{0}^{1}x\sin\pi x\,dx-\int_{1}^{3/2}x\sin\pi x\,dx$.

Step 3: Evaluating the two pieces:
By parts, $\int x\sin\pi x\,dx=-\dfrac{x\cos\pi x}{\pi}+\dfrac{\sin\pi x}{\pi^2}$.
\[ \int_{0}^{1}x\sin\pi x\,dx=\left[-\dfrac{x\cos\pi x}{\pi}+\dfrac{\sin\pi x}{\pi^2}\right]_0^1=\dfrac{1}{\pi} \]
\[ \int_{1}^{3/2}x\sin\pi x\,dx=-\dfrac{1}{\pi^2}-\dfrac{1}{\pi} \]

Step 4: Combining the results:
\[ I=2\left(\dfrac{1}{\pi}\right)-\left(-\dfrac{1}{\pi^2}-\dfrac{1}{\pi}\right)=\dfrac{2}{\pi}+\dfrac{1}{\pi^2}+\dfrac{1}{\pi}=\dfrac{3\pi+1}{\pi^2} \]

Final Answer:
The symmetry method gives the same result as the direct sign-check split.
\[ \boxed{I=\dfrac{3\pi+1}{\pi^2}} \]
Was this answer helpful?
0