Let f(x) = |x cos π x|
Substituting x = -x in f(x)

Now,
f(x) = |x cosπx| = x cosπx; for x ∈ [0,1/2]
= – x cosπx; for x [1/2,1]
Using interval addition property of integration, we know that

Putting the limits in above equation
= 2{[(x/π)sin x + (1/π2)cosπx]0 1/2 – [(x/π sin x + (1/π2)cosπx]1 1/2}
= 2{[(1/2π) – (1/π2)] – [( – 1/π2) – (1/2π)]}
= 2/π