When solving the differential equation:
$\frac{dx}{dt}=x(t)'=f(x)g(t)$,
we manipulate it so that
$\frac{1}{f(x)}dx=g(t)dt \Rightarrow \int \frac{1}{f(x)}dx= \int g(t)dt$
But from what I understand, it's not strictly allowed to split the $dx$ and $dt$ terms in this manner, since you can't simply multiply the $dt$ term to both sides.
So then my instinct is to look at
$\frac{1}{f(x)}\frac{dx}{dt}=g(t) \Rightarrow \int\frac{1}{f(x)}\frac{dx}{dt}dt=\int g(t)dt$
But even in this case, are we allowed to just cancel out the $dt$ terms on the left hand side? My intuition tells me that $dt$ isn't a number, so you shouldn't be allowed to do this? Can someone explain what's happening here, and if you are allowed to just cancel them... why?
I guess the concept of being able to split up and cancel out $dt$ terms is relevant for the chain rule and U-sub as well, so even in these 2 cases, why are we allowed to cancel/split up these differential terms?
Thank you in advance!