3.11 problem Problem 11

Internal problem ID [2140]

Book: Differential equations and linear algebra, Stephen W. Goode and Scott A Annin. Fourth edition, 2015
Section: Chapter 1, First-Order Differential Equations. Section 1.6, First-Order Linear Differential Equations. page 59
Problem number: Problem 11.
ODE order: 1.
ODE degree: 1.

CAS Maple gives this as type [_linear]

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

Solution by Maple

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

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

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

Solution by Mathematica

Time used: 0.051 (sec). Leaf size: 20

DSolve[y'[x]==Sin[x]*(y[x]*Sec[x]-2),y[x],x,IncludeSingularSolutions -> True]
 

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