1.3 problem 1(c)

Internal problem ID [3031]

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 }+y \cot \left (x \right )=x} \]

Solution by Maple

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

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

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

Solution by Mathematica

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

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

\[ y(x)\to -x \cot (x)+c_1 \csc (x)+1 \]