Given the first-order differential equation:
The textbook says you cannot differentiate both sides as y is on the right side and you have to use separation of variables. However, I did integrate both sides and arrived at this:
And the second last step is valid since can never be zero. However, this is not the correct answer, which is:
. Why is this?