12.5.19 problem 16

Internal problem ID [1643]
Book : Elementary differential equations with boundary value problems. William F. Trench. Brooks/Cole 2001
Section : Chapter 2, First order equations. Transformation of Nonlinear Equations into Separable Equations. Section 2.4 Page 68
Problem number : 16
Date solved : Monday, January 27, 2025 at 05:15:39 AM
CAS classification : [[_homogeneous, `class A`], _rational, _Bernoulli]

\begin{align*} y^{\prime }&=\frac {y^{2}+2 y x}{x^{2}} \end{align*}

Solution by Maple

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

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

Solution by Mathematica

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

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