In spherical polar coordinates, the gradient is given by:
gradf = (∂f/∂r)er + (1/r)(∂f/∂θ)eθ + (1/(r sinθ))(∂f/∂φ)eφ
where er, eθ, and eφ are the unit vectors in the radial, azimuthal, and polar directions respectively.
For the function f=x^(2)+y^(2)+z^(2), we
Show more…