4.1.30 \(y'(x)=\sec (x)-y(x) \tan (x)\)

ODE
\[ y'(x)=\sec (x)-y(x) \tan (x) \] ODE Classification

[_linear]

Book solution method
Linear ODE

Mathematica
cpu = 0.163469 (sec), leaf count = 13

\[\{\{y(x)\to \sin (x)+c_1 \cos (x)\}\}\]

Maple
cpu = 0.032 (sec), leaf count = 11

\[[y \left (x \right ) = \left (\tan \left (x \right )+\textit {\_C1} \right ) \cos \left (x \right )]\] Mathematica raw input

DSolve[y'[x] == Sec[x] - Tan[x]*y[x],y[x],x]

Mathematica raw output

{{y[x] -> C[1]*Cos[x] + Sin[x]}}

Maple raw input

dsolve(diff(y(x),x) = sec(x)-y(x)*tan(x), y(x))

Maple raw output

[y(x) = (tan(x)+_C1)*cos(x)]