I have successfully solved a system of integro-differential equations.
The system is
Eq1 = x1'[t] == (1 - 3/2*Exp[t]) x1[t] + 1/2 Exp[3*t] x2[t] +
Integrate[1/4 Exp[-t + 2*s - x1[s]^2] x1[s], {s, 0, t}];
Eq2 = x2'[t] == (-Exp[3*t]) x1[t] - 2 Exp[t] x2[t] +
Integrate[1/4 Exp[-t + 2*s - x2[s]^2] x2[s], {s, 0, t}]
Now following @J.M. comment, I convert the above system to a system of ODE's, like this,
nEq1 = x1'[t] == (1 - 3/2*Exp[t]) x1[t] + 1/2 Exp[3*t] x2[t] + Exp[-t]*x10[t]
nEq1x10 = x10'[t] == 1/4 Exp[2*t - x1[t]^2] x1[t]
nEq2 = x2'[t] == (-Exp[3*t]) x1[t] - 2 Exp[t] x2[t] + Exp[-t]*x20[t]
nEq2x20 = x20'[t] == 1/4 Exp[2*t - x2[t]^2]*x2[t]
With the initial conditions
ics = {x1[0] == 1, x10[0] == 0, x2[0] == 2, x20[0] == 0};
Now solving the converted system using NDSolve
sys = Join[{nEq1, nEq1x10, nEq2, nEq2x20}, ics];
sol = NDSolve[sys, {x1[t], x2[t]}, {t, 0, 4}];
Finally, plotting the results,
Plot[Evaluate[{x1[t], x2[t]} /. sol], {t, 0, 4}, PlotRange -> All]
My question is, how we can validate the solutions?
Eq1
, Eq2`? How did you calculate the ODE system? $\endgroup$NDSolve
is quite robust for solving IVP of ODE(s), so the result will be correct as long as the deduction of ODEs is correct. BTW you can deducex10'[t]
withD[Integrate[1/4 Exp[-t + 2*s - x2[s]^2] x2[s]/Exp[-t], {s, 0, t}] , t]
$\endgroup$