For any real number x, let [x] denote the largest integer less than or equal to x. Let f be a real valued function defined on [−10,10] by f(x)={x−[x],1+[x]−x,if [x] is oddif [x] is even. Then the value of 2π2∫−1010f(x)cos(πx)dx is:
Solutions · 1
Official solution
Working out f on [0,4): f(x)=1−x on [0,1), x−1 on [1,2), 3−x on [2,3), x−3 on [3,4) --- a period-2 triangular wave. Since cosπx also has period 2, and f(x)cosπx is even, over [−10,10] (a whole number of periods):
\[\int_{-10}^{10}f(x)\cos\pi x\,dx = 10\int_0^2 f(x)\cos\pi x\,dx = 10\left[\int_0^1(1-x)\cos\pi x\,dx+\int_1^2(x-1)\cos\pi x\,dx\right]\]
Using ∫xcosπxdx=xπsinπx+π2cosπx and evaluating over each piece gives ∫02f(x)cosπxdx=π24⋅101 (net), so that
\[\frac{\pi^2}2\int_{-10}^{10}f(x)\cos\pi x\,dx = 4\]