I try to solve integro-differential equation for a function of two variables, where the initial conditions are given with f[s,s]==1. Mathematica does not like such an initial condition, as I get an error "The arguments should be ordered consistently". How can I solve this?
This is my code:
omega = 1;
g = 1;
alpha[t_, s_] := Exp[-(t - s)];
fsol = NDSolveValue[{D[f[t, s],
t] == (I*omega + g^2*Integrate[alpha[t, s]*f[t, s], {s, 0, t}])*
f[t, s], f[s, s] == 1}, f, {t, 0, 10}, {s, 0, 10}]
f[t, s]
and alsof[s, s]
at same time. What does this mean as initial conditions? $\endgroup$DirichletCondition[f[t, s] == 1, t == s]
? Or rotate the coordinate system by 45 degrees (thinking oft
ands
formally as spatial coordinates), so that $t=s$ becomes $t'=0$? $\endgroup$