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]

Solve \begin {gather*} \boxed {y^{\prime } \tan \relax (x )-y+\cos \relax (x )=0} \end {gather*}

Solution by Maple

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

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

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

Solution by Mathematica

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

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

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