2.5 problem 30

Internal problem ID [2785]

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

CAS Maple gives this as type [_linear]

Solve \begin {gather*} \boxed {y^{\prime }-\sin \left (2 x \right )-y \tan \relax (x )=0} \end {gather*}

Solution by Maple

Time used: 0.002 (sec). Leaf size: 21

dsolve(diff(y(x),x) = sin(2*x)+y(x)*tan(x),y(x), singsol=all)
 

\[ y \relax (x ) = \frac {-\frac {\cos \relax (x )}{2}-\frac {\cos \left (3 x \right )}{6}+c_{1}}{\cos \relax (x )} \]

Solution by Mathematica

Time used: 0.047 (sec). Leaf size: 19

DSolve[y'[x]==Sin[2*x]+y[x]*Tan[x],y[x],x,IncludeSingularSolutions -> True]
 

\begin{align*} y(x)\to -\frac {2 \cos ^2(x)}{3}+c_1 \sec (x) \\ \end{align*}