We are given the functional equation:
f(x)+f(x+k)=n
This equation implies that the function is periodic. To prove this, we consider the equation at two different points.
Since both expressions equal
n, we can equate them:
f(x)+f(x+k)=f(x+k)+f(x+2k)
By subtracting
f(x+k) from both sides, we arrive at the fundamental property:
f(x)=f(x+2k)
To understand the behavior of the function, we evaluate the integral over one full period,
2k:
∫02kf(x)dx=∫0kf(x)dx+∫k2kf(x)dx
For the second integral, we use the substitution
x=t+k, which implies
dx=dt. The limits change from
[k,2k] to
[0,k]:
∫k2kf(x)dx=∫0kf(t+k)dt
Combining these, we get:
∫02kf(x)dx=∫0k[f(x)+f(x+k)]dx
Since
f(x)+f(x+k)=n, the integral simplifies to:
∫02kf(x)dx=∫0kndx=nk
Next, we calculate
I2=∫−k3kf(x)dx. The interval length is
3k−(−k)=4k, which is exactly two periods.
I2=2×(nk)=2nk
We evaluate the expression
I1+nI2:
I1+nI2=2n2k+n(2nk)