63.9.17 problem 2(e)

Internal problem ID [13144]
Book : A First Course in Differential Equations by J. David Logan. Third Edition. Springer-Verlag, NY. 2015.
Section : Chapter 2, Second order linear equations. Section 2.3.1 Nonhomogeneous Equations: Undetermined Coefficients. Exercises page 110
Problem number : 2(e)
Date solved : Tuesday, January 28, 2025 at 05:06:30 AM
CAS classification : [[_2nd_order, _with_linear_symmetries]]

\begin{align*} x^{\prime \prime }+x&=9 \,{\mathrm e}^{-t} \end{align*}

Solution by Maple

Time used: 0.004 (sec). Leaf size: 19

dsolve(diff(x(t),t$2)+x(t)=9*exp(-t),x(t), singsol=all)
 
\[ x \left (t \right ) = c_{2} \sin \left (t \right )+\cos \left (t \right ) c_{1} +\frac {9 \,{\mathrm e}^{-t}}{2} \]

Solution by Mathematica

Time used: 0.014 (sec). Leaf size: 25

DSolve[D[x[t],{t,2}]+x[t]==9*Exp[-t],x[t],t,IncludeSingularSolutions -> True]
 
\[ x(t)\to \frac {9 e^{-t}}{2}+c_1 \cos (t)+c_2 \sin (t) \]