Internal problem ID [8579]
Internal file name [OUTPUT/7512_Sunday_June_05_2022_11_02_31_PM_2428099/index.tex
]
Book: Differential Gleichungen, E. Kamke, 3rd ed. Chelsea Pub. NY, 1948
Section: Chapter 1, linear first order
Problem number: 243.
ODE order: 1.
ODE degree: 1.
The type(s) of ODE detected by this program : "exactWithIntegrationFactor"
Maple gives the following as the ode type
[_rational, [_Abel, `2nd type`, `class B`]]
\[ \boxed {x \left (2 y+x -1\right ) y^{\prime }-y \left (y+2 x +1\right )=0} \]
Entering Exact first order ODE solver. (Form one type)
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(x,y) \mathop {\mathrm {d}x}+ N(x,y) \mathop {\mathrm {d}y}=0 \tag {1A} \] Therefore \begin {align*} \left (x \left (2 y +x -1\right )\right )\mathop {\mathrm {d}y} &= \left (y \left (y +2 x +1\right )\right )\mathop {\mathrm {d}x}\\ \left (-y \left (y +2 x +1\right )\right )\mathop {\mathrm {d}x} + \left (x \left (2 y +x -1\right )\right )\mathop {\mathrm {d}y} &= 0 \tag {2A} \end {align*}
Comparing (1A) and (2A) shows that \begin {align*} M(x,y) &= -y \left (y +2 x +1\right )\\ N(x,y) &= x \left (2 y +x -1\right ) \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 y} = \frac {\partial N}{\partial x} \] Using result found above gives \begin {align*} \frac {\partial M}{\partial y} &= \frac {\partial }{\partial y} \left (-y \left (y +2 x +1\right )\right )\\ &= -2 y -2 x -1 \end {align*}
And \begin {align*} \frac {\partial N}{\partial x} &= \frac {\partial }{\partial x} \left (x \left (2 y +x -1\right )\right )\\ &= 2 y +2 x -1 \end {align*}
Since \(\frac {\partial M}{\partial y} \neq \frac {\partial N}{\partial x}\), 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 y} - \frac {\partial N}{\partial x} \right ) \\ &=\frac {1}{x \left (2 y +x -1\right )}\left ( \left ( -2 y -2 x -1\right ) - \left (2 y +2 x -1 \right ) \right ) \\ &=\frac {-4 y -4 x}{x \left (2 y +x -1\right )} \end {align*}
Since \(A\) depends on \(y\), it can not be used to obtain an integrating factor. We will now try a second method to find an integrating factor. Let \begin {align*} B &= \frac {1}{M} \left ( \frac {\partial N}{\partial x} - \frac {\partial M}{\partial y} \right ) \\ &=-\frac {1}{y \left (y +2 x +1\right )}\left ( \left ( 2 y +2 x -1\right ) - \left (-2 y -2 x -1 \right ) \right ) \\ &=\frac {-4 y -4 x}{y \left (y +2 x +1\right )} \end {align*}
Since \(B\) depends on \(x\), it can not be used to obtain an integrating factor.We will now try a third method to find an integrating factor. Let \[ R = \frac { \frac {\partial N}{\partial x} - \frac {\partial M}{\partial y} } {x M - y N} \] \(R\) is now checked to see if it is a function of only \(t=xy\). Therefore \begin {align*} R &= \frac { \frac {\partial N}{\partial x} - \frac {\partial M}{\partial y} } {x M - y N} \\ &= \frac {\left (2 y +2 x -1\right )-\left (-2 y -2 x -1\right )} {x\left (-y \left (y +2 x +1\right )\right ) - y\left (x \left (2 y +x -1\right )\right )} \\ &= -\frac {4}{3 y x} \end {align*}
Replacing all powers of terms \(xy\) by \(t\) gives \[ R = -\frac {4}{3 t} \] Since \(R\) depends on \(t\) only, then it can be used to find an integrating factor. Let the integrating factor be \(\mu \) then \begin {align*} \mu &= e^{\int R \mathop {\mathrm {d}t}} \\ &= e^{\int \left (-\frac {4}{3 t}\right )\mathop {\mathrm {d}t} } \end {align*}
The result of integrating gives \begin {align*} \mu &= e^{-\frac {4 \ln \left (t \right )}{3} } \\ &= \frac {1}{t^{\frac {4}{3}}} \end {align*}
Now \(t\) is replaced back with \(xy\) giving \[ \mu =\frac {1}{\left (x y \right )^{\frac {4}{3}}} \] Multiplying \(M\) and \(N\) by this integrating factor gives new \(M\) and new \(N\) which are called \( \overline {M}\) and \( \overline {N}\) so not to confuse them with the original \(M\) and \(N\) \begin {align*} \overline {M} &=\mu M \\ &= \frac {1}{\left (x y \right )^{\frac {4}{3}}}\left (-y \left (y +2 x +1\right )\right ) \\ &= -\frac {y +2 x +1}{x \left (x y \right )^{\frac {1}{3}}} \end {align*}
And \begin {align*} \overline {N} &=\mu N \\ &= \frac {1}{\left (x y \right )^{\frac {4}{3}}}\left (x \left (2 y +x -1\right )\right ) \\ &= \frac {2 y +x -1}{y \left (x y \right )^{\frac {1}{3}}} \end {align*}
A modified ODE is now obtained from the original ODE, which is exact and can solved. The modified ODE is \begin {align*} \overline {M} + \overline {N} \frac { \mathop {\mathrm {d}y}}{\mathop {\mathrm {d}x}} &= 0 \\ \left (-\frac {y +2 x +1}{x \left (x y \right )^{\frac {1}{3}}}\right ) + \left (\frac {2 y +x -1}{y \left (x y \right )^{\frac {1}{3}}}\right ) \frac { \mathop {\mathrm {d}y}}{\mathop {\mathrm {d}x}} &= 0 \end {align*}
The following equations are now set up to solve for the function \(\phi \left (x,y\right )\) \begin {align*} \frac {\partial \phi }{\partial x } &= \overline {M}\tag {1} \\ \frac {\partial \phi }{\partial y } &= \overline {N}\tag {2} \end {align*}
Integrating (1) w.r.t. \(x\) gives \begin{align*} \int \frac {\partial \phi }{\partial x} \mathop {\mathrm {d}x} &= \int \overline {M}\mathop {\mathrm {d}x} \\ \int \frac {\partial \phi }{\partial x} \mathop {\mathrm {d}x} &= \int -\frac {y +2 x +1}{x \left (x y \right )^{\frac {1}{3}}}\mathop {\mathrm {d}x} \\ \tag{3} \phi &= -\frac {3 \left (x -y -1\right )}{\left (x y \right )^{\frac {1}{3}}}+ f(y) \\ \end{align*} Where \(f(y)\) is used for the constant of integration since \(\phi \) is a function of both \(x\) and \(y\). Taking derivative of equation (3) w.r.t \(y\) gives \begin{align*} \tag{4} \frac {\partial \phi }{\partial y} &= \frac {3}{\left (x y \right )^{\frac {1}{3}}}+\frac {\left (x -y -1\right ) x}{\left (x y \right )^{\frac {4}{3}}}+f'(y) \\ &=\frac {2 y +x -1}{y \left (x y \right )^{\frac {1}{3}}}+f'(y) \\ \end{align*} But equation (2) says that \(\frac {\partial \phi }{\partial y} = \frac {2 y +x -1}{y \left (x y \right )^{\frac {1}{3}}}\). Therefore equation (4) becomes \begin{equation} \tag{5} \frac {2 y +x -1}{y \left (x y \right )^{\frac {1}{3}}} = \frac {2 y +x -1}{y \left (x y \right )^{\frac {1}{3}}}+f'(y) \end{equation} Solving equation (5) for \( f'(y)\) gives \[ f'(y) = 0 \] Therefore \[ f(y) = c_{1} \] Where \(c_{1}\) is constant of integration. Substituting this result for \(f(y)\) into equation (3) gives \(\phi \) \[ \phi = -\frac {3 \left (x -y -1\right )}{\left (x y \right )^{\frac {1}{3}}}+ 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 new constant \(c_{1}\) gives the solution as \[ c_{1} = -\frac {3 \left (x -y -1\right )}{\left (x y \right )^{\frac {1}{3}}} \]
The solution(s) found are the following \begin{align*} \tag{1} -\frac {3 \left (x -y-1\right )}{\left (y x \right )^{\frac {1}{3}}} &= c_{1} \\ \end{align*}
Verification of solutions
\[ -\frac {3 \left (x -y-1\right )}{\left (y x \right )^{\frac {1}{3}}} = c_{1} \] Verified OK.
\[ \begin {array}{lll} & {} & \textrm {Let's solve}\hspace {3pt} \\ {} & {} & x \left (2 y+x -1\right ) y^{\prime }-y \left (y+2 x +1\right )=0 \\ \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 }=\frac {y \left (y+2 x +1\right )}{x \left (2 y+x -1\right )} \end {array} \]
Maple trace
`Methods for first order ODEs: --- Trying classification methods --- trying a quadrature trying 1st order linear trying Bernoulli trying separable trying inverse linear trying homogeneous types: trying Chini differential order: 1; looking for linear symmetries trying exact trying Abel <- Abel successful`
✓ Solution by Maple
Time used: 0.016 (sec). Leaf size: 389
dsolve(x*(2*y(x)+x-1)*diff(y(x),x)-y(x)*(y(x)+2*x+1)=0,y(x), singsol=all)
\begin{align*} y \left (x \right ) &= \frac {3 \,5^{\frac {1}{3}} {\left (x \left (\sqrt {5}\, \sqrt {\frac {80 c_{1} x^{2}-160 c_{1} x +80 c_{1} -x}{c_{1}}}+20 x -20\right ) c_{1}^{2}\right )}^{\frac {1}{3}}}{40 c_{1}}+\frac {3 x 5^{\frac {2}{3}}}{40 {\left (x \left (\sqrt {5}\, \sqrt {\frac {80 c_{1} x^{2}-160 c_{1} x +80 c_{1} -x}{c_{1}}}+20 x -20\right ) c_{1}^{2}\right )}^{\frac {1}{3}}}-1+x \\ y \left (x \right ) &= \frac {\frac {3 \,5^{\frac {1}{3}} \left (-i \sqrt {3}-1\right ) {\left (x \left (\sqrt {5}\, \sqrt {\frac {80 \left (x -1\right )^{2} c_{1} -x}{c_{1}}}+20 x -20\right ) c_{1}^{2}\right )}^{\frac {2}{3}}}{80}+\frac {3 c_{1} \left (\frac {80 \left (x -1\right ) {\left (x \left (\sqrt {5}\, \sqrt {\frac {80 \left (x -1\right )^{2} c_{1} -x}{c_{1}}}+20 x -20\right ) c_{1}^{2}\right )}^{\frac {1}{3}}}{3}+\left (i \sqrt {3}-1\right ) x 5^{\frac {2}{3}}\right )}{80}}{c_{1} {\left (x \left (\sqrt {5}\, \sqrt {\frac {80 \left (x -1\right )^{2} c_{1} -x}{c_{1}}}+20 x -20\right ) c_{1}^{2}\right )}^{\frac {1}{3}}} \\ y \left (x \right ) &= -\frac {3 \left (5^{\frac {1}{3}} \left (1-i \sqrt {3}\right ) {\left (x \left (\sqrt {5}\, \sqrt {\frac {80 \left (x -1\right )^{2} c_{1} -x}{c_{1}}}+20 x -20\right ) c_{1}^{2}\right )}^{\frac {2}{3}}+c_{1} \left (\frac {80 \left (1-x \right ) {\left (x \left (\sqrt {5}\, \sqrt {\frac {80 \left (x -1\right )^{2} c_{1} -x}{c_{1}}}+20 x -20\right ) c_{1}^{2}\right )}^{\frac {1}{3}}}{3}+x 5^{\frac {2}{3}} \left (1+i \sqrt {3}\right )\right )\right )}{80 {\left (x \left (\sqrt {5}\, \sqrt {\frac {80 \left (x -1\right )^{2} c_{1} -x}{c_{1}}}+20 x -20\right ) c_{1}^{2}\right )}^{\frac {1}{3}} c_{1}} \\ \end{align*}
✓ Solution by Mathematica
Time used: 43.09 (sec). Leaf size: 463
DSolve[x*(2*y[x]+x-1)*y'[x]-y[x]*(y[x]+2*x+1)==0,y[x],x,IncludeSingularSolutions -> True]
\begin{align*} y(x)\to -\frac {\sqrt [3]{2} x}{\sqrt [3]{-27 c_1{}^2 x^2+\sqrt {108 c_1{}^3 x^3+\left (27 c_1{}^2 x-27 c_1{}^2 x^2\right ){}^2}+27 c_1{}^2 x}}+\frac {\sqrt [3]{-27 c_1{}^2 x^2+\sqrt {108 c_1{}^3 x^3+\left (27 c_1{}^2 x-27 c_1{}^2 x^2\right ){}^2}+27 c_1{}^2 x}}{3 \sqrt [3]{2} c_1}+x-1 \\ y(x)\to \frac {\left (1+i \sqrt {3}\right ) x}{2^{2/3} \sqrt [3]{-27 c_1{}^2 x^2+\sqrt {108 c_1{}^3 x^3+\left (27 c_1{}^2 x-27 c_1{}^2 x^2\right ){}^2}+27 c_1{}^2 x}}-\frac {\left (1-i \sqrt {3}\right ) \sqrt [3]{-27 c_1{}^2 x^2+\sqrt {108 c_1{}^3 x^3+\left (27 c_1{}^2 x-27 c_1{}^2 x^2\right ){}^2}+27 c_1{}^2 x}}{6 \sqrt [3]{2} c_1}+x-1 \\ y(x)\to \frac {\left (1-i \sqrt {3}\right ) x}{2^{2/3} \sqrt [3]{-27 c_1{}^2 x^2+\sqrt {108 c_1{}^3 x^3+\left (27 c_1{}^2 x-27 c_1{}^2 x^2\right ){}^2}+27 c_1{}^2 x}}-\frac {\left (1+i \sqrt {3}\right ) \sqrt [3]{-27 c_1{}^2 x^2+\sqrt {108 c_1{}^3 x^3+\left (27 c_1{}^2 x-27 c_1{}^2 x^2\right ){}^2}+27 c_1{}^2 x}}{6 \sqrt [3]{2} c_1}+x-1 \\ y(x)\to \text {Indeterminate} \\ y(x)\to x-1 \\ \end{align*}