83.41.23 problem 5 (x)

Internal problem ID [19432]
Book : A Text book for differentional equations for postgraduate students by Ray and Chaturvedi. First edition, 1958. BHASKAR press. INDIA
Section : Chapter VIII. Linear equations of second order. Excercise at end of chapter VIII. Page 141
Problem number : 5 (x)
Date solved : Monday, March 31, 2025 at 07:13:33 PM
CAS classification : [[_2nd_order, _linear, _nonhomogeneous]]

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

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