1.4 problem 4

Internal problem ID [451]

Book: Elementary differential equations and boundary value problems, 10th ed., Boyce and DiPrima
Section: Section 2.1. Page 40
Problem number: 4.
ODE order: 1.
ODE degree: 1.

CAS Maple gives this as type [_linear]

\[ \boxed {\frac {y}{t}+y^{\prime }=3 \cos \left (2 t \right )} \]

Solution by Maple

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

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

\[ y \left (t \right ) = \frac {\frac {3 \cos \left (2 t \right )}{4}+\frac {3 \sin \left (2 t \right ) t}{2}+c_{1}}{t} \]

Solution by Mathematica

Time used: 0.073 (sec). Leaf size: 30

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

\[ y(t)\to \frac {6 t \sin (2 t)+3 \cos (2 t)+4 c_1}{4 t} \]