65.10.5 problem 17.5

Internal problem ID [13709]
Book : AN INTRODUCTION TO ORDINARY DIFFERENTIAL EQUATIONS by JAMES C. ROBINSON. Cambridge University Press 2004
Section : Chapter 17, Reduction of order. Exercises page 162
Problem number : 17.5
Date solved : Wednesday, March 05, 2025 at 10:13:23 PM
CAS classification : [_Hermite]

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

Using reduction of order method given that one solution is

\begin{align*} y&=x \end{align*}

Maple. Time used: 0.006 (sec). Leaf size: 36
ode:=diff(diff(y(x),x),x)-x*diff(y(x),x)+y(x) = 0; 
dsolve(ode,y(x), singsol=all);
 
\[ y = c_{2} {\mathrm e}^{\frac {x^{2}}{2}}+\frac {x \left (i c_{2} \sqrt {2}\, \sqrt {\pi }\, \operatorname {erf}\left (\frac {i \sqrt {2}\, x}{2}\right )+2 c_{1} \right )}{2} \]
Mathematica. Time used: 0.044 (sec). Leaf size: 61
ode=D[y[x],{x,2}]-x*D[y[x],x]+y[x]==0; 
ic={}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 
\[ y(x)\to -\sqrt {\frac {\pi }{2}} c_2 \sqrt {x^2} \text {erfi}\left (\frac {\sqrt {x^2}}{\sqrt {2}}\right )+c_2 e^{\frac {x^2}{2}}+\sqrt {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