The integral of ∣xcosπx∣ from −2 to 2 is evaluated by exploiting even symmetry and splitting the positive region at the zeros of cosπx. The final value is π8.
The key idea here is symmetry and the absolute value. The function ∣xcosπx∣ is even because ∣(−x)cos(−πx)∣=∣−xcosπx∣=∣xcosπx∣. So we can integrate from 0 to 2 and double the result. But the absolute value also means we have to handle where cosπx changes sign — those are the points where the integrand would otherwise be negative, so the absolute value flips the sign there.
The zeros of cosπx occur when πx=2π+nπ, i.e., x=21+n. Over [0,2], these are at x=21 and x=23. Between these zeros, cosπx alternates sign, so the absolute value makes each piece positive. We'll integrate piecewise.
- Use evenness to reduce the interval.
Since the integrand is even:
I=∫−22∣xcosπx∣dx=2∫02∣xcosπx∣dx.
-
Identify the sign changes of cosπx on [0,2].
cosπx=0 at x=21 and x=23.
- On [0,21]: cosπx≥0, so ∣xcosπx∣=xcosπx.
- On [21,23]: cosπx≤0, so ∣xcosπx∣=−xcosπx.
- On [23,2]: cosπx≥0, so ∣xcosπx∣=xcosπx.
Thus:
I=2(∫01/2xcosπxdx+∫1/23/2(−xcosπx)dx+∫3/22xcosπxdx).
- Compute the antiderivative.
Use integration by parts: let u=x, dv=cosπxdx, so du=dx, v=πsinπx. Then:
∫xcosπxdx=πxsinπx−∫πsinπxdx=πxsinπx+π2cosπx.
- Evaluate each piece.
∫01/2xcosπxdx=[πxsinπx+π2cosπx]01/2.
At $x = 1/2$: $\sin(\pi/2) = 1$, $\cos(\pi/2) = 0$, so value = $\frac{(1/2)(1)}{\pi} + 0 = \frac{1}{2\pi}$.
At $x = 0$: $\sin 0 = 0$, $\cos 0 = 1$, so value = $0 + \frac{1}{\pi^2}$.
Thus first piece = $\frac{1}{2\pi} - \frac{1}{\pi^2}$.
- Second piece (note the minus sign outside):
∫1/23/2(−xcosπx)dx=−[πxsinπx+π2cosπx]1/23/2.
At $x = 3/2$: $\sin(3\pi/2) = -1$, $\cos(3\pi/2) = 0$, so value = $\frac{(3/2)(-1)}{\pi} + 0 = -\frac{3}{2\pi}$.
At $x = 1/2$: value = $\frac{1}{2\pi}$ (as above).
So the bracket $[F]_{1/2}^{3/2} = \left(-\frac{3}{2\pi}\right) - \left(\frac{1}{2\pi}\right) = -\frac{4}{2\pi} = -\frac{2}{\pi}$.
Then the second piece = $-(-\frac{2}{\pi}) = \frac{2}{\pi}$.
∫3/22xcosπxdx=[πxsinπx+π2cosπx]3/22.
At $x = 2$: $\sin 2\pi = 0$, $\cos 2\pi = 1$, so value = $0 + \frac{1}{\pi^2}$.
At $x = 3/2$: value = $-\frac{3}{2\pi}$ (from above).
So third piece = $\left(\frac{1}{\pi^2}\right) - \left(-\frac{3}{2\pi}\right) = \frac{1}{\pi^2} + \frac{3}{2\pi}$.
5. Sum the three pieces inside the bracket.
(2π1−π21)+π2+(π21+2π3)=(2π1+π2+2π3)+(−π21+π21).
The π21 terms cancel. The π1 terms: 21+2+23=21+24+23=28=4, so sum = π4.
- Multiply by the factor of 2 from evenness.
I=2×π4=π8.
A common mistake is to forget the absolute value and integrate xcosπx directly from −2 to 2, which gives zero because the integrand is odd. The absolute value breaks the odd symmetry and makes the integral positive.
You could also note that the integral from 0 to 2 of ∣xcosπx∣ is the same as the integral of x∣cosπx∣ since x≥0 there. Then the pattern of ∣cosπx∣ is periodic with period 1, and the integral reduces to a sum over half-periods — but the piecewise method above is just as clean.
✓Final answer
The value is π8, which corresponds to option (A).