The gradient is a vector that points in the direction of the greatest rate of increase of the function, and its magnitude is the rate of increase in that direction. In spherical coordinates, the gradient is given by:
\[
\nabla U = \frac{\partial U}{\partial r}
Show more…