59.1.343 problem 350

Internal problem ID [9515]
Book : Collection of Kovacic problems
Section : section 1
Problem number : 350
Date solved : Sunday, March 30, 2025 at 02:36:36 PM
CAS classification : [[_2nd_order, _with_linear_symmetries]]

\begin{align*} x^{2} y^{\prime \prime }+6 x y^{\prime }+\left (4 x^{2}+6\right ) y&=0 \end{align*}

Maple. Time used: 0.004 (sec). Leaf size: 21
ode:=x^2*diff(diff(y(x),x),x)+6*x*diff(y(x),x)+(4*x^2+6)*y(x) = 0; 
dsolve(ode,y(x), singsol=all);
 
\[ y = \frac {c_1 \sin \left (2 x \right )+c_2 \cos \left (2 x \right )}{x^{3}} \]
Mathematica. Time used: 0.032 (sec). Leaf size: 37
ode=x^2*D[y[x],{x,2}]+6*x*D[y[x],x]+(4*x^2+6)*y[x]==0; 
ic={}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 
\[ y(x)\to \frac {4 c_1 e^{-2 i x}-i c_2 e^{2 i x}}{4 x^3} \]
Sympy. Time used: 0.241 (sec). Leaf size: 24
from sympy import * 
x = symbols("x") 
y = Function("y") 
ode = Eq(x**2*Derivative(y(x), (x, 2)) + 6*x*Derivative(y(x), x) + (4*x**2 + 6)*y(x),0) 
ics = {} 
dsolve(ode,func=y(x),ics=ics)
 
\[ y{\left (x \right )} = \frac {C_{1} J_{\frac {1}{2}}\left (2 x\right ) + C_{2} Y_{\frac {1}{2}}\left (2 x\right )}{x^{\frac {5}{2}}} \]