I read a set of notes recently (unfortunately I can't find the link) in which the author made a statement of the form "differentiation of a function with respect to a function doesn't make sense". By this, do they simply mean that in "ordinary" calculus taking a derivative of a function with respect to another function, where we consider the whole range of the function simultaneously, has no meaning? Obviously, in variational calculus one has functionals which do depend on the entire function and hence a functional derivative is with respect to a function where we consider it as a whole. But does this have a meaning in elementary calculus?
After reading this statement I haven't been able to shake a nagging doubt in my mind that I may be misunderstanding things. I mean, in "ordinary" calculus, the only case that I can think of where we take a derivative of function with respect to another is in the chain rule. However, here aren't we doing a pointwise procedure? For example, if one has a function $$g:x\mapsto g(x)=y$$ and another function $$f:y\mapsto f(y)=z$$ Then, $$f\circ g:x\mapsto f\circ g(x)=f(g(x))=f(y)$$ and this is done pointwise, i.e. for each value $g(x)=y$ we "plug" this into $f$ and obtain an output value $f(y)=f(g(x))$. Then taking the derivative is also carried out in a pointwise fashion, $$\frac{d(f\circ g)(x)}{dx}=f'(g(x))g'(x)$$ so in this sense one is treating the output of $g$ as an input variable for $f$ and then taking a derivative of $f$ with respect to this variable (I think this is what is meant by $f'(g(x))$?)
If someone could clear this issue up for me I'd much appreciate it.