8.21 problem 21

Internal problem ID [14423]

Book: INTRODUCTORY DIFFERENTIAL EQUATIONS. Martha L. Abell, James P. Braselton. Fourth edition 2014. ElScAe. 2014
Section: Chapter 2. First Order Equations. Review exercises, page 80
Problem number: 21.
ODE order: 1.
ODE degree: 1.

CAS Maple gives this as type [_separable]

\[ \boxed {y^{\prime }+t y=t} \]

Solution by Maple

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

dsolve(diff(y(t),t)+t*y(t)=t,y(t), singsol=all)
 

\[ y \left (t \right ) = 1+{\mathrm e}^{-\frac {t^{2}}{2}} c_{1} \]

Solution by Mathematica

Time used: 0.05 (sec). Leaf size: 24

DSolve[y'[t]+t*y[t]==t,y[t],t,IncludeSingularSolutions -> True]
 

\begin{align*} y(t)\to 1+c_1 e^{-\frac {t^2}{2}} \\ y(t)\to 1 \\ \end{align*}