12.9 problem 328

Internal problem ID [3584]

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

CAS Maple gives this as type [_linear]

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

Solution by Maple

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

dsolve(2*x^2*diff(y(x),x)+x*cot(x)-1+2*x^2*y(x)*cot(x) = 0,y(x), singsol=all)
 

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

Solution by Mathematica

Time used: 0.068 (sec). Leaf size: 18

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

\[ y(x)\to -\frac {1}{2 x}+c_1 \csc (x) \]