29.12.26 problem 345

Internal problem ID [4945]
Book : Ordinary differential equations and their solutions. By George Moseley Murphy. 1960
Section : Various 12
Problem number : 345
Date solved : Sunday, March 30, 2025 at 04:17:30 AM
CAS classification : [[_homogeneous, `class G`], _rational, _Riccati]

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

Maple. Time used: 0.003 (sec). Leaf size: 23
ode:=x^3*diff(y(x),x) = x^4+y(x)^2; 
dsolve(ode,y(x), singsol=all);
 
\[ y = \frac {x^{2} \left (\ln \left (x \right )-c_1 -1\right )}{\ln \left (x \right )-c_1} \]
Mathematica. Time used: 0.17 (sec). Leaf size: 29
ode=x^3 D[y[x],x]==x^4+y[x]^2; 
ic={}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 
\begin{align*} y(x)\to \frac {x^2 (\log (x)-1+c_1)}{\log (x)+c_1} \\ y(x)\to x^2 \\ \end{align*}
Sympy. Time used: 0.196 (sec). Leaf size: 12
from sympy import * 
x = symbols("x") 
y = Function("y") 
ode = Eq(-x**4 + x**3*Derivative(y(x), x) - y(x)**2,0) 
ics = {} 
dsolve(ode,func=y(x),ics=ics)
 
\[ y{\left (x \right )} = x^{2} \left (1 - 8 x^{2}\right ) \]