This is my first post. :)
I'm learning about solving differential equations by separation of variables and I have questions about the rigourousness of the method. As stated, I'm solving
$${dy\over dx} = y$$
The method that I've been taught goes like this.
Case 1: Assume $y(x) = 0$ for all $x$.
Check if $y(x) = 0$ is a solution. It is.
Case 2: Assume $y(x) = 0$ for no $x$.
We divide by $y$ on both sides to convert into separable form. This division is justified because $y \not= 0$. We get $dy/y = dx$. "Integrating" both sides, we get $\ln|y| = x+c$. Rearrange to isolate $y$, we get $y = \pm e^xe^c$, and realize that $\pm e^c$ is a nonzero free constant. $\square$
The above is the approach I've been taught. The problem is that we're missing a case. How about this?
Case 3: Assume $y(x) = 0$ for some $x$.
I feel that a completely rigourous solution also needs to prove that there are no solutions under this case. But I don't know how to prove it. If you possess a proof, I invite you to present your answer here. I'd be delighted to read it.
I've been reading a textbook that tried to prove this but I can't fill in all the missing steps myself. It goes something like this: Suppose we're not in Case 1, so that $y(x) \not= 0$ for some $x$. Since $y$ is continuous, there is some open interval around $x$ such that $y(x) \not= 0$ for all $x$ within the interval. Then all the steps in case 2 apply within this interval. But then I don't understand why this implies that $y(x) \not= 0$ outside of the interval as well. Anyway, this is only one possible proof method and I'm open to hearing others. Ideally, I'm interested a proof method that easily generalizes to other separable differential equations as well, because dividing by $y$ or a function of $y$ is quite common during the separation process.