I am solving the following differential equation for different values of a and n:
$\qquad y'=- \lambda (y^2-Y_{eq}^2)$
where
$\qquad Y_{eq}(x)=1/\pi^2 \int_0^\infty y^2/[\exp(\sqrt{x^2+y^2})+1]dy$
and
$\qquad \lambda=10^{9+a} x^{-n-2}$
for $a\in\{-2,0,2\}$ and $n\in\{0,1,2\}$. Initial condition is $y(1)=0.001$.
My code is the following:
Yeq[x_] := Integrate[1/π^2 y^2/(Exp[Sqrt[x^2 + y^2]] + 1), {y, 0, Infinity}];
Table[
NDSolve[
{y'[x] == -10^(9 + a) x^(-n - 2) (y[x]^2 - Yeq[x]^2),
y[1] == 0.001},
y, {x, 1, 100}],
{n, {0, 1, 2}}, {a, {-2, 0, 2}}];
How can I get plotted solutions?
y
under integral since it is integrated over{y, 0, Infinity}
. Therefore we can solve ODE, and not integrodifferential equation. Is it correct? $\endgroup$