Given: f′(x)+f(x)=∫02f(t)dt, f(0)=e−2.
Let K=∫02f(t)dt (a constant). The ODE becomes:
f′(x)+f(x)=K
This is a first-order linear ODE with integrating factor ex:
dxd(exf(x))=Kex
exf(x)=Kex+C
f(x)=K+Ce−x
Using f(0)=e−2,
K+C=e−2…(1)
Using the integral condition,
K=∫02(K+Ce−t)dt=2K+C[−e−t]02=2K+C(1−e−2)
−K=C(1−e−2)
K=−C(1−e−2)=C(e−2−1)…(2)
Substituting (2) into (1):
C(e−2−1)+C=e−2
Ce−2=e−2
C=1
From (2): K=e−2−1
So f(x)=(e−2−1)+e−x
Computing the required value,
f(0)=e−2−1+1=e−2✓
f(2)=e−2−1+e−2=2e−2−1
2f(0)−f(2)=2e−2−(2e−2−1)=1
Therefore, 2f(0)−f(2)=1.