4.1.12 \(y'(x)=y(x) \cos (x)+\sin (x) \cos (x)\)

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

[_linear]

Book solution method
Linear ODE

Mathematica
cpu = 0.175461 (sec), leaf count = 18

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

Maple
cpu = 0.04 (sec), leaf count = 15

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

DSolve[y'[x] == Cos[x]*Sin[x] + Cos[x]*y[x],y[x],x]

Mathematica raw output

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

Maple raw input

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

Maple raw output

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