34.6.16 problem 20

Internal problem ID [6090]
Book : A treatise on ordinary and partial differential equations by William Woolsey Johnson. 1913
Section : Chapter IX, Special forms of differential equations. Examples XVII. page 247
Problem number : 20
Date solved : Wednesday, March 05, 2025 at 12:11:49 AM
CAS classification : [[_Emden, _Fowler]]

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

Maple. Time used: 0.003 (sec). Leaf size: 23
ode:=x*diff(diff(y(x),x),x)+diff(y(x),x)+y(x) = 0; 
dsolve(ode,y(x), singsol=all);
 
\[ y = c_1 \operatorname {BesselJ}\left (0, 2 \sqrt {x}\right )+c_2 \operatorname {BesselY}\left (0, 2 \sqrt {x}\right ) \]
Mathematica. Time used: 0.032 (sec). Leaf size: 31
ode=x*D[y[x],{x,2}]+D[y[x],x]+y[x]==0; 
ic={}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 
\[ y(x)\to c_1 \operatorname {BesselJ}\left (0,2 \sqrt {x}\right )+2 c_2 \operatorname {BesselY}\left (0,2 \sqrt {x}\right ) \]
Sympy. Time used: 0.140 (sec). Leaf size: 22
from sympy import * 
x = symbols("x") 
y = Function("y") 
ode = Eq(x*Derivative(y(x), (x, 2)) + y(x) + Derivative(y(x), x),0) 
ics = {} 
dsolve(ode,func=y(x),ics=ics)
 
\[ y{\left (x \right )} = C_{1} J_{0}\left (2 \sqrt {x}\right ) + C_{2} Y_{0}\left (2 \sqrt {x}\right ) \]