59.1.219 problem 222

Internal problem ID [9391]
Book : Collection of Kovacic problems
Section : section 1
Problem number : 222
Date solved : Wednesday, March 05, 2025 at 07:48:31 AM
CAS classification : [_erf]

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

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