I'm trying to understand why we can separate $\frac{dy}{dx}$ in separable differential equations when rigorously it's not a fraction but an operator (AFAIK).
I have an assumption, but I'm not sure that it's right. I'm not a mathematician, just a math-curious self-taught programmer and factory worker (all together). I eventually realized that I don't understand how the separation of $\frac{dy}{dx}$ actually works in the background and got kind of nerd-sniped (xkcd 356). I never took a course on rigorous Analysis, just lectures on Calculus a few years ago, from MIT OCW and Professor Leonard and such.
Well, I came here to the community of mathematicians to ask if my first attempt is correct and what should I do with the second one in order to finish it, because I am stuck there.
Fist attempt:
$\frac{dy}{dx} = f(x)g(y)$, $\frac{1}{g(y)}\frac{dy}{dx} = f(x)$, we can write: $\frac{1}{g(y)}$ as: $\frac{d}{dy} \int\frac{1}{g(y)}dy$.
Then: $\frac{d}{dy} \int\frac{1}{g(y)}dy\frac{dy}{dx} = f(x)$.
I see a similarity to the chain rule, so maybe I can use it. Recall "The Chain Rule": $\frac{du}{dx} = \frac{du}{dy} \frac{dy}{dx}$,
and let $u = \int\frac{1}{g(y)}dy$, so if we substitute it into the chain rule, we get: $\frac{d}{dx} \int\frac{1}{g(y)}dy = \frac{d}{dy} \int\frac{1}{g(y)}dy \frac{dy}{dx}$, since the first term of the right-hand side is simply a differentiation of an integration with respect to the same variable ${y}$ then according to the fundamental theorem of calculus:
$\frac{d}{dx} \int\frac{1}{g(y)}dy = \frac{1}{g(y)} \frac{dy}{dx} = f(x)$.
Now if I integrate all this with respect to $x$: $\int[\frac{d}{dx} \int\frac{1}{g(y)}dy]dx = \int[\frac{1}{g(y)} \frac{dy}{dx}]dx = \int f(x) dx$. I finally get $\frac{dy}{dx}$ separated without "abusing notation": $\int\frac{1}{g(y)}dy = \int\frac{1}{g(y)} \frac{dy}{dx}dx = \int f(x) dx$; $\int\frac{1}{g(y)}dy = \int f(x) dx$.
Is this attempt correct?
Second attempt (which I stuck with at the end):
$\frac{dy}{dx} = f(x)g(y)$; $\frac{1}{g(y)}\frac{dy}{dx} = f(x)$.
Let: $G(u) = \int\frac{1}{g(u)}du$$ where ${u} = y(x)$ and therefore ${du} = \frac{d}{dx}y(x)$. Then I think that I can rewrite: $G(u) = \int\frac{1}{g(u)}du$ as: $G(y(x)) = \int\frac{1}{g(y(x))} \frac{d}{dx} y(x)$.
Then: $\frac{1}{g(y)}\frac{dy}{dx} = f(x)$ can be rewritten as: $\frac{d}{dy}G(y(x)) \frac{dy}{dx} = f(x)$.
Recall the Chain Rule: $\frac{du}{dx} = \frac{du}{dy} \frac{dy}{dx}$ and in this case the $u = G(y(x))$, so we get: $\frac{d}{dx} G(y(x)) = \frac{d}{dy} G(y(x)) \frac{dy}{dx} = f(x)$, then I integrate all this with respect to ${x}$ like this:
$\int\frac{d}{dx} G(y(x)) dx = \int[\frac{d}{dy} G(y(x)) \frac{dy}{dx}]dx = \int f(x) dx$, since $G(y(x)) = \int\frac{1}{g(y(x))} \frac{d}{dx} y(x)$:
$\int[\frac{d}{dx} \int\frac{1}{g(y(x))} \frac{d}{dx} y(x)] dx = \int[\frac{d}{dy} \int\frac{1}{g(y(x))} \frac{d}{dx} y(x) \frac{dy}{dx}]dx = \int f(x) dx$
And here I stuck and don't know what (and why) to do with all this mess.