17.6.5 problem 1.2-1 (e)

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

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

Solution by Maple

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

dsolve(diff(y(t),t)=-y(t)+t,y(t), singsol=all)
 
\[ y = t -1+{\mathrm e}^{-t} c_{1} \]

Solution by Mathematica

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

DSolve[D[y[t],t]==-y[t]+t,y[t],t,IncludeSingularSolutions -> True]
 
\[ y(t)\to t+c_1 e^{-t}-1 \]