1.18 problem 17

Internal problem ID [2772]

Book: Ordinary differential equations and their solutions. By George Moseley Murphy. 1960
Section: Various 1
Problem number: 17.
ODE order: 1.
ODE degree: 1.

CAS Maple gives this as type [_linear]

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

Solution by Maple

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

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

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

Solution by Mathematica

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

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

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