71.9.9 problem 9

Internal problem ID [14417]
Book : Ordinary Differential Equations by Charles E. Roberts, Jr. CRC Press. 2010
Section : Chapter 4. N-th Order Linear Differential Equations. Exercises 4.1, page 186
Problem number : 9
Date solved : Monday, March 31, 2025 at 12:26:35 PM
CAS classification : [[_Emden, _Fowler]]

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

Maple. Time used: 0.003 (sec). Leaf size: 15
ode:=x^2*diff(diff(y(x),x),x)+2*x*diff(y(x),x)-2*y(x) = 0; 
dsolve(ode,y(x), singsol=all);
 
\[ y = \frac {c_2 \,x^{3}+c_1}{x^{2}} \]
Mathematica. Time used: 0.011 (sec). Leaf size: 16
ode=x^2*D[y[x],{x,2}]+2*x*D[y[x],x]-2*y[x]==0; 
ic={}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 
\[ y(x)\to \frac {c_1}{x^2}+c_2 x \]
Sympy. Time used: 0.156 (sec). Leaf size: 10
from sympy import * 
x = symbols("x") 
y = Function("y") 
ode = Eq(x**2*Derivative(y(x), (x, 2)) + 2*x*Derivative(y(x), x) - 2*y(x),0) 
ics = {} 
dsolve(ode,func=y(x),ics=ics)
 
\[ y{\left (x \right )} = \frac {C_{1}}{x^{2}} + C_{2} x \]