10.1.10 problem 10

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

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

Solution by Maple

Time used: 0.003 (sec). Leaf size: 14

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

Solution by Mathematica

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

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