I'm really stuck on how to go about solving the following first order ODE; I've got little idea on how to approach it, and I'd really appreciate if someone could give me some hints and/or working for a solution so I can have a reference point on how to approach these sorts of problems.
The following is one of many ODE's I've gotten off a problem set I found in a textbook at a library:
$$y' = xe^{-\sin(x)} - y\cos(x)$$
Can anyone help?
I always like to think of these type of ODE's in terms of the product rule. \begin{equation}x=y'e^{\sin(x)}+y\cos(x)e^{\sin(x)}=\left(ye^{\sin(x)}\right)' \end{equation} So integrating both sides and dividing by $e^{\sin(x)}$ yields\begin{equation}y=e^{-\sin(x)}\left(\frac{1}{2}x^2+c\right). \end{equation}