I am trying to solve an ODE having a term of integration of an interpolating function multiplied by the variable, as shown below. However, I get the following error:
Integrate::ilim: Invalid integration variable or limit(s) in {0.,0,4}.
Code:
data = Table[{x, x + Sin[2 Pi x]}, {x, 0, 4.82, 0.1}];
f = Interpolation[data];
NDSolve[{Integrate[f[x]*ϕ[x], {x, 0, 4}] + ϕ'[x] == 1, ϕ[0] == 0}, ϕ, {x, 0, 4}]
Thanks for your help in anticipation.