We have the integral
I=∫0af(x)g(x)dx.
The question tells us two important facts:
f(x)=f(a−x)andg(x)+g(a−x)=4.
Because f and g are continuous on [0,a], we are allowed to perform a change of variable without worrying about points of discontinuity.
Now, in the integral I, let us make the substitution
x=a−t.
Then dx=−dt. When x=0, we have t=a, and when x=a, we have t=0. Reversing the limits will remove the minus sign. Explicitly:
I=∫x=0x=af(x)g(x)dx=∫t=at=0f(a−t)g(a−t)(−dt)=∫t=0t=af(a−t)g(a−t)dt.
Because f(x)=f(a−x), we can replace f(a−t) by f(t):
I=∫0af(t)g(a−t)dt.
The symbol of integration is a dummy variable, so we may rename t back to x for ease of comparison:
I=∫0af(x)g(a−x)dx.
We now have two perfectly valid expressions for I:
I=∫0af(x)g(x)dxandI=∫0af(x)g(a−x)dx.
Adding these two equal quantities term-by-term, we obtain
2I=∫0af(x)g(x)dx+∫0af(x)g(a−x)dx=∫0af(x)[g(x)+g(a−x)]dx.
But the problem states that
g(x)+g(a−x)=4.
Substituting this constant into the integrand gives
2I=∫0af(x)(4)dx=4∫0af(x)dx.
Finally, dividing both sides by 2 yields
I=2∫0af(x)dx.
Thus the value of ∫0af(x)g(x)dx is exactly twice the value of ∫0af(x)dx.
Hence, the correct answer is Option D.