68.5.7 problem 7

Internal problem ID [17258]
Book : INTRODUCTORY DIFFERENTIAL EQUATIONS. Martha L. Abell, James P. Braselton. Fourth edition 2014. ElScAe. 2014
Section : Chapter 2. First Order Equations. Exercises 2.3, page 49
Problem number : 7
Date solved : Thursday, October 02, 2025 at 02:00:04 PM
CAS classification : [_linear]

\begin{align*} t y^{\prime }+y&=t \end{align*}
Maple. Time used: 0.001 (sec). Leaf size: 13
ode:=t*diff(y(t),t)+y(t) = t; 
dsolve(ode,y(t), singsol=all);
 
\[ y = \frac {t}{2}+\frac {c_1}{t} \]
Mathematica. Time used: 0.016 (sec). Leaf size: 17
ode=t*D[y[t],t]+y[t]==t; 
ic={}; 
DSolve[{ode,ic},y[t],t,IncludeSingularSolutions->True]
 
\begin{align*} y(t)&\to \frac {t}{2}+\frac {c_1}{t} \end{align*}
Sympy. Time used: 0.096 (sec). Leaf size: 8
from sympy import * 
t = symbols("t") 
y = Function("y") 
ode = Eq(t*Derivative(y(t), t) - t + y(t),0) 
ics = {} 
dsolve(ode,func=y(t),ics=ics)
 
\[ y{\left (t \right )} = \frac {C_{1}}{t} + \frac {t}{2} \]