87.5.5 problem 5

Internal problem ID [23298]
Book : Ordinary differential equations with modern applications. Ladas, G. E. and Finizio, N. Wadsworth Publishing. California. 1978. ISBN 0-534-00552-7. QA372.F56
Section : Chapter 1. Elementary methods. First order differential equations. Exercise at page 47
Problem number : 5
Date solved : Thursday, October 02, 2025 at 09:29:06 PM
CAS classification : [[_homogeneous, `class A`], _exact, _rational, _Bernoulli]

\begin{align*} x^{2}+y^{2}+2 x y y^{\prime }&=0 \end{align*}
Maple. Time used: 0.003 (sec). Leaf size: 47
ode:=2*x*y(x)*diff(y(x),x)+x^2+y(x)^2 = 0; 
dsolve(ode,y(x), singsol=all);
 
\begin{align*} y &= -\frac {\sqrt {3}\, \sqrt {-x \left (x^{3}-3 c_1 \right )}}{3 x} \\ y &= \frac {\sqrt {3}\, \sqrt {-x \left (x^{3}-3 c_1 \right )}}{3 x} \\ \end{align*}
Mathematica. Time used: 0.097 (sec). Leaf size: 60
ode=(x^2+y[x]^2)+2*x*y[x]*D[y[x],x]==0; 
ic={}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 
\begin{align*} y(x)&\to -\frac {\sqrt {-x^3+3 c_1}}{\sqrt {3} \sqrt {x}}\\ y(x)&\to \frac {\sqrt {-x^3+3 c_1}}{\sqrt {3} \sqrt {x}} \end{align*}
Sympy. Time used: 0.300 (sec). Leaf size: 39
from sympy import * 
x = symbols("x") 
y = Function("y") 
ode = Eq(x**2 + 2*x*y(x)*Derivative(y(x), x) + y(x)**2,0) 
ics = {} 
dsolve(ode,func=y(x),ics=ics)
 
\[ \left [ y{\left (x \right )} = - \frac {\sqrt {3} \sqrt {\frac {C_{1}}{x} - x^{2}}}{3}, \ y{\left (x \right )} = \frac {\sqrt {3} \sqrt {\frac {C_{1}}{x} - x^{2}}}{3}\right ] \]