1.9 problem 9

1.9.1 Maple step by step solution

Internal problem ID [6775]
Internal file name [OUTPUT/6022_Monday_July_25_2022_01_59_47_AM_53691888/index.tex]

Book: Elementary differential equations. By Earl D. Rainville, Phillip E. Bedient. Macmilliam Publishing Co. NY. 6th edition. 1981.
Section: CHAPTER 16. Nonlinear equations. Section 94. Factoring the left member. EXERCISES Page 309
Problem number: 9.
ODE order: 1.
ODE degree: 2.

The type(s) of ODE detected by this program : "exact", "differentialType", "homogeneousTypeD2", "first_order_ode_lie_symmetry_calculated"

Maple gives the following as the ode type

[[_homogeneous, `class A`], _rational, [_Abel, `2nd type`, `class A`]]

\[ \boxed {\left (x +y\right )^{2} {y^{\prime }}^{2}-y^{2}=0} \] The ode \begin {align*} \left (x +y\right )^{2} {y^{\prime }}^{2}-y^{2} = 0 \end {align*}

is factored to \begin {align*} \left (y^{\prime } y+y^{\prime } x +y\right ) \left (y^{\prime } y+y^{\prime } x -y\right ) = 0 \end {align*}

Which gives the following equations \begin {align*} y^{\prime } y+y^{\prime } x +y = 0\tag {1} \\ y^{\prime } y+y^{\prime } x -y = 0\tag {2} \\ \end {align*}

Each of the above equations is now solved.

Solving ODE (1) Using the change of variables \(y = u \left (x \right ) x\) on the above ode results in new ode in \(u \left (x \right )\) \begin {align*} \left (u^{\prime }\left (x \right ) x +u \left (x \right )\right ) u \left (x \right ) x +\left (u^{\prime }\left (x \right ) x +u \left (x \right )\right ) x +u \left (x \right ) x = 0 \end {align*}

In canonical form the ODE is \begin {align*} u' &= F(x,u)\\ &= f( x) g(u)\\ &= -\frac {u \left (u +2\right )}{x \left (u +1\right )} \end {align*}

Where \(f(x)=-\frac {1}{x}\) and \(g(u)=\frac {u \left (u +2\right )}{u +1}\). Integrating both sides gives \begin{align*} \frac {1}{\frac {u \left (u +2\right )}{u +1}} \,du &= -\frac {1}{x} \,d x \\ \int { \frac {1}{\frac {u \left (u +2\right )}{u +1}} \,du} &= \int {-\frac {1}{x} \,d x} \\ \frac {\ln \left (u \left (u +2\right )\right )}{2}&=-\ln \left (x \right )+c_{2} \\ \end{align*} Raising both side to exponential gives \begin {align*} \sqrt {u \left (u +2\right )} &= {\mathrm e}^{-\ln \left (x \right )+c_{2}} \end {align*}

Which simplifies to \begin {align*} \sqrt {u \left (u +2\right )} &= \frac {c_{3}}{x} \end {align*}

Which simplifies to \[ \sqrt {u \left (x \right ) \left (u \left (x \right )+2\right )} = \frac {c_{3} {\mathrm e}^{c_{2}}}{x} \] The solution is \[ \sqrt {u \left (x \right ) \left (u \left (x \right )+2\right )} = \frac {c_{3} {\mathrm e}^{c_{2}}}{x} \] Replacing \(u(x)\) in the above solution by \(\frac {y}{x}\) results in the solution for \(y\) in implicit form \begin {align*} \sqrt {\frac {y \left (\frac {y}{x}+2\right )}{x}} = \frac {c_{3} {\mathrm e}^{c_{2}}}{x}\\ \sqrt {\frac {y \left (y+2 x \right )}{x^{2}}} = \frac {c_{3} {\mathrm e}^{c_{2}}}{x} \end {align*}

Summary

The solution(s) found are the following \begin{align*} \tag{1} \sqrt {\frac {y \left (y+2 x \right )}{x^{2}}} &= \frac {c_{3} {\mathrm e}^{c_{2}}}{x} \\ \end{align*}

Verification of solutions

\[ \sqrt {\frac {y \left (y+2 x \right )}{x^{2}}} = \frac {c_{3} {\mathrm e}^{c_{2}}}{x} \] Verified OK.

Summary

The solution(s) found are the following \begin{align*} \tag{1} \sqrt {\frac {y \left (y+2 x \right )}{x^{2}}} &= \frac {c_{3} {\mathrm e}^{c_{2}}}{x} \\ \end{align*}

Verification of solutions

\[ \sqrt {\frac {y \left (y+2 x \right )}{x^{2}}} = \frac {c_{3} {\mathrm e}^{c_{2}}}{x} \] Verified OK.

Solving ODE (2) Using the change of variables \(y = u \left (x \right ) x\) on the above ode results in new ode in \(u \left (x \right )\) \begin {align*} \left (u^{\prime }\left (x \right ) x +u \left (x \right )\right ) u \left (x \right ) x +\left (u^{\prime }\left (x \right ) x +u \left (x \right )\right ) x -u \left (x \right ) x = 0 \end {align*}

In canonical form the ODE is \begin {align*} u' &= F(x,u)\\ &= f( x) g(u)\\ &= -\frac {u^{2}}{x \left (u +1\right )} \end {align*}

Where \(f(x)=-\frac {1}{x}\) and \(g(u)=\frac {u^{2}}{u +1}\). Integrating both sides gives \begin{align*} \frac {1}{\frac {u^{2}}{u +1}} \,du &= -\frac {1}{x} \,d x \\ \int { \frac {1}{\frac {u^{2}}{u +1}} \,du} &= \int {-\frac {1}{x} \,d x} \\ -\frac {1}{u}+\ln \left (u \right )&=-\ln \left (x \right )+c_{5} \\ \end{align*} The solution is \[ -\frac {1}{u \left (x \right )}+\ln \left (u \left (x \right )\right )+\ln \left (x \right )-c_{5} = 0 \] Replacing \(u(x)\) in the above solution by \(\frac {y}{x}\) results in the solution for \(y\) in implicit form \begin {align*} -\frac {x}{y}+\ln \left (\frac {y}{x}\right )+\ln \left (x \right )-c_{5} = 0\\ -\frac {x}{y}+\ln \left (\frac {y}{x}\right )+\ln \left (x \right )-c_{5} = 0 \end {align*}

Summary

The solution(s) found are the following \begin{align*} \tag{1} -\frac {x}{y}+\ln \left (\frac {y}{x}\right )+\ln \left (x \right )-c_{5} &= 0 \\ \end{align*}

Verification of solutions

\[ -\frac {x}{y}+\ln \left (\frac {y}{x}\right )+\ln \left (x \right )-c_{5} = 0 \] Verified OK.

Summary

The solution(s) found are the following \begin{align*} \tag{1} -\frac {x}{y}+\ln \left (\frac {y}{x}\right )+\ln \left (x \right )-c_{5} &= 0 \\ \end{align*}

Verification of solutions

\[ -\frac {x}{y}+\ln \left (\frac {y}{x}\right )+\ln \left (x \right )-c_{5} = 0 \] Verified OK.

1.9.1 Maple step by step solution

\[ \begin {array}{lll} & {} & \textrm {Let's solve}\hspace {3pt} \\ {} & {} & \left (x +y\right )^{2} {y^{\prime }}^{2}-y^{2}=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} \\ {} & {} & \left [y^{\prime }=\frac {y}{x +y}, y^{\prime }=-\frac {y}{x +y}\right ] \\ \bullet & {} & \textrm {Solve the equation}\hspace {3pt} y^{\prime }=\frac {y}{x +y} \\ \bullet & {} & \textrm {Solve the equation}\hspace {3pt} y^{\prime }=-\frac {y}{x +y} \\ \bullet & {} & \textrm {Set of solutions}\hspace {3pt} \\ {} & {} & \left \{\mathit {workingODE} , \mathit {workingODE}\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 
<- 1st order linear successful 
<- inverse linear successful 
Methods for first order ODEs: 
--- Trying classification methods --- 
trying a quadrature 
trying 1st order linear 
trying Bernoulli 
trying separable 
trying inverse linear 
<- 1st order linear successful 
<- inverse linear successful`
 

Solution by Maple

Time used: 0.015 (sec). Leaf size: 47

dsolve((x+y(x))^2*diff(y(x),x)^2=y(x)^2,y(x), singsol=all)
 

\begin{align*} y \left (x \right ) &= \frac {x}{\operatorname {LambertW}\left (x \,{\mathrm e}^{c_{1}}\right )} \\ y \left (x \right ) &= -x -\sqrt {x^{2}+2 c_{1}} \\ y \left (x \right ) &= -x +\sqrt {x^{2}+2 c_{1}} \\ \end{align*}

Solution by Mathematica

Time used: 4.023 (sec). Leaf size: 101

DSolve[(x+y[x])^2*(y'[x])^2==y[x]^2,y[x],x,IncludeSingularSolutions -> True]
 

\begin{align*} y(x)\to -x-\sqrt {x^2+e^{2 c_1}} \\ y(x)\to -x+\sqrt {x^2+e^{2 c_1}} \\ y(x)\to \frac {x}{W\left (e^{-c_1} x\right )} \\ y(x)\to 0 \\ y(x)\to -\sqrt {x^2}-x \\ y(x)\to \sqrt {x^2}-x \\ \end{align*}