Skip to content
Miscellaneous Examples · Example 41

Q.Evaluate ∫−13/2∣xsin⁡(πx)∣ dx\int_{-1}^{3/2} \left| x \sin(\pi x) \right|\, dx

Yanam CbseNCERTSubjective· 3mImportance★★★★★
70% · 261/373 Questions
🔒 Locked · start free trial →

You're viewing a preview — the full solution, concept, methods & PYQ mapping are locked.

Start your 14-day free trial to unlock the full solution →

Split by the sign of xsin⁡(πx)x\sin(\pi x) on [−1,32][-1,\tfrac32], integrate each piece by parts, and add. The value is 3π+1π2\dfrac{3}{\pi}+\dfrac{1}{\pi^2}.

Intuition

An absolute value can never be integrated with one formula across a sign change — ∣f∣|f| equals ff where f≥0f\ge 0 and −f-f where f≤0f\le 0. So the first job is to track the sign of xsin⁡(πx)x\sin(\pi x) across [−1,32][-1,\tfrac32].

Step 1 — Sign analysis

Look at the two factors on each subinterval (note sin⁡(πx)=0\sin(\pi x)=0 at the integers x=−1,0,1x=-1,0,1):

  • (−1,0)(-1,0): x<0x<0; and πx∈(−π,0)\pi x\in(-\pi,0) so sin⁡(πx)<0\sin(\pi x)<0. Negative ×\times negative == positive.
  • (0,1)(0,1): x>0x>0; and πx∈(0,π)\pi x\in(0,\pi) so sin⁡(πx)>0\sin(\pi x)>0. Positive.
  • (1,32)(1,\tfrac32): x>0x>0; and πx∈(π,3π2)\pi x\in(\pi,\tfrac{3\pi}{2}) so sin⁡(πx)<0\sin(\pi x)<0. Negative.

Therefore

∣xsin⁡πx∣={xsin⁡πx,−1≤x≤1,−xsin⁡πx,1≤x≤32.|x\sin\pi x|=\begin{cases}x\sin\pi x,&-1\le x\le 1,\\[2pt]-x\sin\pi x,&1\le x\le \tfrac32.\end{cases}

Step 2 — An antiderivative of xsin⁡(πx)x\sin(\pi x)

Integrate by parts with u=xu=x (so du=dxdu=dx) and dv=sin⁡(πx) dxdv=\sin(\pi x)\,dx (so v=−cos⁡πxπv=-\tfrac{\cos\pi x}{\pi}):

G(x)=∫xsin⁡(πx) dx=−xcos⁡πxπ+1π∫cos⁡πx dx=−xcos⁡πxπ+sin⁡πxπ2.G(x)=\int x\sin(\pi x)\,dx=-\frac{x\cos\pi x}{\pi}+\frac1\pi\int\cos\pi x\,dx=-\frac{x\cos\pi x}{\pi}+\frac{\sin\pi x}{\pi^2}.

Evaluate at the break points (using cos⁡(−π)=cos⁡π=−1\cos(-\pi)=\cos\pi=-1, cos⁡3π2=0\cos\tfrac{3\pi}{2}=0, sin⁡3π2=−1\sin\tfrac{3\pi}{2}=-1):

G(−1)=−(−1)(−1)π+0=−1π,G(0)=0,G(-1)=-\frac{(-1)(-1)}{\pi}+0=-\frac1\pi,\quad G(0)=0, …

Unlock everything free for 14 days

  • Full step-by-step solutions
  • Concept-first explanations
  • Methods, shortcuts & mistakes
  • PYQ mapping + timed mock tests

Full access for 14 days. No credit card required.