I am trying to solve the following coupled differential equations: $\dot{c}_{1}(t)=-\int_0^t \alpha_{1}(t,s)c_{1}(s)+\beta_{1}(t,s)c_{2}(s)\,ds-\frac{i}{\hbar}\lambda c_2(t)e^{+i(\omega_1-\omega_2) t}$ $\dot{c}_{2}(t)=-\int_0^t \alpha_{2}(t,s)c_{2}(s)+\beta_{2}(t,s)c_{1}(s)\,ds-\frac{i}{\hbar}\lambda c_1(t)e^{-i(\omega_1-\omega_2) t}$
I developed a code that uses the finite difference method to solve the equations
$\dot{c}_{1}(t)=-\int_0^t \alpha_{1}(t,s)c_{1}(s)+\beta_{1}(t,s)c_{2}(s)\,ds$
$\dot{c}_{2}(t)=-\int_0^t \alpha_{2}(t,s)c_{2}(s)+\beta_{2}(t,s)c_{1}(s)\,ds$,
where $\alpha_1(t,s)=\frac{\sqrt{2}\pi^{\frac{3}{2}}g_{ab}^2\rho_0r_{01}^2e^{i\omega_{1}(t-s)}}{\hbar^2\left(r_{01}^2+\frac{i\hbar(t-s)}{m_b}\right)^{\frac{3}{2}}}$,
$\alpha_2(t,s)=\frac{\sqrt{2}\pi^{\frac{3}{2}}g_{ab}^2\rho_0r_{02}^2e^{i\omega_{2}(t-s)}}{\hbar^2\left(r_{02}^2+\frac{i\hbar(t-s)}{m_b}\right)^{\frac{3}{2}}}$,
$\beta_1(t,s)=\frac{4\pi^{\frac{3}{2}}g_{ab}^2\rho_0r_{01}r_{02}e^{i\omega_{1}(t-s)}m_b^{\frac{3}{2}}e^{i(\omega_1-\omega_2)s}e^{-\frac{\Delta r_c^2m_b}{m_b\left(r_{01}^2+r_{02}^2\right)+2i(t-s)\hbar}}}{{\hbar^2\left(m_b\left(r_{01}^2+r_{02}^2\right)+2i(t-s)\hbar\right)^{\frac{5}{2}}}}$
and $\beta_2(t,s)=\frac{4\pi^{\frac{3}{2}}g_{ab}^2\rho_0r_{01}r_{02}e^{i\omega_{2}(t-s)}m_b^{\frac{3}{2}}e^{-i(\omega_1-\omega_2)s}e^{-\frac{\Delta r_c^2m_b}{m_b\left(r_{01}^2+r_{02}^2\right)+2i(t-s)\hbar}}}{{\hbar^2\left(m_b\left(r_{01}^2+r_{02}^2\right)+2i(t-s)\hbar\right)^{\frac{5}{2}}}}$
but I am unsure how to extend this to include the $-\frac{i}{\hbar}\lambda c_{12}(t)e^{+-i(\omega_1-\omega_2) t}$ factors (lambda is just a constant). My code to solve the first part of the equations is as follows.
Clear[gab, \[Rho]0, \[HBar], mb, r01, r02, drc, \[Omega]1, \[Omega]2, \
\[Omega]]
drc = 2*r01;
\[HBar] = 1;
\[Omega]1 = 50;
\[Omega]2 = 55;
\[Omega] = (\[Omega]1*\[Omega]2)/(\[Omega]1 + \[Omega]2);
gab = 1;
mb = 1;
ma = 1;
\[Rho]0 = 1;
r01 = Sqrt[(\[HBar])/(ma*\[Omega]1)];
r02 = Sqrt[(\[HBar])/(ma*\[Omega]2)];
\[Alpha]1[\[Tau]_] := (
Sqrt[2] E^(I (\[Tau]) \[Omega]1) gab^2 \[Pi]^(3/2)
r01^2 \[Rho]0)/(\[HBar]^2 (r01^2 + (I (\[Tau]) \[HBar])/mb)^(
3/2)) ;
\[Alpha]2[\[Tau]_] := (
Sqrt[2] E^(I (\[Tau]) \[Omega]2) gab^2 \[Pi]^(3/2)
r02^2 \[Rho]0)/(\[HBar]^2 (r02^2 + (I (\[Tau]) \[HBar])/mb)^(
3/2)) ;
\[Beta]1[\[Tau]_] := (4 E^(
I \[Omega]1 \[Tau] - (drc^2 mb)/(
mb (r01^2 + r02^2) + 2 I (\[Tau]) \[HBar])) gab^2 mb^(
3/2) \[Pi]^(3/2)
r01 r02 \[Rho]0 (-2 drc^2 mb + mb (r01^2 + r02^2) +
2 I (\[Tau]) \[HBar]))/(\[HBar]^2 (mb (r01^2 + r02^2) +
2 I (\[Tau]) \[HBar])^(5/2))
\[Beta]2[\[Tau]_] := (4 E^(
I \[Omega]2 \[Tau] - (drc^2 mb)/(
mb (r01^2 + r02^2) + 2 I (\[Tau]) \[HBar])) gab^2 mb^(
3/2) \[Pi]^(3/2)
r01 r02 \[Rho]0 (-2 drc^2 mb + mb (r01^2 + r02^2) +
2 I (\[Tau]) \[HBar]))/(\[HBar]^2 (mb (r01^2 + r02^2) +
2 I (\[Tau]) \[HBar])^(5/2))
dt = 0.015;
nsubint = 1000;
ds = dt/nsubint;
Clear[c1, c2];
c1[0] = 1;
c2[0] = 0;
dp = 30;
\[Lambda] = 10;
Clear[cTtab1, cTtab2];
Do[
corrSum1[n] =
Sum[c1[nn - 1]*
Sum[\[Alpha]1[n dt - m ds]*ds, {m, nsubint (nn - 1), nsubint nn ,
1}], {nn, 1, n}] +
Sum[c2[nn - 1]*
Sum[E^(I (\[Omega]1 - \[Omega]2) (m ds)) \[Beta]1[n dt - m ds]*
ds, {m, nsubint (nn - 1), nsubint nn , 1}], {nn, 1, n}];
corrSum2[n] =
Sum[c1[nn - 1]*
Sum[E^(I (\[Omega]2 - \[Omega]1) (m ds)) \[Beta]2[n dt - m ds]*
ds, {m, nsubint (nn - 1), nsubint nn , 1}], {nn, 1, n}] +
Sum[c2[nn - 1]*
Sum[\[Alpha]2[n dt - m ds]*ds, {m, nsubint (nn - 1), nsubint nn ,
1}], {nn, 1, n}];
c1[n] = c1[n - 1] - dt*corrSum1[n]-dt*I*\[Lambda]*c2[n - 1];
c2[n] = c2[n - 1] - dt*corrSum2[n]-dt*I*\[Lambda]*c1[n - 1], {n, 1, dp}]
cTtab1 = Table[{n*dt*\[Omega], Abs[c1[n]]^2}, {n, 0, dp}];
cTtab2 = Table[{n*dt*\[Omega], Abs[c2[n]]^2}, {n, 0, dp}];