15.35 problem 443

Internal problem ID [3189]

Book: Ordinary differential equations and their solutions. By George Moseley Murphy. 1960
Section: Various 15
Problem number: 443.
ODE order: 1.
ODE degree: 1.

CAS Maple gives this as type [[_homogeneous, class C], _exact, _rational, [_Abel, 2nd type, class A]]

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

Solution by Maple

Time used: 0.01 (sec). Leaf size: 39

dsolve((2+x+y(x))*diff(y(x),x) = 1-x-y(x),y(x), singsol=all)
 

\begin{align*} y \relax (x ) = -x -2-\sqrt {-6 c_{1}+6 x +4} \\ y \relax (x ) = -x -2+\sqrt {-6 c_{1}+6 x +4} \\ \end{align*}

Solution by Mathematica

Time used: 0.097 (sec). Leaf size: 43

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

\begin{align*} y(x)\to -x-\sqrt {6 x+4+c_1}-2 \\ y(x)\to -x+\sqrt {6 x+4+c_1}-2 \\ \end{align*}