I have a integro-differential equation of the form $y'(t) = - \int_0^t {y(t_1 )} e^{t_1 - t} dt_1, {\rm{ t}} \in {\rm{[0,10], y(0) = 1}}$
My code is:
f[t_Real] := NIntegrate[y[t1]*Exp[t1-t], {t1, 0, t}];
solution1=NDSolve[{D[y[t], t]==-f[t], y[0] == 1}, y[t], {t, 0, 10}];
Plot[Evaluate[y[t] /. solution1], {t, 0, 10}, PlotRange -> All]
But this simply outputs the error:
NIntegrate::nlim: t1 = t is not a valid limit of integration.
NDSolve[]
. $\endgroup$NIntegrate::inumr
(because of the symbolicy[t1]
in the integral. You probably had a hidden definitionf[t_] := NIntegrate[..]
that you had not cleared. It's a good idea to restart the kernel and retry your code before posting. $\endgroup$