2.12 problem 12

Internal problem ID [4251]

Book: Mathematical Methods in the Physical Sciences. third edition. Mary L. Boas. John Wiley. 2006
Section: Chapter 8, Ordinary differential equations. Section 2. Separable equations. page 398
Problem number: 12.
ODE order: 1.
ODE degree: 1.

CAS Maple gives this as type [_separable]

\[ \boxed {\left (x y+x \right ) y^{\prime }+y=0} \] With initial conditions \begin {align*} [y \left (1\right ) = 1] \end {align*}

Solution by Maple

Time used: 0.11 (sec). Leaf size: 11

dsolve([(x+x*y(x))*diff(y(x),x)+y(x)=0,y(1) = 1],y(x), singsol=all)
 

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

Solution by Mathematica

Time used: 2.104 (sec). Leaf size: 11

DSolve[{(x+x*y[x])*y'[x]+y[x]==0,{y[1]==1}},y[x],x,IncludeSingularSolutions -> True]
 

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