90.14.12 problem 21

Internal problem ID [25240]
Book : Ordinary Differential Equations. By William Adkins and Mark G Davidson. Springer. NY. 2010. ISBN 978-1-4614-3617-1
Section : Chapter 3. Second Order Constant Coefficient Linear Differential Equations. Exercises at page 243
Problem number : 21
Date solved : Thursday, October 02, 2025 at 11:59:14 PM
CAS classification : [[_2nd_order, _linear, _nonhomogeneous]]

\begin{align*} y^{\prime \prime }+6 y^{\prime }+9 y&=25 \,{\mathrm e}^{2 t} t \end{align*}
Maple. Time used: 0.003 (sec). Leaf size: 31
ode:=diff(diff(y(t),t),t)+6*diff(y(t),t)+9*y(t) = 25*exp(2*t)*t; 
dsolve(ode,y(t), singsol=all);
 
\[ y = \frac {\left (5 t \,{\mathrm e}^{5 t}-2 \,{\mathrm e}^{5 t}+5 t c_1 +5 c_2 \right ) {\mathrm e}^{-3 t}}{5} \]
Mathematica. Time used: 0.01 (sec). Leaf size: 29
ode=D[y[t],{t,2}]+6*D[y[t],{t,1}]+9*y[t]==25*t*Exp[2*t]; 
ic={}; 
DSolve[{ode,ic},y[t],t,IncludeSingularSolutions->True]
 
\begin{align*} y(t)&\to e^{-3 t} \left (e^{5 t} \left (t-\frac {2}{5}\right )+c_2 t+c_1\right ) \end{align*}
Sympy. Time used: 0.151 (sec). Leaf size: 27
from sympy import * 
t = symbols("t") 
y = Function("y") 
ode = Eq(-25*t*exp(2*t) + 9*y(t) + 6*Derivative(y(t), t) + Derivative(y(t), (t, 2)),0) 
ics = {} 
dsolve(ode,func=y(t),ics=ics)
 
\[ y{\left (t \right )} = t e^{2 t} + \left (C_{1} + C_{2} t\right ) e^{- 3 t} - \frac {2 e^{2 t}}{5} \]