2.49 problem 49

Internal problem ID [4627]

Book: Engineering Mathematics. By K. A. Stroud. 5th edition. Industrial press Inc. NY. 2001
Section: Program 24. First order differential equations. Further problems 24. page 1068
Problem number: 49.
ODE order: 1.
ODE degree: 1.

CAS Maple gives this as type [[_homogeneous, class G], _rational, _Bernoulli]

Solve \begin {gather*} \boxed {y^{\prime }+\frac {y}{x}-y^{2} x=0} \end {gather*}

Solution by Maple

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

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

\[ y \relax (x ) = \frac {1}{\left (c_{1}-x \right ) x} \]

Solution by Mathematica

Time used: 0.211 (sec). Leaf size: 22

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

\begin{align*} y(x)\to \frac {1}{x (-x+c_1)} \\ y(x)\to 0 \\ \end{align*}