To find the value of the given expression, let us first analyze the properties of the function f(x).
The function f(x) is defined on [−10,10] as:
f(x)={x−[x]1+[x]−xif [x] is oddif [x] is even
Step 1: Periodicity and Symmetry of f(x)
Let us examine the behavior of f(x) for different intervals of x:
- For x∈[0,1), [x]=0 (even):
f(x)=1+0−x=1−x
- For x∈[1,2), [x]=1 (odd):
f(x)=x−1
Now consider f(x+2):
- If [x] is even, then [x+2]=[x]+2 is also even:
f(x+2)=1+[x+2]−(x+2)=1+[x]+2−x−2=1+[x]−x=f(x)
- If [x] is odd, then [x+2]=[x]+2 is also odd:
f(x+2)=(x+2)−[x+2]=x+2−([x]+2)=x−[x]=f(x)
Thus, f(x) is a periodic function with fundamental period T=2.
Next, let us check for symmetry:
- For x∈(0,1), −x∈(−1,0) where [−x]=−1 (odd):
f(−x)=−x−[−x]=−x−(−1)=1−x=f(x)
Hence, f(x) is an even function.
Step 2: Simplifying the Integral
The integrand is g(x)=f(x)cos(πx).
Since cos(π(x+2))=cos(πx+2π)=cos(πx), the function cos(πx) also has a period of 2. Therefore, the product f(x)cos(πx) is periodic with period T=2.
The interval of integration is [−10,10], which has a total length of 20=10×2 (representing 10 full periods).
Using the property of periodic functions:
∫−1010f(x)cos(πx)dx=10∫02f(x)cos(πx)dx
Step 3: Evaluating the Integral over One Period
We split the integral ∫02f(x)cos(πx)dx into two parts:
∫02f(x)cos(πx)dx=∫01(1−x)cos(πx)dx+∫12(x−1)cos(πx)dx
For the second integral, substitute u=x−1⟹dx=du:
∫12(x−1)cos(πx)dx=∫01ucos(π(u+1))du=∫01u(−cos(πu))du=−∫01xcos(πx)dx
Combining the two integrals:
∫02f(x)cos(πx)dx=∫01(1−x)cos(πx)dx−∫01xcos(πx)dx=∫01(1−2x)cos(πx)dx
Step 4: Integration by Parts
We integrate by parts by setting:
- u=1−2x⟹du=−2dx
- dv=cos(πx)dx⟹v=πsin(πx)
∫01(1−2x)cos(πx)dx=[(1−2x)πsin(πx)]01−∫01(−2)πsin(πx)dx
Since sin(0)=sin(π)=0, the boundary term evaluates to zero:
=0+π2∫01sin(πx)dx=π2[−πcos(πx)]01
=π22(−cos(π)+cos(0))=π22(−(−1)+1)=π24
Step 5: Final Calculation
Substituting back into the original expression:
10π2∫−1010f(x)cos(πx)dx=10π2(10∫02f(x)cos(πx)dx)=π2(π24)=4