2
$\begingroup$

Possible Duplicate:
$dy/dx = y \sin x-2\sin x$, $y(0) = 0$ — Initial Value Problem

$$\frac{dy}{dx} = y\sin x - 2\sin x,\quad y(0) = 0$$

So, I get

$$\frac{1}{y-2} dy = \sin x dx.$$

Then, I integrated and got

$$\ln(y-2) =-\cos x + C.$$

Then, I did $e$^ both sides, but I end up with $\ln(-2)$ which is an error.

Can someone help me? Thank you.

  • 0
    I couldn't get the answer from the responses in my previous question. I have indicated above where I am stuck.2012-10-04
  • 0
    Here is the [solution](http://math.stackexchange.com/questions/207401/dy-dx-y-sin-x-2-sin-x-y0-0-initial-value-problem/207412#207412).2012-10-05

2 Answers 2