4.19 problem 5.2 (i)

Internal problem ID [13365]

Book: Ordinary Differential Equations. An introduction to the fundamentals. Kenneth B. Howell. second edition. CRC Press. FL, USA. 2020
Section: Chapter 5. LINEAR FIRST ORDER EQUATIONS. Additional exercises. page 103
Problem number: 5.2 (i).
ODE order: 1.
ODE degree: 1.

CAS Maple gives this as type [_linear]

\[ \boxed {y^{\prime } x +\left (2+5 x \right ) y=\frac {20}{x}} \]

Solution by Maple

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

dsolve(x*diff(y(x),x)+(5*x+2)*y(x)=20/x,y(x), singsol=all)
 

\[ y \left (x \right ) = \frac {{\mathrm e}^{-5 x} c_{1} +4}{x^{2}} \]

Solution by Mathematica

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

DSolve[Cos[x]*y'[x]+Sin[x]*y[x]==Cos[x]^2,y[x],x,IncludeSingularSolutions -> True]
 

\[ y(x)\to (x+c_1) \cos (x) \]