8.6.14 problem 14

Internal problem ID [784]
Book : Differential equations and linear algebra, 3rd ed., Edwards and Penney
Section : Chapter 1 review problems. Page 78
Problem number : 14
Date solved : Saturday, March 29, 2025 at 10:22:36 PM
CAS classification : [[_homogeneous, `class A`], _rational, _Bernoulli]

\begin{align*} x^{3} y^{\prime }&=x^{2} y-y^{3} \end{align*}

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