From time to time, I suddenly get confused with a change of variables in a partial derivative.
Here, I am trying to perform a change of variables $(x,t) \mapsto (\xi, \eta)$ where
$$\xi = t \qquad \qquad \text{and} \qquad \qquad \eta = x+t$$
The question is, how to compute $$\frac{\partial u}{\partial t}$$ in the new coordinate system?
Intuitively, since $\xi = t$ (or rather $t=\xi$), we should have
$$\frac{\partial u}{\partial t} = \frac{\partial u}{\partial \xi}$$
However, applying the chain rule for partial derivatives, we instead get
$$\frac{\partial u}{\partial t} = \frac{\partial u}{\partial \xi}\frac{\partial \xi}{\partial t} + \frac{\partial u}{\partial \eta}\frac{\partial \eta}{\partial t} = \frac{\partial u}{\partial \xi}(1) + \frac{\partial u}{\partial \eta}(1) = \frac{\partial u}{\partial \xi} + \frac{\partial u}{\partial \eta}$$
So which one is correct?
The second one is correct. Why is the other one wrong? Well when you write $$\frac{\partial u}{\partial \xi}$$what you really are saying is $$\frac{\partial u}{\partial \xi}{\huge|}_\eta$$, i.e. taking the derivative with respect to $\xi$, but keeping $\eta$ fixed. If we do this, we are restricting ourselves to the path $x=-t$, where $t$ varies. But we wanted to represent $$\frac{\partial u}{\partial t}{\huge|}_x$$with a fixed $x$. So this expression fails to express the same quantity. Using the chain rule works to ensure this error does not happen.