If the value of ∫−22 |xcosπx|dx=k/π then the value of k is
4
8
12
none of these
Since the integrand is an even function so required integral is equal to 2∫02 |xcosπx|dx
=2∫01/2 xcosπxdx−∫1/23/2 xcosπxdx+∫3/22 xcosπxdx=2xsinπxπ+cosπxπ201/2−xsinπxπ+cosπxπ21/23/2+xsinπxπ+cosπxπ2y22
=212π−1π2−−32π−12π+1π2−−32π=8π