2.12 problem 12

Internal problem ID [490]

Book: Elementary differential equations and boundary value problems, 10th ed., Boyce and DiPrima
Section: Section 2.2. Page 48
Problem number: 12.
ODE order: 1.
ODE degree: 1.

CAS Maple gives this as type [_separable]

\[ \boxed {r^{\prime }-\frac {r^{2}}{x}=0} \] With initial conditions \begin {align*} [r \left (1\right ) = 2] \end {align*}

Solution by Maple

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

dsolve([diff(r(x),x) = r(x)^2/x,r(1) = 2],r(x), singsol=all)
 

\[ r \left (x \right ) = -\frac {2}{2 \ln \left (x \right )-1} \]

Solution by Mathematica

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

DSolve[{r'[x] == r[x]^2/x,r[1]==2},r[x],x,IncludeSingularSolutions -> True]
 

\begin{align*} r(x)\to \frac {2}{1-2 \log (x)} \\ \end{align*}