73.15.33 problem 22.10 (f)

Internal problem ID [15393]
Book : Ordinary Differential Equations. An introduction to the fundamentals. Kenneth B. Howell. second edition. CRC Press. FL, USA. 2020
Section : Chapter 22. Method of undetermined coefficients. Additional exercises page 412
Problem number : 22.10 (f)
Date solved : Monday, March 31, 2025 at 01:36:24 PM
CAS classification : [[_2nd_order, _with_linear_symmetries]]

\begin{align*} y^{\prime \prime }+4 y^{\prime }+5 y&=8 \,{\mathrm e}^{-3 x} \end{align*}

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