77.1.143 problem thm 20 (page 244)

Internal problem ID [17962]
Book : V.V. Stepanov, A course of differential equations (in Russian), GIFML. Moscow (1958)
Section : All content
Problem number : thm 20 (page 244)
Date solved : Monday, March 31, 2025 at 04:52:37 PM
CAS classification : [_Lienard]

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

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