Partial derivatives are defined in terms of functions. Total derivatives are defined in terms of variables. They are the same concept defined in 2 different languages.
Partial derivatives, when used correctly, are always the derivative of a function with respect to one of it's parameters. So, for example, suppose you are given to assume:
$$f(x, y) = x^2y + \sin(x)$$
And asked to calculate $\frac{\partial f}{\partial x}$. Here, you see that the denominator is $x$, and so you look for that in the definition of $f$, see that it is the first parameter, and take the derivative of $f$ with respect to that first parameter. So
$$\frac{\partial f}{\partial x} = 2xy + \cos(x)$$
$\frac{\partial f}{\partial z}$ in this case is meaningless, because $z$ is not used as one of the parameters defining $f$. Suppose you were asked to calculate
$$\frac{\partial f(z, {\color{red} x}^2)}{\partial {\color {green} x}}$$
First, realize that the red $x$ and the green $x$ represent 2 different things. The red $x$ is a variable, the green $x$ represents the parameter used to define $f$. They are not interchangable, it is rude to use the same name for 2 different concepts, but it is not too uncommon.
Second, the above is a shorthand for $\left(\frac{\partial f}{\partial x}\right)(z, x^2)$, that is, take the derivative then apply the arguments. It's value is $2zx^2 + \cos(z)$.
What is the partial derivative of $$\frac{\partial x}{\partial y}$$
when $x$ and $y$ are a part of a function $f(x,y)$?
It is never correct to take the partial derivative of a variable with respect to another variable, or to take the partial derivative of a parameter with respect to another parameter. It is only meaningly to take the partial derivative of a function with respect to one of it's parameters. It's should be mentioned that referring to a parameter outside of the definition of a function is an abuse of notation, the name is not in scope at that point.
A total derivative is always of a variable with respect to another variable. Sometimes, a total derivative will be written as the derivative of a function with respect to a variable, but there the function is just a shorthand for "the variable representing the output of a function".
Suppose you are given
$$f(x) = x^2$$
And asked to calculate $\frac{{\rm d}f}{{\rm d}x}$. That is not defined. The $x$ in the definition is a parameter, the $x$ in the denominator is a variable.
On the other hand, what if you are asked to calculate $\frac{{\rm d}f(x)}{{\rm d}x}$, then both the previous $x$s represent variables. To evaluate this, you apply the argument, then calculate the derivative:
$$\frac{{\rm d}f(x)}{{\rm d}x}$$
$$\frac{{\rm d}x^2}{{\rm d}x}$$
$$2x$$
Note that the is the opposite order of what is done with partial derivatives.
With a partial derivative, you first calculate the derivative, then apply the arguments. With a total derivative, you first apply the arguments, then calculate the derivative.
Total derivatives are the type of notation you would expect a scientist to use, because the variables represent concepts like time, temperature, gravitational force, etc. Partial derivatives are what purists use, because functions are very easy to define concepts and make it easier to connect differential calculus to formal foundations of mathematics.
It is common to see these notations confused and used incorrectly even in college textbooks.
$$\begin{align} df&=\frac{\partial f}{\partial x},dx+\frac{\partial f}{\partial y},dy\\ &=dx+dy \end{align}$$
If $y=g(x)$, then $dy=g'(x),dx$ and we find that
$$\frac{df}{dx}=1+g'(x)$$
– Mark Viola Jun 26 '16 at 17:28