52.3.15 problem 17

Internal problem ID [8301]
Book : DIFFERENTIAL EQUATIONS with Boundary Value Problems. DENNIS G. ZILL, WARREN S. WRIGHT, MICHAEL R. CULLEN. Brooks/Cole. Boston, MA. 2013. 8th edition.
Section : CHAPTER 6 SERIES SOLUTIONS OF LINEAR EQUATIONS. 6.4 SPECIAL FUNCTIONS. EXERCISES 6.4. Page 267
Problem number : 17
Date solved : Wednesday, March 05, 2025 at 05:34:29 AM
CAS classification : [[_2nd_order, _with_linear_symmetries]]

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

Maple. Time used: 0.023 (sec). Leaf size: 27
ode:=x^2*diff(diff(y(x),x),x)+(x^2-2)*y(x) = 0; 
dsolve(ode,y(x), singsol=all);
 
\[ y = \frac {\left (c_{1} x +c_{2} \right ) \cos \left (x \right )+\sin \left (x \right ) \left (c_{2} x -c_{1} \right )}{x} \]
Mathematica. Time used: 0.02 (sec). Leaf size: 21
ode=x^2*D[y[x],{x,2}]+(x^2-2)*y[x]==0; 
ic={}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 
\[ y(x)\to x (c_1 j_1(x)-c_2 y_1(x)) \]
Sympy. Time used: 0.084 (sec). Leaf size: 20
from sympy import * 
x = symbols("x") 
y = Function("y") 
ode = Eq(x**2*Derivative(y(x), (x, 2)) + (x**2 - 2)*y(x),0) 
ics = {} 
dsolve(ode,func=y(x),ics=ics)
 
\[ y{\left (x \right )} = \sqrt {x} \left (C_{1} J_{\frac {3}{2}}\left (x\right ) + C_{2} Y_{\frac {3}{2}}\left (x\right )\right ) \]