2.5 problem 30

Internal problem ID [3294]

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]

\[ \boxed {y^{\prime }-y \tan \left (x \right )=\sin \left (2 x \right )} \]

Solution by Maple

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

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

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

Solution by Mathematica

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

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

\[ y(x)\to -\frac {2 \cos ^2(x)}{3}+c_1 \sec (x) \]