Show the worked solution\(x\sin x\ge0\) on \([0,\pi]\) and \(x\sin x\le0\) on \([\pi,2\pi]\). With \(\int x\sin x\,dx=\sin x-x\cos x\):\[\int_0^{\pi}x\sin x\,dx=\big[\sin x-x\cos x\big]_0^{\pi}=\pi,\]\[\int_{\pi}^{2\pi}(-x\sin x)\,dx=-\big[\sin x-x\cos x\big]_{\pi}^{2\pi}=-(-2\pi-\pi)=3\pi.\]So \(\int_0^{2\pi}|x\sin x|\,dx=\pi+3\pi=4\pi\), and \(k=4\).Answer: 4
GATE DA practice: past exam problems by chapter, with worked solutions · gatedaprep.com