Looking at your other replies, I see you want to think of f(x) & g(x) as 2 seperate variables.
The answer to your question is, the partial derivative expression can change depending on the form of f, specifically, if you substitute relations between the variables into f.
Eg. f(x,y) = xy, where y=x
$$\frac{\partial f}{\partial x} = y = x $$ (without substitution)
$$\frac{\partial f}{\partial x} = 2x $$ (with substitution)
What remains consistent is the total derivative, which is given by,
$$\frac{df}{dx} = \frac{\partial f}{\partial x} + \frac{\partial f}{\partial y}\frac{dy}{dx}$$
For f = xy,
$$ \frac {df}{dx} = y + x.1 = x + x = 2x $$
For f = x.x,
$$ \frac {df}{dx} = 2x + 0.1 = 2x $$
Paritial derivative kind of pretends that the independent variables are constants. In cases where the variables are actually independent, partial and total derivatives are the same. But if there is some relation between the variables, partial derivative may not paint a proper picture of the actual ratio of change for a particular variable. That's where total derivative comes in.