I want to solve these differential equations and want to get the value of 'a1'. I used this code given below but it is not showing any result. If anyone can resolve this will be appreciated.
wm = 1;
G1 = 0.005;
delc = 1;
ka = 0.1;
E0 = 0.4;
gma1 = 0.5;
g0 = 1;
kd = 0.2;
del0 = 1;
N1 = 1;
NDSolve[{q1'[t] - wm*p1[t] == 0,
p1'[t] + wm*q1[t] - G1*Abs[a1[t]]^2 + gma1*p1[t] == 0,
a1'[t] + (I*delc + ka)*a1[t] - I*G1*a1[t]*q1[t] - E0 + I*g0*s1[t] ==
0, s1'[t] + (kd - I*del0/2*N1)*s1[t] - I*g0*a1[t]*N1 == 0,
q1[0] == 0, p1[0] == 0, a1[0] == 1, s1[0] == 0}, {q1, p1, a1,
s1}, {t, 0, 100}]
Show[a1[t]]
here 'Abs' is used for, dagger of a[t] multiply with a[t].
NDSolve::underdet "There are more dependent variables, {a1[t],p1[t],q[t],q1[t],s1[t]}, \ than equations, so the system is underdetermined"
$\endgroup$q[t]
. Maybe it should beq1[t]
? $\endgroup$