72.7.1 problem 1

Internal problem ID [14742]
Book : DIFFERENTIAL EQUATIONS by Paul Blanchard, Robert L. Devaney, Glen R. Hall. 4th edition. Brooks/Cole. Boston, USA. 2012
Section : Chapter 1. First-Order Differential Equations. Exercises section 1.9 page 133
Problem number : 1
Date solved : Tuesday, January 28, 2025 at 07:13:23 AM
CAS classification : [_linear]

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

Solution by Maple

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

dsolve(diff(y(t),t)=-y(t)/t+2,y(t), singsol=all)
 
\[ y = t +\frac {c_{1}}{t} \]

Solution by Mathematica

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

DSolve[D[y[t],t]==-y[t]/t+2,y[t],t,IncludeSingularSolutions -> True]
 
\[ y(t)\to t+\frac {c_1}{t} \]