Given a composite function, $ y = (f \circ g)(x) $ that is continuous and differentiable for all $x$, we know from chain rule that $$ \frac{dy}{dx} = \frac{d(f \circ g)}{dx} = \frac{df}{dg} \frac{dg}{dx}$$ So is there a way to arrive at the above result using the definition of differentials as follows :
if $y = f(x)$ is a continuous and differentiable function for all $x$ then the differential of the function $$dy = d(f(x)) = f'(x) \Delta x $$ and let another function $ g(x) = x$, then the differential of the function $g(x)$ is $d(g(x)) = d(x) = g'(x)\Delta x = \Delta x$ So $$ dy = f'(x)dx $$
So the question is is there a way to arrive at the chain rule of differentiation based on the definitions given to the differentials of the functions? I dont quite understand why Leibnz notation is still used widely but my guess is that the notation is very suggestive and helps in remembering rules. I also understood that the differential is given the definition above to give precise meaning and reconcile with the way of writing derivatives as $ \frac{df(x)}{dx} = f'(x)$ So i cant help but wonder whether the chain rule is also taken into consideration when the definition is formulated by mathematicians. This question is motivated by the confusion ive had behind the notations for chain rule mentioned above (that most books used in standard calculus texts). The source of the confusion is the ambiguity of the symbol $dg$ in the equation. As far as i gathered from the definition of differentials,
the two $dg$s are the differentials of two different functions but yet they are both denoted by the same symbol $dg$.
If we look at the functions $f$ and $g$ separately, notice that the differentials for each
$$df = f'(g) \Delta g$$ but the $\Delta g$ is replaced by the differential of another function $k(g) = g$ where $d(k(g)) = d(g) = \Delta g$, similarly, $d(g(x)) = g'(x)dx$
Shouldnt the chain rule be written like this instead:
$$ \frac{d(f \circ g)}{dx} = \frac{df}{d(g)} \frac{d(g(x))}{dx}$$
because clearly by the chain rule
$$\frac{d(f \circ g)}{dx} =f'(g) g'(x)$$ and $$f'(g) = \frac{df}{\Delta g} = \frac{df}{d(k(g))} = \frac{df}{d(g)}$$ and since $$ g'(x) = \frac{d(g(x))}{\Delta x} = \frac{d(g(x))}{dx}$$
Both of the differentials at the denominator of $\frac{df}{dg}$ and numerator of $\frac{dg}{dx}$ both denote the differential of two different functions, one being the differential of a function $k(g) = g$ and another being the differential of the function $g(x)$ itself?? Am i understanding anything wrongly? Is there a reason why most books still write it as
$$ \frac{dy}{dx} = \frac{d(f \circ g)}{dx} = \frac{df}{dg} \frac{dg}{dx}$$ If there is a way to reconcile all these inconsistencies i wish to know. Thanks in advance.