7.21 problem 21

Internal problem ID [13123]

Book: Ordinary Differential Equations. An introduction to the fundamentals. Kenneth B. Howell. second edition. CRC Press. FL, USA. 2020
Section: Chapter 8. Review exercises for part of part II. page 143
Problem number: 21.
ODE order: 1.
ODE degree: 1.

CAS Maple gives this as type [_quadrature]

\[ \boxed {2 \cos \left (x \right ) y^{\prime }=-\sin \left (x \right )} \]

Solution by Maple

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

dsolve(sin(x)+2*cos(x)*diff(y(x),x)=0,y(x), singsol=all)
 

\[ y \left (x \right ) = \frac {\ln \left (\cos \left (x \right )\right )}{2}+c_{1} \]

Solution by Mathematica

Time used: 0.009 (sec). Leaf size: 15

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

\[ y(x)\to \frac {1}{2} \log (\cos (x))+c_1 \]