4.9.15 \((1-\sin (x)) y'(x)+y(x) \cos (x)=0\)

ODE
\[ (1-\sin (x)) y'(x)+y(x) \cos (x)=0 \] ODE Classification

[_separable]

Book solution method
Separable ODE, Neither variable missing

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

\[\{\{y(x)\to -c_1 (\sin (x)-1)\}\}\]

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

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

DSolve[Cos[x]*y[x] + (1 - Sin[x])*y'[x] == 0,y[x],x]

Mathematica raw output

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

Maple raw input

dsolve((1-sin(x))*diff(y(x),x)+y(x)*cos(x) = 0, y(x))

Maple raw output

[y(x) = _C1*(sin(x)-1)]