where we have used the spherical coordinate unit vectors in Cartesian components
These unit vectors have time derivatives
Thus particle velocities are given by
In components, then
, and
.
by dt reproduces the velocity above
The rate of change of V in the direction
is given by the unit vector
in this direction dotted into the gradient (this gives the projection of the gradient onto the
-direction). Here normalizing our unit vector
so
Since this is negative, the potential is decreasing, at rate
(in whatever units are presumed given). The force component
, so that
.
Each component of
is thus the difference of mixed partial derivatives, for example
Since the order of partial differentiation does not matter,
and the mixed partial derivatives cancel, leaving
.
We are to check this manually for
. Here
so
For
,
This gives the loop integral
Since
, this gives
The two x-integrals cancel (since
doesn't depend on the different values of y), leaving us with
For
,
This gives the loop integral
Since
, which gives
in our z=0 plane, this gives
Lastly, for
,
Integrating the x-partial derivative,
Then integrating the y-partial derivative adds a term
(Note that the 2xy term in
came from the first term in -V, which we'd already deduced from the x-integration.) Finally integrating the z-partial derivative shows that g(z) can only be a constant:
The only tricky leg is the diagonal one, for which
Since along this leg z= 2-y, we have
so along this leg
Having stated all variables on this leg in terms of y only, we're prepared to write our loop integral
Since
, which equals
in our x=0 plane, this gives