7.8 problem 12

Internal problem ID [12693]

Book: Ordinary Differential Equations by Charles E. Roberts, Jr. CRC Press. 2010
Section: Chapter 2. The Initial Value Problem. Exercises 2.3.3, page 71
Problem number: 12.
ODE order: 1.
ODE degree: 1.

CAS Maple gives this as type [_separable]

\[ \boxed {-y y^{\prime }=-x} \]

Solution by Maple

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

dsolve(x-y(x)*diff(y(x),x)=0,y(x), singsol=all)
 

\begin{align*} y \left (x \right ) &= \sqrt {x^{2}+c_{1}} \\ y \left (x \right ) &= -\sqrt {x^{2}+c_{1}} \\ \end{align*}

Solution by Mathematica

Time used: 0.132 (sec). Leaf size: 35

DSolve[x-y[x]*y'[x]==0,y[x],x,IncludeSingularSolutions -> True]
                                                                                    
                                                                                    
 

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