60.3.35 problem 1040

Internal problem ID [11031]
Book : Differential Gleichungen, E. Kamke, 3rd ed. Chelsea Pub. NY, 1948
Section : Chapter 2, linear second order
Problem number : 1040
Date solved : Sunday, March 30, 2025 at 07:39:49 PM
CAS classification : [[_2nd_order, _with_linear_symmetries]]

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

Maple. Time used: 0.004 (sec). Leaf size: 33
ode:=diff(diff(y(x),x),x)+x*diff(y(x),x)-y(x) = 0; 
dsolve(ode,y(x), singsol=all);
 
\[ y = \sqrt {\pi }\, \sqrt {2}\, {\mathrm e}^{-\frac {x^{2}}{2}} c_2 +x \left (\pi c_2 \,\operatorname {erf}\left (\frac {\sqrt {2}\, x}{2}\right )+c_1 \right ) \]
Mathematica. Time used: 0.131 (sec). Leaf size: 45
ode=-y[x] + x*D[y[x],x] + D[y[x],{x,2}] == 0; 
ic={}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 
\[ y(x)\to -\sqrt {\frac {\pi }{2}} c_2 x \text {erf}\left (\frac {x}{\sqrt {2}}\right )-c_2 e^{-\frac {x^2}{2}}+c_1 x \]
Sympy
from sympy import * 
x = symbols("x") 
y = Function("y") 
ode = Eq(x*Derivative(y(x), x) - y(x) + Derivative(y(x), (x, 2)),0) 
ics = {} 
dsolve(ode,func=y(x),ics=ics)
 
False