65.1.9 problem 23

Internal problem ID [15605]
Book : Ordinary Differential Equations by Charles E. Roberts, Jr. CRC Press. 2010
Section : Chapter 1. Introduction. Exercises page 14
Problem number : 23
Date solved : Thursday, October 02, 2025 at 10:21:00 AM
CAS classification : [_separable]

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