6.28 problem 28

Internal problem ID [595]

Book: Elementary differential equations and boundary value problems, 10th ed., Boyce and DiPrima
Section: Miscellaneous problems, end of chapter 2. Page 133
Problem number: 28.
ODE order: 1.
ODE degree: 1.

CAS Maple gives this as type [_linear]

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

Solution by Maple

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

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

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

Solution by Mathematica

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

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

\[ y(t)\to -t+\frac {c_1}{t^2} \]