f(x)=ex+∫01(y+xex)f(y)dy
Splitting the integral:
f(x)=ex+∫01yf(y)dy+xex∫01f(y)dy
Let A=∫01yf(y)dy and B=∫01f(y)dy
⇒f(x)=(1+Bx)ex+A
At x=0: f(0)=1+A
Now compute B using the expression for f(y):
B=∫01[(1+By)ey+A]dy
B=∫01eydy+B∫01yeydy+∫01Ady
Evaluating each integral:
∫01eydy=e−1
∫01yeydy=[yey]01−∫01eydy=e−(e−1)=1
∫01Ady=A
⇒B=(e−1)+B(1)+A
⇒0=e−1+A
⇒A=1−e
f(0)=1+A=1+(1−e)=2−e
e+f(0)=e+(2−e)=2
Answer: 2