38.12 problem Ex 12

Internal problem ID [11347]

Book: An elementary treatise on differential equations by Abraham Cohen. DC heath publishers. 1906
Section: Chapter IX, Miscellaneous methods for solving equations of higher order than first. Article 62. Summary. Page 144
Problem number: Ex 12.
ODE order: 2.
ODE degree: 1.

CAS Maple gives this as type [[_2nd_order, _exact, _linear, _homogeneous]]

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

Solution by Maple

Time used: 0.14 (sec). Leaf size: 39

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

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

Solution by Mathematica

Time used: 0.235 (sec). Leaf size: 45

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

\[ y(x)\to -c_1 \sin ^2(x)-\frac {1}{4} c_2 \left (2 \cos (x)+\sin ^2(x) (\log (\cos (x)+1)-\log (1-\cos (x)))\right ) \]