1.3 problem 1(c)

Internal problem ID [2522]

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

CAS Maple gives this as type [_linear]

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

Solution by Maple

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

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

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

Solution by Mathematica

Time used: 0.045 (sec). Leaf size: 17

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

\begin{align*} y(x)\to -x \cot (x)+c_1 \csc (x)+1 \\ \end{align*}