59.1.351 problem 358

Internal problem ID [9523]
Book : Collection of Kovacic problems
Section : section 1
Problem number : 358
Date solved : Wednesday, March 05, 2025 at 07:50:26 AM
CAS classification : [[_2nd_order, _with_linear_symmetries]]

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

Maple. Time used: 0.004 (sec). Leaf size: 13
ode:=x*diff(diff(y(x),x),x)+(-2*x+1)*diff(y(x),x)+(x-1)*y(x) = 0; 
dsolve(ode,y(x), singsol=all);
 
\[ y = {\mathrm e}^{x} \left (c_{2} \ln \left (x \right )+c_{1} \right ) \]
Mathematica. Time used: 0.025 (sec). Leaf size: 17
ode=x*D[y[x],{x,2}]+(1-2*x)*D[y[x],x]+(x-1)*y[x]==0; 
ic={}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 
\[ y(x)\to e^x (c_2 \log (x)+c_1) \]
Sympy
from sympy import * 
x = symbols("x") 
y = Function("y") 
ode = Eq(x*Derivative(y(x), (x, 2)) + (1 - 2*x)*Derivative(y(x), x) + (x - 1)*y(x),0) 
ics = {} 
dsolve(ode,func=y(x),ics=ics)
 
False