We start with the functional equation
f(x)=x+∫0π/2sinxcosyf(y)dy.
The variable of integration is y, so for the whole integral the factor sinx behaves like a constant. Hence
f(x)=x+sinx∫0π/2cosyf(y)dy.
This expression shows that f(x) must be a sum of a term proportional to x and a term proportional to sinx. Guided by this observation, we assume
f(x)=x+Asinx,
where A is a constant to be determined. Now we substitute this trial form into the integral.
First we compute the integral
I=∫0π/2cosyf(y)dy=∫0π/2cosy(y+Asiny)dy.
We split the integral into two simpler parts.
Part 1:
I1=∫0π/2ycosydy.
Using integration by parts, with u=y and dv=cosydy, we have du=dy and v=siny. Therefore
I1=ysiny0π/2−∫0π/2sinydy</p><p>=2π⋅1−(−cosy)0π/2</p><p>=2π−[−cos(2π)+cos(0)]</p><p>=2π−[0−1]</p><p>=2π−1.
Part 2:
I2=A∫0π/2cosysinydy.
Using the substitution u=siny,du=cosydy, we get
I2=A∫0π/2udu=A[2u2]0π/2</p><p>=A[2sin2y]0π/2</p><p>=A[212−0]</p><p>=2A.
Combining the two parts,
I=I1+I2=(2π−1)+2A.
Returning to the expression for f(x), we substitute this value of I:
f(x)=x+sinx(2π−1+2A).
But from our assumed form f(x)=x+Asinx. Since the expression must hold for every x, the coefficients of sinx must be equal. Thus
A=2π−1+2A.
We now solve this simple linear equation for A. First bring like terms together:
A−2A=2π−1.
The left side simplifies to 2A, so
2A=2π−1.
Multiplying both sides by 2 gives
A=π−2.
Finally, substituting A=π−2 into our trial form yields
f(x)=x+(π−2)sinx.
This matches Option D in the list.
Hence, the correct answer is Option D.