1.20 problem 19

Internal problem ID [3283]

Book: Ordinary differential equations and their solutions. By George Moseley Murphy. 1960
Section: Various 1
Problem number: 19.
ODE order: 1.
ODE degree: 1.

CAS Maple gives this as type [_linear]

\[ \boxed {y^{\prime }+2 y \cot \left (x \right )=-\csc \left (x \right )} \]

Solution by Maple

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

dsolve(diff(y(x),x)+csc(x)+2*y(x)*cot(x) = 0,y(x), singsol=all)
 

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

Solution by Mathematica

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

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

\[ y(x)\to \csc ^2(x) (\cos (x)+c_1) \]