13.2.18 problem 22

Internal problem ID [2316]
Book : Differential equations and their applications, 3rd ed., M. Braun
Section : Section 1.2. Page 9
Problem number : 22
Date solved : Monday, January 27, 2025 at 05:45:28 AM
CAS classification : [_linear]

\begin{align*} y^{\prime }+\frac {y}{t}&=\cos \left (t \right )+\frac {\sin \left (t \right )}{t} \end{align*}

Solution by Maple

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

dsolve(diff(y(t),t)+1/t*y(t)=cos(t)+sin(t)/t,y(t), singsol=all)
 
\[ y = \sin \left (t \right )+\frac {c_1}{t} \]

Solution by Mathematica

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

DSolve[D[y[t],t]+1/t*y[t]==Cos[t]+Sin[t]/t,y[t],t,IncludeSingularSolutions -> True]
 
\[ y(t)\to \sin (t)+\frac {c_1}{t} \]