2.6.4 Problem 4 (eq 50)

Solved as second order ode by reversing roles of dependent and independent variables
Solved as second order missing y ode
Maple
Mathematica
Sympy

Internal problem ID [18497]
Book : Elementary Differential Equations. By Thornton C. Fry. D Van Nostrand. NY. First Edition (1929)
Section : Chapter IV. Methods of solution: First order equations. section 33. Problems at page 91
Problem number : 4 (eq 50)
Date solved : Monday, March 31, 2025 at 05:37:44 PM
CAS classification : [[_2nd_order, _missing_x], [_2nd_order, _reducible, _mu_x_y1]]

Solved as second order ode by reversing roles of dependent and independent variables

Time used: 1.933 (sec)

Solve

\begin{align*} \phi ^{\prime \prime }&=\frac {4 \pi n c}{\sqrt {v_{0}^{2}+\frac {2 e \left (\phi -V_{0} \right )}{m}}} \end{align*}

reversing the roles of the dependent and independent variables, the ode becomes

\begin{align*} \frac {d^{2}}{d \phi ^{2}}x \left (\phi \right ) = -\frac {4 \pi n c \left (\frac {d}{d \phi }x \left (\phi \right )\right )^{3}}{\sqrt {-\frac {-v_{0}^{2} m +2 e V_{0} -2 e \phi }{m}}} \end{align*}

Which is now solved for \(x \left (\phi \right )\) instead for \(\phi \)

Solved as second order missing y ode

Time used: 1.299 (sec)

This is second order ode with missing dependent variable \(x\). Let

\begin{align*} u(\phi ) &= x^{\prime } \end{align*}

Then

\begin{align*} u'(\phi ) &= x^{\prime \prime } \end{align*}

Hence the ode becomes

\begin{align*} u^{\prime }\left (\phi \right )+\frac {4 \pi n c u \left (\phi \right )^{3}}{\sqrt {-\frac {-v_{0}^{2} m +2 e V_{0} -2 e \phi }{m}}} = 0 \end{align*}

Which is now solved for \(u(\phi )\) as first order ode.

The ode

\begin{equation} u^{\prime } = -\frac {4 \pi n c u^{3}}{\sqrt {\frac {v_{0}^{2} m -2 e V_{0} +2 e \phi }{m}}} \end{equation}

is separable as it can be written as

\begin{align*} u^{\prime }&= -\frac {4 \pi n c u^{3}}{\sqrt {\frac {v_{0}^{2} m -2 e V_{0} +2 e \phi }{m}}}\\ &= f(\phi ) g(u) \end{align*}

Where

\begin{align*} f(\phi ) &= -\frac {4 \pi n c}{\sqrt {\frac {v_{0}^{2} m -2 e V_{0} +2 e \phi }{m}}}\\ g(u) &= u^{3} \end{align*}

Integrating gives

\begin{align*} \int { \frac {1}{g(u)} \,du} &= \int { f(\phi ) \,d\phi } \\ \int { \frac {1}{u^{3}}\,du} &= \int { -\frac {4 \pi n c}{\sqrt {\frac {v_{0}^{2} m -2 e V_{0} +2 e \phi }{m}}} \,d\phi } \\ \end{align*}
\[ \frac {1}{2 u^{2}}=\frac {4 \sqrt {\frac {\left (-2 V_{0} +2 \phi \right ) e +v_{0}^{2} m}{m}}\, \pi n c m}{e}-c_5 \]

We now need to find the singular solutions, these are found by finding for what values \(g(u)\) is zero, since we had to divide by this above. Solving \(g(u)=0\) or

\[ u^{3}=0 \]

for \(u\) gives

\begin{align*} u&=0 \end{align*}

Now we go over each such singular solution and check if it verifies the ode itself and any initial conditions given. If it does not then the singular solution will not be used.

Therefore the solutions found are

\begin{align*} \frac {1}{2 u^{2}} &= \frac {4 \sqrt {\frac {\left (-2 V_{0} +2 \phi \right ) e +v_{0}^{2} m}{m}}\, \pi n c m}{e}-c_5 \\ u &= 0 \\ \end{align*}

In summary, these are the solution found for \(u(\phi )\)

\begin{align*} \frac {1}{2 u^{2}} &= \frac {4 \sqrt {\frac {\left (-2 V_{0} +2 \phi \right ) e +v_{0}^{2} m}{m}}\, \pi n c m}{e}-c_5 \\ u &= 0 \\ \end{align*}

For solution \(\frac {1}{2 u^{2}} = \frac {4 \sqrt {\frac {\left (-2 V_{0} +2 \phi \right ) e +v_{0}^{2} m}{m}}\, \pi n c m}{e}-c_5\), since \(u=x^{\prime }\left (\phi \right )\) then we now have a new first order ode to solve which is

\begin{align*} \frac {1}{2 {x^{\prime }\left (\phi \right )}^{2}} = \frac {4 \sqrt {\frac {\left (-2 V_{0} +2 \phi \right ) e +v_{0}^{2} m}{m}}\, \pi n c m}{e}-c_5 \end{align*}

Solving for the derivative gives these ODE’s to solve

\begin{align*} \tag{1} x^{\prime }&=-\frac {\sqrt {2}\, \sqrt {\left (4 \sqrt {-\frac {-v_{0}^{2} m +2 e V_{0} -2 e \phi }{m}}\, \pi n c m -c_5 e \right ) e}}{2 \left (4 \sqrt {-\frac {-v_{0}^{2} m +2 e V_{0} -2 e \phi }{m}}\, \pi n c m -c_5 e \right )} \\ \tag{2} x^{\prime }&=\frac {\sqrt {2}\, \sqrt {\left (4 \sqrt {-\frac {-v_{0}^{2} m +2 e V_{0} -2 e \phi }{m}}\, \pi n c m -c_5 e \right ) e}}{8 \sqrt {-\frac {-v_{0}^{2} m +2 e V_{0} -2 e \phi }{m}}\, \pi n c m -2 c_5 e} \\ \end{align*}

Now each of the above is solved separately.

Solving Eq. (1)

Since the ode has the form \(x^{\prime }=f(\phi )\), then we only need to integrate \(f(\phi )\).

\begin{align*} \int {dx} &= \int {-\frac {\sqrt {2}\, \sqrt {\left (4 \sqrt {-\frac {-v_{0}^{2} m +2 e V_{0} -2 e \phi }{m}}\, \pi n c m -c_5 e \right ) e}}{2 \left (4 \sqrt {-\frac {-v_{0}^{2} m +2 e V_{0} -2 e \phi }{m}}\, \pi n c m -c_5 e \right )}\, d\phi }\\ x &= -\frac {\sqrt {2}\, \left (e^{2} c_5 \sqrt {4 e \pi m n \sqrt {\frac {2 e \phi }{m}-\frac {-v_{0}^{2} m +2 e V_{0}}{m}}\, c -e^{2} c_5}+\frac {{\left (4 e \pi m n \sqrt {\frac {2 e \phi }{m}-\frac {-v_{0}^{2} m +2 e V_{0}}{m}}\, c -e^{2} c_5 \right )}^{{3}/{2}}}{3}\right )}{16 m \,e^{2} \pi ^{2} c^{2} n^{2}} + c_6 \end{align*}
\begin{align*} x&= \frac {-2 \left (\sqrt {\frac {\left (-2 V_{0} +2 \phi \right ) e +v_{0}^{2} m}{m}}\, \pi n c m +\frac {c_5 e}{2}\right ) \sqrt {2}\, \sqrt {4 c m n \pi e \sqrt {\frac {\left (-2 V_{0} +2 \phi \right ) e +v_{0}^{2} m}{m}}-e^{2} c_5}+24 c_6 m e \,\pi ^{2} c^{2} n^{2}}{24 e m \,\pi ^{2} c^{2} n^{2}} \end{align*}

Solving Eq. (2)

Since the ode has the form \(x^{\prime }=f(\phi )\), then we only need to integrate \(f(\phi )\).

\begin{align*} \int {dx} &= \int {\frac {\sqrt {2}\, \sqrt {\left (4 \sqrt {-\frac {-v_{0}^{2} m +2 e V_{0} -2 e \phi }{m}}\, \pi n c m -c_5 e \right ) e}}{8 \sqrt {-\frac {-v_{0}^{2} m +2 e V_{0} -2 e \phi }{m}}\, \pi n c m -2 c_5 e}\, d\phi }\\ x &= \frac {\sqrt {2}\, \left (e^{2} c_5 \sqrt {4 e \pi m n \sqrt {\frac {2 e \phi }{m}-\frac {-v_{0}^{2} m +2 e V_{0}}{m}}\, c -e^{2} c_5}+\frac {{\left (4 e \pi m n \sqrt {\frac {2 e \phi }{m}-\frac {-v_{0}^{2} m +2 e V_{0}}{m}}\, c -e^{2} c_5 \right )}^{{3}/{2}}}{3}\right )}{16 m \,e^{2} \pi ^{2} c^{2} n^{2}} + c_7 \end{align*}
\begin{align*} x&= \frac {2 \left (\sqrt {\frac {\left (-2 V_{0} +2 \phi \right ) e +v_{0}^{2} m}{m}}\, \pi n c m +\frac {c_5 e}{2}\right ) \sqrt {2}\, \sqrt {4 c m n \pi e \sqrt {\frac {\left (-2 V_{0} +2 \phi \right ) e +v_{0}^{2} m}{m}}-e^{2} c_5}+24 c_7 m e \,\pi ^{2} c^{2} n^{2}}{24 e m \,\pi ^{2} c^{2} n^{2}} \end{align*}

For solution \(u \left (\phi \right ) = 0\), since \(u=x^{\prime }\) then we now have a new first order ode to solve which is

\begin{align*} x^{\prime } = 0 \end{align*}

Since the ode has the form \(x^{\prime }=f(\phi )\), then we only need to integrate \(f(\phi )\).

\begin{align*} \int {dx} &= \int {0\, d\phi } + c_8 \\ x &= c_8 \end{align*}

In summary, these are the solution found for \((x)\)

\begin{align*} x &= \frac {-2 \left (\sqrt {\frac {\left (-2 V_{0} +2 \phi \right ) e +v_{0}^{2} m}{m}}\, \pi n c m +\frac {c_5 e}{2}\right ) \sqrt {2}\, \sqrt {4 c m n \pi e \sqrt {\frac {\left (-2 V_{0} +2 \phi \right ) e +v_{0}^{2} m}{m}}-e^{2} c_5}+24 c_6 m e \,\pi ^{2} c^{2} n^{2}}{24 e m \,\pi ^{2} c^{2} n^{2}} \\ x &= c_8 \\ \end{align*}

Will add steps showing solving for IC soon.

Summary of solutions found

\begin{align*} x &= c_8 \\ x &= \frac {-2 \left (\sqrt {\frac {\left (-2 V_{0} +2 \phi \right ) e +v_{0}^{2} m}{m}}\, \pi n c m +\frac {c_5 e}{2}\right ) \sqrt {2}\, \sqrt {4 c m n \pi e \sqrt {\frac {\left (-2 V_{0} +2 \phi \right ) e +v_{0}^{2} m}{m}}-e^{2} c_5}+24 c_6 m e \,\pi ^{2} c^{2} n^{2}}{24 e m \,\pi ^{2} c^{2} n^{2}} \\ \end{align*}

Now that the reversed roles ode was solved, we will change back to the original roles. This results in the above solution becoming the following.

\begin{align*} x &= \frac {-2 \left (\sqrt {\frac {\left (-2 V_{0} +2 \phi \left (x \right )\right ) e +v_{0}^{2} m}{m}}\, \pi n c m +\frac {c_5 e}{2}\right ) \sqrt {2}\, \sqrt {4 c m n \pi e \sqrt {\frac {\left (-2 V_{0} +2 \phi \left (x \right )\right ) e +v_{0}^{2} m}{m}}-e^{2} c_5}+24 c_6 m e \,\pi ^{2} c^{2} n^{2}}{24 e m \,\pi ^{2} c^{2} n^{2}} \\ \end{align*}

Will add steps showing solving for IC soon.

Summary of solutions found

\begin{align*} x &= \frac {-2 \left (\sqrt {\frac {\left (-2 V_{0} +2 \phi \left (x \right )\right ) e +v_{0}^{2} m}{m}}\, \pi n c m +\frac {c_5 e}{2}\right ) \sqrt {2}\, \sqrt {4 c m n \pi e \sqrt {\frac {\left (-2 V_{0} +2 \phi \left (x \right )\right ) e +v_{0}^{2} m}{m}}-e^{2} c_5}+24 c_6 m e \,\pi ^{2} c^{2} n^{2}}{24 e m \,\pi ^{2} c^{2} n^{2}} \\ \end{align*}

Maple. Time used: 0.086 (sec). Leaf size: 210
ode:=diff(diff(phi(x),x),x) = 4*Pi*n*c/(v__0^2+2*e/m*(phi(x)-V__0))^(1/2); 
dsolve(ode,phi(x), singsol=all);
 
\begin{align*} e \int _{}^{\phi }\frac {\sqrt {\frac {\left (-2 V_{0} +2 \textit {\_a} \right ) e +v_{0}^{2} m}{m}}}{4 \sqrt {e \sqrt {\frac {\left (-2 V_{0} +2 \textit {\_a} \right ) e +v_{0}^{2} m}{m}}\, \left (\frac {c_1 \sqrt {\left (-2 \textit {\_a} +2 V_{0} \right ) e -v_{0}^{2} m}}{16}+n \pi \left (\left (\textit {\_a} -V_{0} \right ) e +\frac {v_{0}^{2} m}{2}\right ) c \right )}}d \textit {\_a} -x -c_2 &= 0 \\ -e \int _{}^{\phi }\frac {\sqrt {\frac {\left (-2 V_{0} +2 \textit {\_a} \right ) e +v_{0}^{2} m}{m}}}{4 \sqrt {e \sqrt {\frac {\left (-2 V_{0} +2 \textit {\_a} \right ) e +v_{0}^{2} m}{m}}\, \left (\frac {c_1 \sqrt {\left (-2 \textit {\_a} +2 V_{0} \right ) e -v_{0}^{2} m}}{16}+n \pi \left (\left (\textit {\_a} -V_{0} \right ) e +\frac {v_{0}^{2} m}{2}\right ) c \right )}}d \textit {\_a} -x -c_2 &= 0 \\ \end{align*}

Maple trace

Methods for second order ODEs: 
--- Trying classification methods --- 
trying 2nd order Liouville 
trying 2nd order WeierstrassP 
trying 2nd order JacobiSN 
differential order: 2; trying a linearization to 3rd order 
trying 2nd order ODE linearizable_by_differentiation 
trying 2nd order, 2 integrating factors of the form mu(x,y) 
trying differential order: 2; missing variables 
   -> Computing symmetries using: way = 3 
-> Calling odsolve with the ODE, diff(_b(_a),_a)*_b(_a)-4*Pi*n*c/(-(-m*v__0^2+2 
*V__0*e-2*_a*e)/m)^(1/2) = 0, _b(_a), HINT = [[-2/3*(-m*v__0^2+2*V__0*e-2*_a*e) 
/e, 1/3*_b]] 
   *** Sublevel 2 *** 
   symmetry methods on request 
   1st order, trying reduction of order with given symmetries: 
[-2/3*(-m*v__0^2+2*V__0*e-2*_a*e)/e, 1/3*_b] 
   1st order, trying the canonical coordinates of the invariance group 
      -> Calling odsolve with the ODE, diff(y(x),x) = y(x)/((4*x-4*V__0)*e+2* 
v__0^2*m)*e, y(x) 
         *** Sublevel 3 *** 
         Methods for first order ODEs: 
         --- Trying classification methods --- 
         trying a quadrature 
         trying 1st order linear 
         <- 1st order linear successful 
   <- 1st order, canonical coordinates successful 
<- differential order: 2; canonical coordinates successful 
<- differential order 2; missing variables successful
 

Mathematica. Time used: 79.952 (sec). Leaf size: 2754
ode=D[phi[x],{x,2}]==4*Pi*n*c/Sqrt[v0^2+2*e/m*(phi[x]-V0)]; 
ic={}; 
DSolve[{ode,ic},phi[x],x,IncludeSingularSolutions->True]
 

Too large to display

Sympy
from sympy import * 
x = symbols("x") 
V__0 = symbols("V__0") 
c = symbols("c") 
e = symbols("e") 
m = symbols("m") 
n = symbols("n") 
v__0 = symbols("v__0") 
phi = Function("phi") 
ode = Eq(-4*pi*c*n/sqrt(2*e*(-V__0 + phi(x))/m + v__0**2) + Derivative(phi(x), (x, 2)),0) 
ics = {} 
dsolve(ode,func=phi(x),ics=ics)
 
Timed Out