13.2.16 problem 20

Internal problem ID [2314]
Book : Differential equations and their applications, 3rd ed., M. Braun
Section : Section 1.2. Page 9
Problem number : 20
Date solved : Saturday, March 29, 2025 at 11:53:51 PM
CAS classification : [_linear]

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

Maple. Time used: 0.001 (sec). Leaf size: 12
ode:=diff(y(t),t)+1/t*y(t) = 1/t^2; 
dsolve(ode,y(t), singsol=all);
 
\[ y = \frac {\ln \left (t \right )+c_1}{t} \]
Mathematica. Time used: 0.026 (sec). Leaf size: 14
ode=D[y[t],t]+1/t*y[t]==1/t^2; 
ic={}; 
DSolve[{ode,ic},y[t],t,IncludeSingularSolutions->True]
 
\[ y(t)\to \frac {\log (t)+c_1}{t} \]
Sympy. Time used: 0.301 (sec). Leaf size: 8
from sympy import * 
t = symbols("t") 
y = Function("y") 
ode = Eq(Derivative(y(t), t) + y(t)/t - 1/t**2,0) 
ics = {} 
dsolve(ode,func=y(t),ics=ics)
 
\[ y{\left (t \right )} = \frac {C_{1} + \log {\left (t \right )}}{t} \]