6.5 problem 1.2-1 (e)

Internal problem ID [1962]

Book: Ordinary Differential Equations, Robert H. Martin, 1983
Section: Problem 1.2-1, page 12
Problem number: 1.2-1 (e).
ODE order: 1.
ODE degree: 1.

CAS Maple gives this as type [[_linear, class A]]

Solve \begin {gather*} \boxed {y^{\prime }-t +y=0} \end {gather*}

Solution by Maple

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

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

\[ y \relax (t ) = t -1+{\mathrm e}^{-t} c_{1} \]

Solution by Mathematica

Time used: 0.029 (sec). Leaf size: 16

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

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