1.15 problem 3(a)

Internal problem ID [2534]

Book: Elementary Differential equations, Chaundy, 1969
Section: Exercises 3, page 60
Problem number: 3(a).
ODE order: 1.
ODE degree: 1.

CAS Maple gives this as type [_linear]

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

Solution by Maple

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

dsolve(tan(x)*diff(y(x),x)=y(x)-cos(x),y(x), singsol=all)
 

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

Solution by Mathematica

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

DSolve[Tan[x]*y'[x]==y[x]-Cos[x],y[x],x,IncludeSingularSolutions -> True]
 

\begin{align*} y(x)\to \cos (x)+\sin (x) (\arctan (\tan (x))+c_1) \\ \end{align*}