1.14 problem 3(c)

Internal problem ID [3042]

Book: Elementary Differential equations, Chaundy, 1969
Section: Exercises 3, page 60
Problem number: 3(c).
ODE order: 1.
ODE degree: 1.

CAS Maple gives this as type [_linear]

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

Solution by Maple

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

dsolve(tan(x)*diff(y(x),x)+y(x)=cot(x),y(x), singsol=all)
 

\[ y \left (x \right ) = \frac {\cos \left (x \right )+\ln \left (\csc \left (x \right )-\cot \left (x \right )\right )+c_{1}}{\sin \left (x \right )} \]

Solution by Mathematica

Time used: 0.085 (sec). Leaf size: 29

DSolve[Tan[x]*y'[x]+y[x]==Cot[x],y[x],x,IncludeSingularSolutions -> True]
 

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