5.4 problem 4

Internal problem ID [546]

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

CAS Maple gives this as type [_separable]

Solve \begin {gather*} \boxed {2 y+2 x y^{2}+\left (2 x +2 x^{2} y\right ) y^{\prime }=0} \end {gather*}

Solution by Maple

Time used: 0.0 (sec). Leaf size: 31

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

\begin{align*} y \relax (x ) = -\frac {1}{x} \\ y \relax (x ) = \frac {-1-c_{1}}{x} \\ y \relax (x ) = \frac {-1+c_{1}}{x} \\ \end{align*}

Solution by Mathematica

Time used: 0.025 (sec). Leaf size: 29

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

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