1.28 problem 45

Internal problem ID [12445]

Book: DIFFERENTIAL and INTEGRAL CALCULUS. VOL I. by N. PISKUNOV. MIR PUBLISHERS, Moscow 1969.
Section: Chapter 8. Differential equations. Exercises page 595
Problem number: 45.
ODE order: 1.
ODE degree: 1.

CAS Maple gives this as type [_linear]

\[ \boxed {-s+t s^{\prime }=-t} \]

Solution by Maple

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

dsolve((t-s(t))+t*diff(s(t),t)=0,s(t), singsol=all)
 

\[ s \left (t \right ) = \left (c_{1} -\ln \left (t \right )\right ) t \]

Solution by Mathematica

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

DSolve[(t-s[t])+t*s'[t]==0,s[t],t,IncludeSingularSolutions -> True]
 

\[ s(t)\to t (-\log (t)+c_1) \]