21.10 problem 4(b)

21.10.1 Solving as homogeneous ode
21.10.2 Maple step by step solution

Internal problem ID [6072]
Internal file name [OUTPUT/5320_Sunday_June_05_2022_03_34_05_PM_25195445/index.tex]

Book: An introduction to Ordinary Differential Equations. Earl A. Coddington. Dover. NY 1961
Section: Chapter 5. Existence and uniqueness of solutions to first order equations. Page 190
Problem number: 4(b).
ODE order: 1.
ODE degree: 1.

The type(s) of ODE detected by this program :

Maple gives the following as the ode type

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

\[ \boxed {y^{\prime }-\frac {y^{2}}{x^{2}+y x}=0} \]

21.10.1 Solving as homogeneous ode

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

An ode of the form \(y' = \frac {M(x,y)}{N(x,y)}\) is called homogeneous if the functions \(M(x,y)\) and \(N(x,y)\) are both homogeneous functions and of the same order. Recall that a function \(f(x,y)\) is homogeneous of order \(n\) if \[ f(t^n x, t^n y)= t^n f(x,y) \] In this case, it can be seen that both \(M=y^{2}\) and \(N=x \left (x +y \right )\) are both homogeneous and of the same order \(n=2\). Therefore this is a homogeneous ode. Since this ode is homogeneous, it is converted to separable ODE using the substitution \(u=\frac {y}{x}\), or \(y=ux\). Hence \[ \frac { \mathop {\mathrm {d}y}}{\mathop {\mathrm {d}x}}= \frac { \mathop {\mathrm {d}u}}{\mathop {\mathrm {d}x}}x + u \] Applying the transformation \(y=ux\) to the above ODE in (1) gives \begin {align*} \frac { \mathop {\mathrm {d}u}}{\mathop {\mathrm {d}x}}x + u &= \frac {u^{2}}{u +1}\\ \frac { \mathop {\mathrm {d}u}}{\mathop {\mathrm {d}x}} &= \frac {\frac {u \left (x \right )^{2}}{u \left (x \right )+1}-u \left (x \right )}{x} \end {align*}

Or \[ u^{\prime }\left (x \right )-\frac {\frac {u \left (x \right )^{2}}{u \left (x \right )+1}-u \left (x \right )}{x} = 0 \] Or \[ u^{\prime }\left (x \right ) x u \left (x \right )+u^{\prime }\left (x \right ) x +u \left (x \right ) = 0 \] Or \[ x \left (u \left (x \right )+1\right ) u^{\prime }\left (x \right )+u \left (x \right ) = 0 \] Which is now solved as separable in \(u \left (x \right )\). Which is now solved in \(u \left (x \right )\). In canonical form the ODE is \begin {align*} u' &= F(x,u)\\ &= f( x) g(u)\\ &= -\frac {u}{x \left (u +1\right )} \end {align*}

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

Summary

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

Figure 184: Slope field plot

Verification of solutions

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

21.10.2 Maple step by step solution

\[ \begin {array}{lll} & {} & \textrm {Let's solve}\hspace {3pt} \\ {} & {} & y^{\prime }-\frac {y^{2}}{x^{2}+y x}=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^{2}}{x^{2}+y x} \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 homogeneous D 
<- homogeneous successful`
 

Solution by Maple

Time used: 0.031 (sec). Leaf size: 15

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

\[ y \left (x \right ) = x \operatorname {LambertW}\left (\frac {{\mathrm e}^{-c_{1}}}{x}\right ) \]

Solution by Mathematica

Time used: 2.317 (sec). Leaf size: 21

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

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