I have many questions about the existence conditions when doing ODE. However I think that they have a common root(treating $y$ as a variable, instead of treating it as a function), so it can be meaningful to expose them in only one question:
(In the following points I'll present examples of differential equations, to explain better. My question, however, is of general nature so I don't really care about the kind of ODE)
Simplification of functions that depend only upon the independent variable $$a(x)y'+b(x)y=f(x) \ \ \ \mathbf{[1]}$$ Dividing by $a(x)$: $$y'+\frac{b(x)}{a(x)}y=\frac{f(x)}{b(x)} \ \ \ \ \ \ \ \mathbf{[2]}$$ Now this equation is equivalent to the former except when $a(x)=0$. Now suppose that we manage to find the general integral $\varphi$ of $\mathbf{[2]}$
Let $\mathcal{D}$, be the maximal domain in which is meaningful to define the map $x\mapsto \varphi(x)$ with codomain $\mathbb{R}$(that in general may be constant(s) dependent)
(Let's suppose that there aren't further simplifications or passages that require other existence conditions)
Now according to my logic the domain in which the general integral functions should be defined is(withouth other considerations):
$$(\mathcal{D}\cap\text{Dom}(a)\cap\text{Dom}(b)\cap\text{Dom}(f))/a^{-1}(\{0\})$$
(Or to be even more precise also a subset of this "maximal domain", such that each point is still of accumulation should be fine)
Is this correct? In the case that I'm correct, these gives us only the general integral of $\mathbf{[2]}$ that in general is a subset of the general integral of $\mathbf{[1]}$:am I correct?
Pseudo-inverses
Let's suppose we have: $$\frac{dy}{dx}=xe^{-x}(y^2+1)$$ Now comes a step that for me is completely unclear and infomal, so I don't know if this may be the cause of what comes next: $$\frac{1}{y^2+1}dy=xe^{-x} dx$$ Now I integrate both sides: $$\arctan(y)=-e^{-x}(x+1)+c$$ Now my hearth suggests me that this is possible iff: $$-\frac\pi2<-e^{-x}(x+1)+c<\frac\pi2$$ So let's call $A_c$ the set in which this disequation is verified. Supposing $x\in A_c$: $$y=\tan(-e^{-x}(x+1)+c)$$ So the general integral is: $$\varphi_c(x)=\tan(-e^{-x}(x+1)+c)$$ This should be defined in $A_c$ and only there(or in a suitable subset), because otherwise the the simplification of $\tan$ and $\arctan$ is meaningless. But if we try for example $c=0$, then $A_0 \approx (-1.39,+\infty]$. But in reality $\varphi_0(x)=\tan(-e^{-x}(x+1))$, satisfies the ODE everywhere excepts in the points in which $-e^{-x}(x+1)=k\frac\pi2$. Why is it so? Is there something wrong?
Simplification of functions that depend upon the $y$
Oh lord! These are the worse! Let's suppose: $$ y'=xy \ \ \ \mathbf{[1]} $$ $$ \frac{dy}{dx}=xy$$ $$\mathbf{(strange \ and \ unclear \ step)}$$ $$ \frac{1}{y}dy=x \ dx \ \ \ \mathbf{[2]}$$ Okay so I divided by $y$ so I should impose $y\neq 0$:but what should it mean? $y$ is a function, not a variable. Reasoning logically on what an ODE actually is, I came to the conclusion that this should mean: $y(x)\neq 0 \ \ \forall x\in \text{Dom}(y)$ Where I mean that if there are zeroes of $y$ in $\text{Dom}(y)$, they must be eliminated from $\text{Dom}(y)$, because if they are included we obtain a solution of $\mathbf{[2]}$, that won't be a solution of $\mathbf{[1]}$. However: $$ \frac{1}{y}dy=x \ dx $$ $$\ln|y|=\frac{x^2}{2}+c$$ $$|y|=ce^{\frac{x^2}{2}}\ \ \ c>0$$ Now the situation gets fun. I've seen many times this step: $$y=\pm ce^{\frac{x^2}{2}}\ \ \ c>0$$ $$y= ce^{\frac{x^2}{2}} \ \ \ c\neq 0$$ This is in my opinion conceptually wrong, because we are still treating $y$ as a mere variable.In my opinion $y$ could be for example(but it's not the only option), equal in some traits to $3 e^{\frac{x^2}{2}} $ and in other traits to $-3 e^{\frac{x^2}{2}} $. Even if we impose the domain of the solution to be a single interval, who assures us that we can't compose two traits in a way that makes the function still continous and derivable in the junction point? I don't know if it's possible in this case,but I'm speaking in general. However: $$y=c e^{\frac{x^2}{2}}, c \neq 0$$ And now according to my professor, we must consider the case that we lost in the condition existence that is to say $y=0$, that is to say that now we have to suppose $y$ to be the null function : What!? I don't believe that the condition $y\neq 0$ is $y$ isn't the null function:it's really much stronger than that!! Adding the null function we get: $$y=c e^{\frac{x^2}{2}} $$ But who tells us that there isn't some other solution of $\mathbf{[1]}$ that has some zeroes but is not the null function?
Thank you in advance for your help :)