77.36.4 problem 4

Internal problem ID [20722]
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 VIII (A) at page 125
Problem number : 4
Date solved : Thursday, October 02, 2025 at 06:22:25 PM
CAS classification : [[_2nd_order, _linear, _nonhomogeneous]]

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