I was trying to solve a system of differential equations in Mathematica and had troubles understanding what the solution looked like. So I wanted help to unpack it.
I had a system of two coupled differential equations y1[x] , y2[x]
and the solution Mathematica spits out is the following
{{y2 -> Function[{x},
C[1] InverseFunction[
Inactive[Integrate][
1/((Conjugate[K[1]] - C[1] Conjugate[C[1] K[1]]) K[1]^2), {K[
1], 1, #1}] &][-((I x α)/ℏ) + C[2]]],
y1 -> Function[{x},
InverseFunction[
Inactive[Integrate][
1/((Conjugate[K[1]] - C[1] Conjugate[C[1] K[1]]) K[1]^2), {K[
1], 1, #1}] &][-((I x α)/ℏ) + C[2]]]}}
I do not understand function, inverse function, and inactive integrate methods. I was wondering how can I understand the solutions qualitatively and quantitatively.
EDIT : The original code about the two differential equations :
eq1 = I*ℏ*
D[y1[x], x] - α*(Conjugate[y1[x]]*y1[x] - Conjugate[y2[x]]*y2[x])*
y1[x]
eq2 = I*ℏ*
D[y2[x], x] - α*(Conjugate[y1[x]]*y1[x] - Conjugate[y2[x]]*y2[x])*
y2[x]
eqns = {eq1 == 0, eq2 == 0};
eq1 = I*\[HBar]*D[y1[x], x] - \[Alpha]*(Abs[y1[x]]^2 - Abs[y2[x]]^2)* y1[x] eq2 = I*\[HBar]*D[y2[x], x] - \[Alpha]*(Abs[y1[x]]^2 - Abs[y2[x]]^2)* y2[x]
throughAbs
, then the solutions are $\endgroup${{y2[x] -> C[1] InverseFunction[ Inactive[Integrate][ 1/((Abs[K[1]] - Abs[C[1] K[1]]) (Abs[K[1]] + Abs[C[1] K[1]]) K[1]), {K[1], 1, #1}] &][-(( I x \[Alpha])/\[HBar]) + C[2]], y1[x] -> InverseFunction[ Inactive[Integrate][ 1/((Abs[K[1]] - Abs[C[1] K[1]]) (Abs[K[1]] + Abs[C[1] K[1]]) K[ 1]), {K[1], 1, #1}] &][-((I x \[Alpha])/\[HBar]) + C[2]]}}
$\endgroup$ParametricNDSolve
. $\endgroup$DSolve
often has to integrate (obviously) an equation. Sometimes the integral cannot be solved. So it ends up with an equation $F(x,y)=0$ in terms of an integral that is inactivated because it couldn’t be solved. NextDSolve
tries to solve for $y$. If the equation is of the form $x = f(y)$, we get $y = f^{-1}(x)$. If $f^{-1}$ cannot be computed (usually can’t when it involves an inactive integral), we $y$ in terms of an inverse function. $\endgroup$