I understand this notation is now a differential operator and this is the limit of a quotient, but Leibniz regarded $\frac {dy}{dx}$ as a quotient. In Leibniz's theory where $\frac {dy}{dx}$ is a quotient, do the terms in chain rule cancel out?
For instance below, there are two instances of $du$. $$ y = f(u), u = u_1 = u_2 = g(x) $$ $$ \frac {dy}{du_2} \Big|_{g(x)} \cdot \frac {du_1}{dx} \Big|_{x} = (f \circ g)'(x) = (f' \circ g)(x) \cdot g'(x) $$
It's my understanding that: $$(du_1 = g(x+h) - g(x)) \ne (du_2 = (g(x) +h) - g(x))$$ becomes the following under the infinitesimal theory Leibniz used: $$\lim_{h \rightarrow 0} {(du_1 = g(x+h) - g(x)) = (du_2 = (g(x) +h) - g(x))}$$ $$du_1 =du_2$$
and the above terms $du_1, du_2$ cancel out, leaving $\frac {dy}{dx}$.
If these terms do not cancel and are unequal, why is $du_1 = du_2 = du$ used in the definition of the chain rule in modern theory? Are there advantages to viewing things like this from infinitesimal theory like Leibniz?