60.3.46 problem 1051

Internal problem ID [11042]
Book : Differential Gleichungen, E. Kamke, 3rd ed. Chelsea Pub. NY, 1948
Section : Chapter 2, linear second order
Problem number : 1051
Date solved : Sunday, March 30, 2025 at 07:40:06 PM
CAS classification : [[_2nd_order, _linear, _nonhomogeneous]]

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

Maple. Time used: 0.005 (sec). Leaf size: 23
ode:=diff(diff(y(x),x),x)-4*x*diff(y(x),x)+(4*x^2-3)*y(x)-exp(x^2) = 0; 
dsolve(ode,y(x), singsol=all);
 
\[ y = {\mathrm e}^{x \left (x -1\right )} \left ({\mathrm e}^{2 x} c_2 -{\mathrm e}^{x}+c_1 \right ) \]
Mathematica. Time used: 0.04 (sec). Leaf size: 34
ode=-E^x^2 + (-3 + 4*x^2)*y[x] - 4*x*D[y[x],x] + D[y[x],{x,2}] == 0; 
ic={}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 
\[ y(x)\to \frac {1}{2} e^{(x-1) x} \left (-2 e^x+c_2 e^{2 x}+2 c_1\right ) \]
Sympy
from sympy import * 
x = symbols("x") 
y = Function("y") 
ode = Eq(-4*x*Derivative(y(x), x) + (4*x**2 - 3)*y(x) - exp(x**2) + Derivative(y(x), (x, 2)),0) 
ics = {} 
dsolve(ode,func=y(x),ics=ics)
 
NotImplementedError : The given ODE Derivative(y(x), x) - (4*x**2*y(x) - 3*y(x) - exp(x**2) + Derivative(y(x), (x, 2)))/(4*x) cannot be solved by the factorable group method