78.14.5 problem 3 (c)

Internal problem ID [18270]
Book : DIFFERENTIAL EQUATIONS WITH APPLICATIONS AND HISTORICAL NOTES by George F. Simmons. 3rd edition. 2017. CRC press, Boca Raton FL.
Section : Chapter 3. Second order linear equations. Section 19. The Method of Variation of Parameters. Problems at page 135
Problem number : 3 (c)
Date solved : Monday, March 31, 2025 at 05:24:25 PM
CAS classification : [[_2nd_order, _linear, _nonhomogeneous]]

\begin{align*} y^{\prime \prime }-2 y^{\prime }-3 y&=64 x \,{\mathrm e}^{-x} \end{align*}

Maple. Time used: 0.004 (sec). Leaf size: 25
ode:=diff(diff(y(x),x),x)-2*diff(y(x),x)-3*y(x) = 64*x*exp(-x); 
dsolve(ode,y(x), singsol=all);
 
\[ y = \left (c_1 \,{\mathrm e}^{4 x}-8 x^{2}+c_2 -4 x \right ) {\mathrm e}^{-x} \]
Mathematica. Time used: 0.036 (sec). Leaf size: 31
ode=D[y[x],{x,2}] -2*D[y[x],x]-3*y[x]==64*x*Exp[-x]; 
ic={}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 
\[ y(x)\to e^{-x} \left (-8 x^2-4 x+c_2 e^{4 x}-1+c_1\right ) \]
Sympy. Time used: 0.238 (sec). Leaf size: 22
from sympy import * 
x = symbols("x") 
y = Function("y") 
ode = Eq(-64*x*exp(-x) - 3*y(x) - 2*Derivative(y(x), x) + Derivative(y(x), (x, 2)),0) 
ics = {} 
dsolve(ode,func=y(x),ics=ics)
 
\[ y{\left (x \right )} = C_{2} e^{3 x} + \left (C_{1} - 8 x^{2} - 4 x\right ) e^{- x} \]