A question came to my mind which is: is it possible to differentiate a function with respect to itself?
I tried to think of how it will work and came to this.
I begin with \begin{gather} f(x)=f(x). \end{gather}
It's kind of silly but bear with me.
Then I've applied the definition
\begin{gather}\lim_{f(x) \to f(a)} \frac{f(x)-f(a)}{f(x)-f(a)}=\lim_{f(x) \to f(a)} \frac{f(x)-f(a)}{f(x)-f(a)}\end{gather}
the L.H.S will be equal to $1$. Then,
\begin{gather}1=\lim_{f(x) \to f(a)} \frac{f(x)-f(a)}{f(x)-f(a)}.\end{gather}
The trick I've made is: as ${f(x) \to f(a)} \equiv x\to a$.
Then I rewrote the expression \begin{gather} \lim_{x \to a} \frac{f(x)-f(a)}{f(x)-(a)} =\lim_{f(x) \to f(a)} \frac{f(x)-f(a)}{f(x)-f(a)},\end{gather}
I multiplied by $x-a$ up and down,
\begin{gather} \lim_{x \to a} \frac{f(x)-f(a)}{x-a}.\frac{x-a}{f(x)-f(a)},\end{gather}
and I end up with this \begin{gather} 1=f'(a) \frac{dx}{df(x)}.\end{gather}
My question is: is it meaningful to have $\frac{dx}{df(x)}$? The independent variable is $x$, so how could we say that we measure the change of $x$ w.r.t. $f(x)$?
My second question: is it possible to apply the chain rule from the beginning? because I know that we can apply chain rule for a function of some variable, like $f(x)$ for example. But could we apply the chain rule for an independent variable of this function, like $x$ is the independent variable of $f(x)$. Could we say from the beginning $1=f'(x)\frac{dx}{d(f(x))}$, and why?
$\frac{dx}{d(f(x))}$ is completely valid if $x$ can be expressed as a function of $f(x)$, i.e., $x=g(f(x))$.
This function $g$ is the inverse of the function $f$, i.e. $f^{-1}$, hence the function $f$ must be invertible.
$g(x)$ must also be a differentiable function with respect to $x$.