4.1.33 \(y'(x)=2 y(x) \tan (x)+\sin (x)\)

ODE
\[ y'(x)=2 y(x) \tan (x)+\sin (x) \] ODE Classification

[_linear]

Book solution method
Linear ODE

Mathematica
cpu = 0.19871 (sec), leaf count = 19

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

Maple
cpu = 0.019 (sec), leaf count = 29

\[\left [y \left (x \right ) = \frac {-3 \cos \left (x \right )-\cos \left (3 x \right )+12 \textit {\_C1}}{6 \cos \left (2 x \right )+6}\right ]\] Mathematica raw input

DSolve[y'[x] == Sin[x] + 2*Tan[x]*y[x],y[x],x]

Mathematica raw output

{{y[x] -> -1/3*Cos[x] + C[1]*Sec[x]^2}}

Maple raw input

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

Maple raw output

[y(x) = (-3*cos(x)-cos(3*x)+12*_C1)/(6*cos(2*x)+6)]