Why is there only one term on the RHS of this chain rule with partial derivatives?

More generally, if $u(x_1,\ldots,x_n)$ is a partially differentiable function function in $n$ variables and $s_1,\ldots ,s_n$ are differentiable and $f(t)=u(s_1(t),\ldots,s_n(t))$ then $$\frac {df}{dt}=\frac{\partial u}{\partial x_1} \frac {d s_1}{d t}+\ldots +\frac{\partial u}{\partial x_n} \frac {d s_n}{d t}$$ Your $(\mathrm{A})$ is a special case of $n=2$ and $(1)$ is a special case of $n=1$


To expand a bit on Hagen von Eitzen’s answer and littleO’s comment, there are really two different functions that are both named ‘$u$’. The first is a function of two variables, $u:(x,y)\mapsto (x^2+2y)^2+4$, while the second is a function of only one variable, $u:t\mapsto t^2+4$. Let’s call the former $\bar u$ to keep them straight. We also have $p:(x,y)\mapsto x^2+2y$, so $\bar u=u\circ p$, i.e., $\bar u(x,y)=u(p(x,y))$. By the chain rule, ${\partial\over\partial x}\bar u={\partial\over\partial x}(u\circ p)=\sum{\partial u\over\partial w_i}{\partial w_i\over\partial x}$, the sum taken over all of the parameters $w_i$ of $u$. In this case, $u$ is a function of only one variable, so this sum has only the one term, ${\partial u\over\partial p}{\partial p\over\partial x}$. Because this $u$ is a function of only one variable, you might see this written as ${du\over dp}{\partial p\over\partial x}$ instead.


It comes from the divergence operator $\nabla$. Let $f$ be a scalar valued function then $\nabla f \equiv \partial \left\langle \dfrac{\partial f}{\partial x}, \dots \right\rangle$ vectorizes $f$. If you picture $f$ as the height of a hill and its parameters the coordinates of each point of the hill on the Earth, then $\nabla f$ points in the direction of largest change per unit distance on the Earth surface. So in your example, $s,t$ are the Earth surface coordinates. Now take the dot product with the tangent vector of a curve on the Earth's surface parameterized by $x: \langle s(x), t(x) \rangle$. Figure out what that means by looking at what dot product means.