Internal problem ID [989]
Internal file name [OUTPUT/990_Sunday_June_05_2022_01_56_11_AM_82313958/index.tex
]
Book: Elementary differential equations with boundary value problems. William F. Trench.
Brooks/Cole 2001
Section: Chapter 2, First order equations. Transformation of Nonlinear Equations into Separable
Equations. Section 2.4 Page 68
Problem number: 11.
ODE order: 1.
ODE degree: 1.
The type(s) of ODE detected by this program : "exact", "bernoulli", "first_order_ode_lie_symmetry_lookup"
Maple gives the following as the ode type
[_rational, _Bernoulli]
\[ \boxed {y^{\prime }-4 y-\frac {48 x}{y^{2}}=0} \] With initial conditions \begin {align*} [y \left (0\right ) = 1] \end {align*}
This is non linear first order ODE. In canonical form it is written as \begin {align*} y^{\prime } &= f(x,y)\\ &= \frac {4 y^{3}+48 x}{y^{2}} \end {align*}
The \(x\) domain of \(f(x,y)\) when \(y=1\) is \[
\{-\infty The \(x\) domain of \(\frac {\partial f}{\partial y}\) when \(y=1\) is \[
\{-\infty
In canonical form, the ODE is \begin {align*} y' &= F(x,y)\\ &= \frac {4 y^{3}+48 x}{y^{2}} \end {align*}
This is a Bernoulli ODE. \[ y' = 4 y +48 x \frac {1}{y^{2}} \tag {1} \] The standard Bernoulli ODE has the form \[ y' = f_0(x)y+f_1(x)y^n \tag {2} \] The first step is to
divide the above equation by \(y^n \) which gives \[ \frac {y'}{y^n} = f_0(x) y^{1-n} +f_1(x) \tag {3} \] The next step is use the substitution \(w = y^{1-n}\) in equation
(3) which generates a new ODE in \(w \left (x \right )\) which will be linear and can be easily solved using an
integrating factor. Backsubstitution then gives the solution \(y(x)\) 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(x)&=4\\ f_1(x)&=48 x\\ n &=-2 \end {align*}
Dividing both sides of ODE (1) by \(y^n=\frac {1}{y^{2}}\) gives \begin {align*} y'y^{2} &= 4 y^{3} +48 x \tag {4} \end {align*}
Let \begin {align*} w &= y^{1-n} \\ &= y^{3} \tag {5} \end {align*}
Taking derivative of equation (5) w.r.t \(x\) gives \begin {align*} w' &= 3 y^{2}y' \tag {6} \end {align*}
Substituting equations (5) and (6) into equation (4) gives \begin {align*} \frac {w^{\prime }\left (x \right )}{3}&= 4 w \left (x \right )+48 x\\ w' &= 12 w +144 x \tag {7} \end {align*}
The above now is a linear ODE in \(w \left (x \right )\) which is now solved.
Entering Linear first order ODE solver. In canonical form a linear first order is
\begin {align*} w^{\prime }\left (x \right ) + p(x)w \left (x \right ) &= q(x) \end {align*}
Where here \begin {align*} p(x) &=-12\\ q(x) &=144 x \end {align*}
Hence the ode is \begin {align*} w^{\prime }\left (x \right )-12 w \left (x \right ) = 144 x \end {align*}
The integrating factor \(\mu \) is \begin{align*}
\mu &= {\mathrm e}^{\int \left (-12\right )d x} \\
&= {\mathrm e}^{-12 x} \\
\end{align*} The ode becomes \begin {align*} \frac {\mathop {\mathrm {d}}}{ \mathop {\mathrm {d}x}}\left ( \mu w\right ) &= \left (\mu \right ) \left (144 x\right ) \\ \frac {\mathop {\mathrm {d}}}{ \mathop {\mathrm {d}x}} \left ({\mathrm e}^{-12 x} w\right ) &= \left ({\mathrm e}^{-12 x}\right ) \left (144 x\right )\\ \mathrm {d} \left ({\mathrm e}^{-12 x} w\right ) &= \left (144 x \,{\mathrm e}^{-12 x}\right )\, \mathrm {d} x \end {align*}
Integrating gives \begin {align*} {\mathrm e}^{-12 x} w &= \int {144 x \,{\mathrm e}^{-12 x}\,\mathrm {d} x}\\ {\mathrm e}^{-12 x} w &= -\left (12 x +1\right ) {\mathrm e}^{-12 x} + c_{1} \end {align*}
Dividing both sides by the integrating factor \(\mu ={\mathrm e}^{-12 x}\) results in \begin {align*} w \left (x \right ) &= -{\mathrm e}^{12 x} \left (12 x +1\right ) {\mathrm e}^{-12 x}+c_{1} {\mathrm e}^{12 x} \end {align*}
which simplifies to \begin {align*} w \left (x \right ) &= -12 x -1+c_{1} {\mathrm e}^{12 x} \end {align*}
Replacing \(w\) in the above by \(y^{3}\) using equation (5) gives the final solution. \begin {align*} y^{3} = -12 x -1+c_{1} {\mathrm e}^{12 x} \end {align*}
Initial conditions are used to solve for \(c_{1}\). Substituting \(x=0\) and \(y=1\) in the above solution gives an
equation to solve for the constant of integration. \begin {align*} 1 = c_{1} -1 \end {align*}
The solutions are \begin {align*} c_{1} = 2 \end {align*}
Trying the constant \begin {align*} c_{1} = 2 \end {align*}
Substituting \(c_{1}\) found above in the general solution gives \begin {align*} y^{3} = -1+2 \,{\mathrm e}^{12 x}-12 x \end {align*}
The constant \(c_{1} = 2\) gives valid solution.
Summary
The solution(s) found are the following \begin{align*}
\tag{1} y^{3} &= -1+2 \,{\mathrm e}^{12 x}-12 x \\
\end{align*} Verification of solutions
\[
y^{3} = -1+2 \,{\mathrm e}^{12 x}-12 x
\] Verified OK.
\[ \begin {array}{lll} & {} & \textrm {Let's solve}\hspace {3pt} \\ {} & {} & \left [y^{\prime }-4 y-\frac {48 x}{y^{2}}=0, y \left (0\right )=1\right ] \\ \bullet & {} & \textrm {Highest derivative means the order of the ODE is}\hspace {3pt} 1 \\ {} & {} & y^{\prime } \\ \bullet & {} & \textrm {Solve for the highest derivative}\hspace {3pt} \\ {} & {} & y^{\prime }=4 y+\frac {48 x}{y^{2}} \\ \bullet & {} & \textrm {Use initial condition}\hspace {3pt} y \left (0\right )=1 \\ {} & {} & 0 \\ \bullet & {} & \textrm {Solve for}\hspace {3pt} 0 \\ {} & {} & 0=0 \\ \bullet & {} & \textrm {Substitute}\hspace {3pt} 0=0\hspace {3pt}\textrm {into general solution and simplify}\hspace {3pt} \\ {} & {} & 0 \\ \bullet & {} & \textrm {Solution to the IVP}\hspace {3pt} \\ {} & {} & 0 \end {array} \]
Maple trace
✓ Solution by Maple
Time used: 0.063 (sec). Leaf size: 17
\[
y \left (x \right ) = \left (2 \,{\mathrm e}^{12 x}-12 x -1\right )^{\frac {1}{3}}
\]
✓ Solution by Mathematica
Time used: 4.195 (sec). Leaf size: 21
\[
y(x)\to \sqrt [3]{-12 x+2 e^{12 x}-1}
\]
5.15.2 Solving as bernoulli ode
5.15.3 Maple step by step solution
`Methods for first order ODEs:
--- Trying classification methods ---
trying a quadrature
trying 1st order linear
trying Bernoulli
<- Bernoulli successful`
dsolve([diff(y(x),x)-4*y(x)=48*x/y(x)^2,y(0) = 1],y(x), singsol=all)
DSolve[{y'[x]-4*y[x]==48*x/y[x]^2,y[0]==1},y[x],x,IncludeSingularSolutions -> True]