4.5.12 \(x y'(x)+\tan (y(x))=0\)

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

[_separable]

Book solution method
Exact equation, integrating factor

Mathematica
cpu = 0.241522 (sec), leaf count = 14

\[\left \{\left \{y(x)\to \sin ^{-1}\left (\frac {e^{c_1}}{x}\right )\right \}\right \}\]

Maple
cpu = 0.068 (sec), leaf count = 12

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

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

Mathematica raw output

{{y[x] -> ArcSin[E^C[1]/x]}}

Maple raw input

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

Maple raw output

[y(x) = arcsin(1/x/_C1)]