I recently decided to declare as an applied math major and I've realized that I don't think I fully understand what derivative notation actually means. I'm kinda worried that I might have missed something and it may affect my progress in more advanced math classes like ODE which I'm taking right now.
I have always assumed that $\frac{dy}{{dx}}$ is just notation for a specific operation:
$$ \frac{dy}{{dx}} = \mathop {\lim }\limits_{h \to 0} \frac{{y\left( {x + h } \right) - y\left( x \right)}}{h} $$
I understand that this is the definition of a derivative but this doesn't seem to be the full story. For example what does $dx$ mean by itself? In practice it seems like $\frac{dy}{{dx}}$ is a ratio between two values $dy$ and $dx$ that have a mathematical meaning on their own. For example, its common to multiply both sides of an equation by $dx$. People say that $dx$ is just a small change in $x$ but what does that actually mean? One possible answer that I've just sorta assumed without thinking about it too much was
$$dx = \mathop {\lim }\limits_{a \to 0} (x + a) - x $$
But this seems wrong because it just evaluates to $dx = \mathop {\lim }\limits_{a \to 0} a = 0$. Reading wikipedia articles about differential notation isn't helping much but it sounds like the meaning of $dx$ has changed over time?
The specific thing that prompted my question was a problem in my ODE class. Take a linear differential equation that looks something like this:
$$ \frac{dy}{{dx}} + y = x^2 $$
I know what to do in order to solve this but the solution feels hand wavey. If you multiply both sides by the integrating factor $e^{x}dx$ and then integrate both sides you get
$$ \int e^{x}dy + e^{x}ydx = \int e^{x}x^2 dx $$
I just don't know how to interpret the RHS of the equation. Do I integrate with respect to x or y? Do I just integrate the $dx$ and $dy$ terms separately? Doing that doesn't give you $e^{x}y$ which is the actual answer.
Edit: some people are suggesting that in integral notation $dx$ is just sort of syntactical, it just shows where the end of the integration operation is. I am unsatisfied with this answer. If its just syntactical, then you would evaluate the ODE like this
$$ \int (e^{x}\frac{dy}{{dx}} + e^{x}y) dx \\ $$
If I am understanding the syntax argument correctly, you should be able to split this integral into two parts like this:
$$ \int e^{x}\frac{dy}{{dx}}dx + \int e^{x}y dx = e^xy + e^xy = 2e^xy $$
But this doesn't appear to be consistent with my ODE textbook, which says the actual answer is $e^xy$. They justified that by saying that the derivative of $e^yx$ is $e^{x}\frac{dy}{{dx}} + e^{x}y$ by the chain rule. This feels handwavey and leads me to believe that $ \int e^{x}\frac{dy}{{dx}}dx + \int e^{x}y dx $ is not notationally equivalent to $\int (e^{x}\frac{dy}{{dx}} + e^{x}y) dx$