1.8 problem Problem 14.5 (b)

Internal problem ID [2493]

Book: Mathematical methods for physics and engineering, Riley, Hobson, Bence, second edition, 2002
Section: Chapter 14, First order ordinary differential equations. 14.4 Exercises, page 490
Problem number: Problem 14.5 (b).
ODE order: 1.
ODE degree: 1.

CAS Maple gives this as type [_linear]

\[ \boxed {y^{\prime }-y \cot \left (x \right )=-\frac {1}{\sin \left (x \right )}} \]

Solution by Maple

Time used: 0.015 (sec). Leaf size: 11

dsolve(diff(y(x),x)-y(x)*cot(x)+1/sin(x)=0,y(x), singsol=all)
 

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

Solution by Mathematica

Time used: 0.051 (sec). Leaf size: 13

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

\[ y(x)\to \cos (x)+c_1 \sin (x) \]