2.3.31 problem 31
Internal
problem
ID
[8315]
Book
:
Own
collection
of
miscellaneous
problems
Section
:
section
3.0
Problem
number
:
31
Date
solved
:
Sunday, November 10, 2024 at 03:38:17 AM
CAS
classification
:
[_rational, _Bernoulli]
Solve
\begin{align*} v v^{\prime }&=\frac {2 v^{2}}{r^{3}}+\frac {\lambda r}{3} \end{align*}
Solved as first order Bernoulli ode
Time used: 0.360 (sec)
In canonical form, the ODE is
\begin{align*} v' &= F(r,v)\\ &= \frac {\lambda \,r^{4}+6 v^{2}}{3 v \,r^{3}} \end{align*}
This is a Bernoulli ODE.
\[ v' = \left (\frac {2}{r^{3}}\right ) v + \left (\frac {\lambda r}{3}\right )\frac {1}{v} \tag {1} \]
The standard Bernoulli ODE has the form
\[ v' = f_0(r)v+f_1(r)v^n \tag {2} \]
Comparing this to (1)
shows that
\begin{align*} f_0 &=\frac {2}{r^{3}}\\ f_1 &=\frac {\lambda r}{3} \end{align*}
The first step is to divide the above equation by \(v^n \) which gives
\[ \frac {v'}{v^n} = f_0(r) v^{1-n} +f_1(r) \tag {3} \]
The next step is use the
substitution \(v = v^{1-n}\) in equation (3) which generates a new ODE in \(v \left (r \right )\) which will be linear and can be
easily solved using an integrating factor. Backsubstitution then gives the solution \(v(r)\) which is
what we want.
This method is now applied to the ODE at hand. Comparing the ODE (1) With (2) Shows
that
\begin{align*} f_0(r)&=\frac {2}{r^{3}}\\ f_1(r)&=\frac {\lambda r}{3}\\ n &=-1 \end{align*}
Dividing both sides of ODE (1) by \(v^n=\frac {1}{v}\) gives
\begin{align*} v'v &= \frac {2 v^{2}}{r^{3}} +\frac {\lambda r}{3} \tag {4} \end{align*}
Let
\begin{align*} v &= v^{1-n} \\ &= v^{2} \tag {5} \end{align*}
Taking derivative of equation (5) w.r.t \(r\) gives
\begin{align*} v' &= 2 vv' \tag {6} \end{align*}
Substituting equations (5) and (6) into equation (4) gives
\begin{align*} \frac {v^{\prime }\left (r \right )}{2}&= \frac {2 v \left (r \right )}{r^{3}}+\frac {\lambda r}{3}\\ v' &= \frac {4 v}{r^{3}}+\frac {2 \lambda r}{3} \tag {7} \end{align*}
The above now is a linear ODE in \(v \left (r \right )\) which is now solved.
In canonical form a linear first order is
\begin{align*} v^{\prime }\left (r \right ) + q(r)v \left (r \right ) &= p(r) \end{align*}
Comparing the above to the given ode shows that
\begin{align*} q(r) &=-\frac {4}{r^{3}}\\ p(r) &=\frac {2 \lambda r}{3} \end{align*}
The integrating factor \(\mu \) is
\begin{align*} \mu &= e^{\int {q\,dr}}\\ &= {\mathrm e}^{\int -\frac {4}{r^{3}}d r}\\ &= {\mathrm e}^{\frac {2}{r^{2}}} \end{align*}
The ode becomes
\begin{align*}
\frac {\mathop {\mathrm {d}}}{ \mathop {\mathrm {d}r}}\left ( \mu v\right ) &= \mu p \\
\frac {\mathop {\mathrm {d}}}{ \mathop {\mathrm {d}r}}\left ( \mu v\right ) &= \left (\mu \right ) \left (\frac {2 \lambda r}{3}\right ) \\
\frac {\mathop {\mathrm {d}}}{ \mathop {\mathrm {d}r}} \left (v \,{\mathrm e}^{\frac {2}{r^{2}}}\right ) &= \left ({\mathrm e}^{\frac {2}{r^{2}}}\right ) \left (\frac {2 \lambda r}{3}\right ) \\
\mathrm {d} \left (v \,{\mathrm e}^{\frac {2}{r^{2}}}\right ) &= \left (\frac {2 \lambda r \,{\mathrm e}^{\frac {2}{r^{2}}}}{3}\right )\, \mathrm {d} r \\
\end{align*}
Integrating gives
\begin{align*} v \,{\mathrm e}^{\frac {2}{r^{2}}}&= \int {\frac {2 \lambda r \,{\mathrm e}^{\frac {2}{r^{2}}}}{3} \,dr} \\ &=\frac {2 \lambda \left (\frac {{\mathrm e}^{\frac {2}{r^{2}}} r^{2}}{2}+\operatorname {Ei}_{1}\left (-\frac {2}{r^{2}}\right )\right )}{3} + c_1 \end{align*}
Dividing throughout by the integrating factor \({\mathrm e}^{\frac {2}{r^{2}}}\) gives the final solution
\[ v \left (r \right ) = \frac {\lambda \,r^{2}}{3}+\frac {2 \lambda \,\operatorname {Ei}_{1}\left (-\frac {2}{r^{2}}\right ) {\mathrm e}^{-\frac {2}{r^{2}}}}{3}+c_1 \,{\mathrm e}^{-\frac {2}{r^{2}}} \]
The substitution \(v = v^{1-n}\) is
now used to convert the above solution back to \(v\) which results in
\[
v^{2} = \frac {\lambda \,r^{2}}{3}+\frac {2 \lambda \,\operatorname {Ei}_{1}\left (-\frac {2}{r^{2}}\right ) {\mathrm e}^{-\frac {2}{r^{2}}}}{3}+c_1 \,{\mathrm e}^{-\frac {2}{r^{2}}}
\]
Solving for \(v\) gives
\begin{align*}
v &= -\frac {\sqrt {6 \lambda \,\operatorname {Ei}_{1}\left (-\frac {2}{r^{2}}\right ) {\mathrm e}^{-\frac {2}{r^{2}}}+3 \lambda \,r^{2}+9 c_1 \,{\mathrm e}^{-\frac {2}{r^{2}}}}}{3} \\
v &= \frac {\sqrt {6 \lambda \,\operatorname {Ei}_{1}\left (-\frac {2}{r^{2}}\right ) {\mathrm e}^{-\frac {2}{r^{2}}}+3 \lambda \,r^{2}+9 c_1 \,{\mathrm e}^{-\frac {2}{r^{2}}}}}{3} \\
\end{align*}
Summary of solutions found
\begin{align*}
v &= -\frac {\sqrt {6 \lambda \,\operatorname {Ei}_{1}\left (-\frac {2}{r^{2}}\right ) {\mathrm e}^{-\frac {2}{r^{2}}}+3 \lambda \,r^{2}+9 c_1 \,{\mathrm e}^{-\frac {2}{r^{2}}}}}{3} \\
v &= \frac {\sqrt {6 \lambda \,\operatorname {Ei}_{1}\left (-\frac {2}{r^{2}}\right ) {\mathrm e}^{-\frac {2}{r^{2}}}+3 \lambda \,r^{2}+9 c_1 \,{\mathrm e}^{-\frac {2}{r^{2}}}}}{3} \\
\end{align*}
Solved as first order Exact ode
Time used: 0.260 (sec)
To solve an ode of the form
\begin{equation} M\left ( x,y\right ) +N\left ( x,y\right ) \frac {dy}{dx}=0\tag {A}\end{equation}
We assume there exists a function \(\phi \left ( x,y\right ) =c\) where \(c\) is constant, that
satisfies the ode. Taking derivative of \(\phi \) w.r.t. \(x\) gives
\[ \frac {d}{dx}\phi \left ( x,y\right ) =0 \]
Hence
\begin{equation} \frac {\partial \phi }{\partial x}+\frac {\partial \phi }{\partial y}\frac {dy}{dx}=0\tag {B}\end{equation}
Comparing (A,B) shows
that
\begin{align*} \frac {\partial \phi }{\partial x} & =M\\ \frac {\partial \phi }{\partial y} & =N \end{align*}
But since \(\frac {\partial ^{2}\phi }{\partial x\partial y}=\frac {\partial ^{2}\phi }{\partial y\partial x}\) then for the above to be valid, we require that
\[ \frac {\partial M}{\partial y}=\frac {\partial N}{\partial x}\]
If the above condition is satisfied,
then the original ode is called exact. We still need to determine \(\phi \left ( x,y\right ) \) but at least we know
now that we can do that since the condition \(\frac {\partial ^{2}\phi }{\partial x\partial y}=\frac {\partial ^{2}\phi }{\partial y\partial x}\) is satisfied. If this condition is not
satisfied then this method will not work and we have to now look for an integrating
factor to force this condition, which might or might not exist. The first step is
to write the ODE in standard form to check for exactness, which is
\[ M(r,v) \mathop {\mathrm {d}r}+ N(r,v) \mathop {\mathrm {d}v}=0 \tag {1A} \]
Therefore
\begin{align*} \left (v\right )\mathop {\mathrm {d}v} &= \left (\frac {2 v^{2}}{r^{3}}+\frac {\lambda r}{3}\right )\mathop {\mathrm {d}r}\\ \left (-\frac {2 v^{2}}{r^{3}}-\frac {\lambda r}{3}\right )\mathop {\mathrm {d}r} + \left (v\right )\mathop {\mathrm {d}v} &= 0 \tag {2A} \end{align*}
Comparing (1A) and (2A) shows that
\begin{align*} M(r,v) &= -\frac {2 v^{2}}{r^{3}}-\frac {\lambda r}{3}\\ N(r,v) &= v \end{align*}
The next step is to determine if the ODE is is exact or not. The ODE is exact when the
following condition is satisfied
\[ \frac {\partial M}{\partial v} = \frac {\partial N}{\partial r} \]
Using result found above gives
\begin{align*} \frac {\partial M}{\partial v} &= \frac {\partial }{\partial v} \left (-\frac {2 v^{2}}{r^{3}}-\frac {\lambda r}{3}\right )\\ &= -\frac {4 v}{r^{3}} \end{align*}
And
\begin{align*} \frac {\partial N}{\partial r} &= \frac {\partial }{\partial r} \left (v\right )\\ &= 0 \end{align*}
Since \(\frac {\partial M}{\partial v} \neq \frac {\partial N}{\partial r}\), then the ODE is not exact. Since the ODE is not exact, we will try to find an
integrating factor to make it exact. Let
\begin{align*} A &= \frac {1}{N} \left (\frac {\partial M}{\partial v} - \frac {\partial N}{\partial r} \right ) \\ &=\frac {1}{v}\left ( \left ( -\frac {4 v}{r^{3}}\right ) - \left (0 \right ) \right ) \\ &=-\frac {4}{r^{3}} \end{align*}
Since \(A\) does not depend on \(v\), then it can be used to find an integrating factor. The integrating
factor \(\mu \) is
\begin{align*} \mu &= e^{ \int A \mathop {\mathrm {d}r} } \\ &= e^{\int -\frac {4}{r^{3}}\mathop {\mathrm {d}r} } \end{align*}
The result of integrating gives
\begin{align*} \mu &= e^{\frac {2}{r^{2}} } \\ &= {\mathrm e}^{\frac {2}{r^{2}}} \end{align*}
\(M\) and \(N\) are multiplied by this integrating factor, giving new \(M\) and new \(N\) which are called \(\overline {M}\) and \(\overline {N}\)
for now so not to confuse them with the original \(M\) and \(N\).
\begin{align*} \overline {M} &=\mu M \\ &= {\mathrm e}^{\frac {2}{r^{2}}}\left (-\frac {2 v^{2}}{r^{3}}-\frac {\lambda r}{3}\right ) \\ &= -\frac {\left (\lambda \,r^{4}+6 v^{2}\right ) {\mathrm e}^{\frac {2}{r^{2}}}}{3 r^{3}} \end{align*}
And
\begin{align*} \overline {N} &=\mu N \\ &= {\mathrm e}^{\frac {2}{r^{2}}}\left (v\right ) \\ &= v \,{\mathrm e}^{\frac {2}{r^{2}}} \end{align*}
Now a modified ODE is ontained from the original ODE, which is exact and can be solved.
The modified ODE is
\begin{align*} \overline {M} + \overline {N} \frac { \mathop {\mathrm {d}v}}{\mathop {\mathrm {d}r}} &= 0 \\ \left (-\frac {\left (\lambda \,r^{4}+6 v^{2}\right ) {\mathrm e}^{\frac {2}{r^{2}}}}{3 r^{3}}\right ) + \left (v \,{\mathrm e}^{\frac {2}{r^{2}}}\right ) \frac { \mathop {\mathrm {d}v}}{\mathop {\mathrm {d}r}} &= 0 \end{align*}
The following equations are now set up to solve for the function \(\phi \left (r,v\right )\)
\begin{align*} \frac {\partial \phi }{\partial r } &= \overline {M}\tag {1} \\ \frac {\partial \phi }{\partial v } &= \overline {N}\tag {2} \end{align*}
Integrating (1) w.r.t. \(r\) gives
\begin{align*}
\int \frac {\partial \phi }{\partial r} \mathop {\mathrm {d}r} &= \int \overline {M}\mathop {\mathrm {d}r} \\
\int \frac {\partial \phi }{\partial r} \mathop {\mathrm {d}r} &= \int -\frac {\left (\lambda \,r^{4}+6 v^{2}\right ) {\mathrm e}^{\frac {2}{r^{2}}}}{3 r^{3}}\mathop {\mathrm {d}r} \\
\tag{3} \phi &= -\frac {\lambda \,\operatorname {Ei}_{1}\left (-\frac {2}{r^{2}}\right )}{3}-\frac {{\mathrm e}^{\frac {2}{r^{2}}} \left (\lambda \,r^{2}-3 v^{2}\right )}{6}+ f(v) \\
\end{align*}
Where \(f(v)\) is used for the constant of integration since \(\phi \) is a function
of both \(r\) and \(v\). Taking derivative of equation (3) w.r.t \(v\) gives
\begin{equation}
\tag{4} \frac {\partial \phi }{\partial v} = v \,{\mathrm e}^{\frac {2}{r^{2}}}+f'(v)
\end{equation}
But equation (2) says that \(\frac {\partial \phi }{\partial v} = v \,{\mathrm e}^{\frac {2}{r^{2}}}\).
Therefore equation (4) becomes
\begin{equation}
\tag{5} v \,{\mathrm e}^{\frac {2}{r^{2}}} = v \,{\mathrm e}^{\frac {2}{r^{2}}}+f'(v)
\end{equation}
Solving equation (5) for \( f'(v)\) gives
\[ f'(v) = 0 \]
Therefore
\[ f(v) = c_1 \]
Where
\(c_1\) is constant of integration. Substituting this result for \(f(v)\) into equation (3) gives
\(\phi \)
\[
\phi = -\frac {\lambda \,\operatorname {Ei}_{1}\left (-\frac {2}{r^{2}}\right )}{3}-\frac {{\mathrm e}^{\frac {2}{r^{2}}} \left (\lambda \,r^{2}-3 v^{2}\right )}{6}+ c_1
\]
But since \(\phi \) itself is a constant function, then let \(\phi =c_2\) where \(c_2\) is new constant and
combining \(c_1\) and \(c_2\) constants into the constant \(c_1\) gives the solution as
\[
c_1 = -\frac {\lambda \,\operatorname {Ei}_{1}\left (-\frac {2}{r^{2}}\right )}{3}-\frac {{\mathrm e}^{\frac {2}{r^{2}}} \left (\lambda \,r^{2}-3 v^{2}\right )}{6}
\]
Solving for \(v\) gives
\begin{align*}
v &= -\frac {{\mathrm e}^{-\frac {2}{r^{2}}} \sqrt {3}\, \sqrt {{\mathrm e}^{\frac {2}{r^{2}}} \left ({\mathrm e}^{\frac {2}{r^{2}}} \lambda \,r^{2}+2 \lambda \,\operatorname {Ei}_{1}\left (-\frac {2}{r^{2}}\right )+6 c_1 \right )}}{3} \\
v &= \frac {{\mathrm e}^{-\frac {2}{r^{2}}} \sqrt {3}\, \sqrt {{\mathrm e}^{\frac {2}{r^{2}}} \left ({\mathrm e}^{\frac {2}{r^{2}}} \lambda \,r^{2}+2 \lambda \,\operatorname {Ei}_{1}\left (-\frac {2}{r^{2}}\right )+6 c_1 \right )}}{3} \\
\end{align*}
Summary of solutions found
\begin{align*}
v &= -\frac {{\mathrm e}^{-\frac {2}{r^{2}}} \sqrt {3}\, \sqrt {{\mathrm e}^{\frac {2}{r^{2}}} \left ({\mathrm e}^{\frac {2}{r^{2}}} \lambda \,r^{2}+2 \lambda \,\operatorname {Ei}_{1}\left (-\frac {2}{r^{2}}\right )+6 c_1 \right )}}{3} \\
v &= \frac {{\mathrm e}^{-\frac {2}{r^{2}}} \sqrt {3}\, \sqrt {{\mathrm e}^{\frac {2}{r^{2}}} \left ({\mathrm e}^{\frac {2}{r^{2}}} \lambda \,r^{2}+2 \lambda \,\operatorname {Ei}_{1}\left (-\frac {2}{r^{2}}\right )+6 c_1 \right )}}{3} \\
\end{align*}
Maple step by step solution
\[ \begin {array}{lll} & {} & \textrm {Let's solve}\hspace {3pt} \\ {} & {} & v \left (r \right ) \left (\frac {d}{d r}v \left (r \right )\right )=\frac {2 v \left (r \right )^{2}}{r^{3}}+\frac {\lambda r}{3} \\ \bullet & {} & \textrm {Highest derivative means the order of the ODE is}\hspace {3pt} 1 \\ {} & {} & \frac {d}{d r}v \left (r \right ) \\ \bullet & {} & \textrm {Solve for the highest derivative}\hspace {3pt} \\ {} & {} & \frac {d}{d r}v \left (r \right )=\frac {\frac {2 v \left (r \right )^{2}}{r^{3}}+\frac {\lambda r}{3}}{v \left (r \right )} \end {array} \]
Maple trace
`Methods for first order ODEs:
--- Trying classification methods ---
trying a quadrature
trying 1st order linear
trying Bernoulli
<- Bernoulli successful`
Maple dsolve solution
Solving time : 0.035
(sec)
Leaf size : 97
dsolve(v(r)*diff(v(r),r) = 2*v(r)^2/r^3+1/3*lambda*r,
v(r),singsol=all)
\begin{align*}
v \left (r \right ) &= -\frac {\sqrt {3}\, \sqrt {{\mathrm e}^{\frac {2}{r^{2}}} \left (\lambda \,{\mathrm e}^{\frac {2}{r^{2}}} r^{2}+2 \,\operatorname {Ei}_{1}\left (-\frac {2}{r^{2}}\right ) \lambda +3 c_{1} \right )}\, {\mathrm e}^{-\frac {2}{r^{2}}}}{3} \\
v \left (r \right ) &= \frac {\sqrt {3}\, \sqrt {{\mathrm e}^{\frac {2}{r^{2}}} \left (\lambda \,{\mathrm e}^{\frac {2}{r^{2}}} r^{2}+2 \,\operatorname {Ei}_{1}\left (-\frac {2}{r^{2}}\right ) \lambda +3 c_{1} \right )}\, {\mathrm e}^{-\frac {2}{r^{2}}}}{3} \\
\end{align*}
Mathematica DSolve solution
Solving time : 8.578
(sec)
Leaf size : 98
DSolve[{v[r]*D[v[r],r]==2*v[r]^2/r^3+1/3*\[Lambda]*r,{}},
v[r],r,IncludeSingularSolutions->True]
\begin{align*}
v(r)\to -\frac {\sqrt {e^{-\frac {2}{r^2}} \left (-2 \lambda \operatorname {ExpIntegralEi}\left (\frac {2}{r^2}\right )+\lambda e^{\frac {2}{r^2}} r^2+3 c_1\right )}}{\sqrt {3}} \\
v(r)\to \frac {\sqrt {e^{-\frac {2}{r^2}} \left (-2 \lambda \operatorname {ExpIntegralEi}\left (\frac {2}{r^2}\right )+\lambda e^{\frac {2}{r^2}} r^2+3 c_1\right )}}{\sqrt {3}} \\
\end{align*}