7.5.5 problem 5

Internal problem ID [109]
Book : Elementary Differential Equations. By C. Henry Edwards, David E. Penney and David Calvis. 6th edition. 2008
Section : Chapter 1. First order differential equations. Section 1.6 (substitution and exact equations). Problems at page 72
Problem number : 5
Date solved : Friday, February 07, 2025 at 07:50:09 AM
CAS classification : [[_homogeneous, `class A`], _rational, [_Abel, `2nd type`, `class B`]]

\begin{align*} x \left (x +y\right ) y^{\prime }&=y \left (x -y\right ) \end{align*}

Solution by Maple

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

dsolve(x*(x+y(x))*diff(y(x),x)=y(x)*(x-y(x)),y(x), singsol=all)
 
\[ y = \frac {x}{\operatorname {LambertW}\left (c_1 \,x^{2}\right )} \]

Solution by Mathematica

Time used: 4.254 (sec). Leaf size: 25

DSolve[x*(x+y[x])*D[y[x],x]==y[x]*(x-y[x]),y[x],x,IncludeSingularSolutions -> True]
 
\begin{align*} y(x)\to \frac {x}{W\left (e^{-c_1} x^2\right )} \\ y(x)\to 0 \\ \end{align*}