I am trying to solve the following differential equation
$$ \left( \frac{d u}{d \phi} \right)^{2} = Q u^{3} + P u^{2} + c $$
For this, I wrote it as
$$ \left( \frac{d u}{d \phi} \right)^{2} = Q u^{3} + P u^{2} + c = Q (u - \alpha) (u - \beta) (u - \gamma)$$
where
$$ \alpha + \beta + \gamma = - \frac{P}{Q} $$
$$ \alpha \gamma + \beta \gamma + \alpha \beta = 0 $$
$$ \alpha \beta \gamma = - \frac{c}{Q} $$
From now on, I took $\alpha > \beta \geq u \geq \gamma > 0 $. Therefore, the differential equation reduces to
$$ \int \frac{du}{\sqrt{ Q (u - \alpha) (u - \beta) (u - \gamma) }} = \int \phi $$
Which is equivalent to writing
$$ 1 = \int \frac{du}{\sqrt{ Q \phi (u - \alpha) (u - \beta) (u - \gamma) }} $$
For convenience I put the $\phi$ inside the integral since it is a constant. I hope to obtain a solution expressed in elliptic functions. However, I must first know $\alpha$, $\beta$ and $\gamma$. I solved the system of equations using:
Solve[{\[Alpha] + \[Beta] + \[Gamma] == -(P/
Q), \[Alpha]*\[Gamma] + \[Beta]*\[Gamma] + \[Alpha]*\[Beta] ==
0, \[Alpha]*\[Beta]*\[Gamma] == -(c/
Q)}, {\[Alpha], \[Beta], \[Gamma]}];
where from:
However, when I try to integrate with the following code, I cannot understand the solution obtained. Is there an error? Or how should I proceed?
Assuming[\[Alpha] > \[Beta] > \[Gamma],
Integrate[1/Sqrt[
Q^2*\[Phi]*(u - \[Alpha])*(u - \[Beta])*(u - \[Gamma])], u] //
Simplify]
Could someone guide me or correct any errors? Thanks in advance :)
DSolve
directly on the original ode and let Mathematica do all the work? Or are you trying to compare your result with what Mathematica gave? $\endgroup$//ToRadicals
and you will it. Screen shot i.sstatic.net/mLCBqMJD.png $\endgroup$IncludeSingularSolutions -> True
to theDSolve
command. you'll find some of the singular solutions to be real. $\endgroup$