10.1.5 problem 5

Internal problem ID [1102]
Book : Elementary differential equations and boundary value problems, 10th ed., Boyce and DiPrima
Section : Section 2.1. Page 40
Problem number : 5
Date solved : Monday, January 27, 2025 at 04:33:29 AM
CAS classification : [[_linear, `class A`]]

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

Solution by Maple

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

dsolve(-2*y(t)+diff(y(t),t) = 3*exp(t),y(t), singsol=all)
 
\[ y = -3 \,{\mathrm e}^{t}+{\mathrm e}^{2 t} c_1 \]

Solution by Mathematica

Time used: 0.046 (sec). Leaf size: 17

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