54.3.114 problem 1128

Internal problem ID [12409]
Book : Differential Gleichungen, E. Kamke, 3rd ed. Chelsea Pub. NY, 1948
Section : Chapter 2, linear second order
Problem number : 1128
Date solved : Wednesday, October 01, 2025 at 01:44:34 AM
CAS classification : [[_2nd_order, _with_linear_symmetries]]

\begin{align*} x y^{\prime \prime }+\left (x f \left (x \right )+2\right ) y^{\prime }+f \left (x \right ) y&=0 \end{align*}
Maple. Time used: 0.036 (sec). Leaf size: 33
ode:=x*diff(diff(y(x),x),x)+(x*f(x)+2)*diff(y(x),x)+f(x)*y(x) = 0; 
dsolve(ode,y(x), singsol=all);
 
\[ y = \frac {c_2 \int {\mathrm e}^{-\int \frac {x f \left (x \right )+2}{x}d x} x^{2}d x +c_1}{x} \]
Mathematica. Time used: 0.113 (sec). Leaf size: 37
ode=f[x]*y[x] + (2 + x*f[x])*D[y[x],x] + x*D[y[x],{x,2}] == 0; 
ic={}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 
\begin{align*} y(x)&\to \frac {c_2 \int _1^x\exp \left (-\int _1^{K[2]}f(K[1])dK[1]\right )dK[2]+c_1}{x} \end{align*}
Sympy
from sympy import * 
x = symbols("x") 
y = Function("y") 
ode = Eq(x*Derivative(y(x), (x, 2)) + (x*f(x) + 2)*Derivative(y(x), x) + f(x)*y(x),0) 
ics = {} 
dsolve(ode,func=y(x),ics=ics)
 
False