Assume the following:
$(1)$ Let $f: R \to R$.
$(2)$ Moreover, let $f = g \circ h$,
$(3)$ where $h:R\to R^d$, and $g: R^d \to R$
then the derivative of $f$ can be written as: $f' =h' \cdot g'\circ h$ i.e.:
$(4)$ $f'(x)=h'(x) \cdot g'(h(x))$
However, since $h$ and $g$ are not straightforward functions from $R$ to $R$, I am not sure how to interpret this equation correctly.
So my questions:
Is equation $(4)$ correct, and is there a single correct way of interpreting it?
How should I interpret $(4)$ so that $h'(x)$ and $g'(h(x))$ can be explicitly calculated separately?
ps. I am aware of the existence of gradients and such in multivariate calculus, and have some experience with them, but apparently not enough to know what to do in this situation.