6.20 problem 20

Internal problem ID [2006]

Book: Differential Equations by Alfred L. Nelson, Karl W. Folley, Max Coral. 3rd ed. DC heath. Boston. 1964
Section: Exercise 10, page 41
Problem number: 20.
ODE order: 1.
ODE degree: 1.

CAS Maple gives this as type [_linear]

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

Solution by Maple

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

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

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

Solution by Mathematica

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

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

\[ y(x)\to \csc (x) (-\log (\cos (x))+c_1) \]