Recently I've tried to find the difference between partial differentiation and total differentiation. I've heard the total derivative is defined on single value functions, while the partial derivative by contrast is defined on multivariate functions. My problem is, that total differentiation is used on multivariate functions all the time.
Every time I come up with a rigorous definition I arrive at a contradiction. I will share what I have defined so far, and hopefully you can enlighten me.
Let
$$f: (x_1, ... , x_n) \rightarrow f(x_1, ..., x_n)$$
and it's partial derivative by the difference quotient
$$\frac{\partial f}{\partial x_i} = \lim_{h \to 0} \frac{f(x_1,..,x_i+h,...x_n)- f(x_1,..., x_n)}{h}$$
the total derivative must by contrast account for interdependence between $x_k$ in the domain of f.
$$\frac{df}{dx_i}\stackrel{?}{=} \sum_k{\frac{\partial f}{\partial x_k} \frac{\partial x_k}{\partial x_i}}$$
This seemed sensible to me, until I realized it simplified to
$$n \frac{\partial f}{\partial x_i}$$
which definitely isn't right.
Can someone tell me where I've made an error? Or provide better definition? This issue really annoys me, since all my research so far didn't answer this question at all.
Edit: Ok thank you for all the responses! I'm just writing out the final formula for total derivatives for quick lookup now: $\frac{d}{d x_i}$ is defined recursively as $$\frac{df}{dx_i}\stackrel{!}{=} \sum_k{\frac{\partial f}{\partial x_k} \frac{d x_k}{d x_i}}$$
until $x_k$ has a domain without interdependence, in which case $\frac{\partial x_j}{\partial x_i}$ = $\frac{d x_j}{d x_i}$ and the entire expression can be calculated by limits.