I have a simple partial differentiation calculation that illustrates my problem,
$ u = x $; $v = x + y + 1 $ and $ w = u + v $
so
$\frac{\partial w}{\partial u} = 1$; $\frac{\partial w}{\partial v} = 1$ and $\frac{\partial w}{\partial x} = 2$
Now if I formulate this in a different way, making $v$ a function of $u$,
$ u = x $; $v = u + y + 1 $ and $ w = u + v $
the partial derivative
$\frac{\partial w}{\partial u} = 1 + \frac{\partial v}{\partial u}= 2$
changes, but $\frac{\partial w}{\partial v}$ and $\frac{\partial w}{\partial x}$ remain the same.
My question is this: is it correct that $\frac{\partial w}{\partial u}$ changes from one formulation to the other, or have I made a mistake? The change seems counter-intuitive, because $v$ is still equal to $x+1$. On the other hand, $w$ is clearly twice as sensitive to $u$ in the second formulation.
The background to this question is that I have two ways of calculating a quantity. One uses composite functions, the other avoids them; both use the same set of input data. I get different values when I calculate partial derivatives of the final result wrt intermediate quantities that are equivalent but calculated differently (like $v$ in my simple case).
I believe that my simple example shows that different sensitivities do not necessarily mean that there is a mistake in the calculations. But perhaps I have missed something?