8.24 problem 25

Internal problem ID [2056]

Book: Differential Equations by Alfred L. Nelson, Karl W. Folley, Max Coral. 3rd ed. DC heath. Boston. 1964
Section: Exercise 12, page 46
Problem number: 25.
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: 19

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

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

Solution by Mathematica

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

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

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