44.8.7 problem 1(g)

Internal problem ID [9209]
Book : Differential Equations: Theory, Technique, and Practice by George Simmons, Steven Krantz. McGraw-Hill NY. 2007. 1st Edition.
Section : Chapter 1. What is a differential equation. Problems for Review and Discovery. Page 53
Problem number : 1(g)
Date solved : Tuesday, September 30, 2025 at 06:14:43 PM
CAS classification : [_separable]

\begin{align*} 2 x y+x^{2} y^{\prime }&=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.022 (sec). Leaf size: 16
ode=2*x*y[x]+x^2*D[y[x],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.061 (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}} \]