4.1.27 \(y'(x)=y(x) \tan (x)\)

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

[_separable]

Book solution method
Separable ODE, Neither variable missing

Mathematica
cpu = 0.16776 (sec), leaf count = 10

\[\{\{y(x)\to c_1 \sec (x)\}\}\]

Maple
cpu = 0.008 (sec), leaf count = 10

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

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

Mathematica raw output

{{y[x] -> C[1]*Sec[x]}}

Maple raw input

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

Maple raw output

[y(x) = _C1/cos(x)]