69.1.8 problem 8

Internal problem ID [14082]
Book : DIFFERENTIAL and INTEGRAL CALCULUS. VOL I. by N. PISKUNOV. MIR PUBLISHERS, Moscow 1969.
Section : Chapter 8. Differential equations. Exercises page 595
Problem number : 8
Date solved : Wednesday, March 05, 2025 at 10:30:42 PM
CAS classification : [[_2nd_order, _missing_y]]

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

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