Example: Solve the following ODE:
$$y'+\sin(x+y)=\sin(x-y)$$
I have tried many ways to do this, but none of them worked. It isn't exact, and it isn't linear either. What should I do to move forward?
Any help appreciated.
Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. It only takes a minute to sign up.
Sign up to join this community$$y'+\sin(x+y)=\sin(x-y)$$ $$y'=\sin(x-y)-\sin(x+y)=-2\cos x \sin y$$ $$\frac{dy}{dx}=-2\cos x \sin y$$ $$\frac{dy}{\sin y}=-2\cos x \,dx$$ $$\csc y\, dy=-2\cos x \,dx$$ Integrating both sides, we get $$\ln|\csc y-\cot y|=-2\sin x + c$$ where $c$ is a constant of integration.