Internal problem ID [3217]
Internal file name [OUTPUT/2709_Sunday_June_05_2022_08_39_04_AM_11853043/index.tex
]
Book: Differential equations for engineers by Wei-Chau XIE, Cambridge Press 2010
Section: Chapter 2. First-Order and Simple Higher-Order Differential Equations. Page
78
Problem number: 75.
ODE order: 1.
ODE degree: 1.
The type(s) of ODE detected by this program :
Maple gives the following as the ode type
[[_1st_order, _with_linear_symmetries], _rational, _Bernoulli]
\[ \boxed {\left (x +1\right ) \left (y^{\prime }+y^{2}\right )-y=0} \]
In canonical form, the ODE is \begin {align*} y' &= F(x,y)\\ &= -\frac {y \left (x y +y -1\right )}{x +1} \end {align*}
This is a Bernoulli ODE. \[ y' = \frac {1}{x +1} y - 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)&=\frac {1}{x +1}\\ f_1(x)&=-1\\ n &=2 \end {align*}
Dividing both sides of ODE (1) by \(y^n=y^{2}\) gives \begin {align*} y'\frac {1}{y^{2}} &= \frac {1}{\left (x +1\right ) y} -1 \tag {4} \end {align*}
Let \begin {align*} w &= y^{1-n} \\ &= \frac {1}{y} \tag {5} \end {align*}
Taking derivative of equation (5) w.r.t \(x\) gives \begin {align*} w' &= -\frac {1}{y^{2}}y' \tag {6} \end {align*}
Substituting equations (5) and (6) into equation (4) gives \begin {align*} -w^{\prime }\left (x \right )&= \frac {w \left (x \right )}{x +1}-1\\ w' &= -\frac {w}{x +1}+1 \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) &=\frac {1}{x +1}\\ q(x) &=-\frac {-x -1}{x +1} \end {align*}
Hence the ode is \begin {align*} w^{\prime }\left (x \right )+\frac {w \left (x \right )}{x +1} = -\frac {-x -1}{x +1} \end {align*}
The integrating factor \(\mu \) is \begin{align*} \mu &= {\mathrm e}^{\int \frac {1}{x +1}d x} \\ &= x +1 \\ \end{align*} The ode becomes \begin {align*} \frac {\mathop {\mathrm {d}}}{ \mathop {\mathrm {d}x}}\left ( \mu w\right ) &= \left (\mu \right ) \left (-\frac {-x -1}{x +1}\right ) \\ \frac {\mathop {\mathrm {d}}}{ \mathop {\mathrm {d}x}} \left (\left (x +1\right ) w\right ) &= \left (x +1\right ) \left (-\frac {-x -1}{x +1}\right )\\ \mathrm {d} \left (\left (x +1\right ) w\right ) &= \left (x +1\right )\, \mathrm {d} x \end {align*}
Integrating gives \begin {align*} \left (x +1\right ) w &= \int {x +1\,\mathrm {d} x}\\ \left (x +1\right ) w &= \frac {1}{2} x^{2}+x + c_{1} \end {align*}
Dividing both sides by the integrating factor \(\mu =x +1\) results in \begin {align*} w \left (x \right ) &= \frac {\frac {1}{2} x^{2}+x}{x +1}+\frac {c_{1}}{x +1} \end {align*}
which simplifies to \begin {align*} w \left (x \right ) &= \frac {x^{2}+2 c_{1} +2 x}{2 x +2} \end {align*}
Replacing \(w\) in the above by \(\frac {1}{y}\) using equation (5) gives the final solution. \begin {align*} \frac {1}{y} = \frac {x^{2}+2 c_{1} +2 x}{2 x +2} \end {align*}
Or \begin {align*} y = \frac {2 x +2}{x^{2}+2 c_{1} +2 x} \end {align*}
Summary
The solution(s) found are the following \begin{align*} \tag{1} y &= \frac {2 x +2}{x^{2}+2 c_{1} +2 x} \\ \end{align*}
Verification of solutions
\[ y = \frac {2 x +2}{x^{2}+2 c_{1} +2 x} \] Verified OK.
\[ \begin {array}{lll} & {} & \textrm {Let's solve}\hspace {3pt} \\ {} & {} & \left (x +1\right ) \left (y^{\prime }+y^{2}\right )-y=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 x +y-1\right )}{x +1} \end {array} \]
Maple trace
`Methods for first order ODEs: --- Trying classification methods --- trying a quadrature trying 1st order linear trying Bernoulli <- Bernoulli successful`
✓ Solution by Maple
Time used: 0.016 (sec). Leaf size: 22
dsolve((1+x)*(diff(y(x),x)+y(x)^2)-y(x)=0,y(x), singsol=all)
\[ y \left (x \right ) = \frac {2 x +2}{x^{2}+2 c_{1} +2 x} \]
✓ Solution by Mathematica
Time used: 0.201 (sec). Leaf size: 28
DSolve[(1+x)*(y'[x]+y[x]^2)-y[x]==0,y[x],x,IncludeSingularSolutions -> True]
\begin{align*} y(x)\to \frac {2 (x+1)}{x^2+2 x+2 c_1} \\ y(x)\to 0 \\ \end{align*}