17.6.3 problem 1.2-1 (c)

Internal problem ID [3440]
Book : Ordinary Differential Equations, Robert H. Martin, 1983
Section : Problem 1.2-1, page 12
Problem number : 1.2-1 (c)
Date solved : Monday, January 27, 2025 at 07:36:47 AM
CAS classification : [[_linear, `class A`]]

\begin{align*} y^{\prime }&=2 y+{\mathrm e}^{-3 t} \end{align*}

Solution by Maple

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

dsolve(diff(y(t),t)=2*y(t)+exp(-3*t),y(t), singsol=all)
 
\[ y = \frac {\left (5 c_{1} {\mathrm e}^{5 t}-1\right ) {\mathrm e}^{-3 t}}{5} \]

Solution by Mathematica

Time used: 0.069 (sec). Leaf size: 23

DSolve[D[y[t],t]==2*y[t]+Exp[-3*t],y[t],t,IncludeSingularSolutions -> True]
 
\[ y(t)\to -\frac {e^{-3 t}}{5}+c_1 e^{2 t} \]