In spherical coordinates, the gradient of is given by , as per Table 9.3.2.
By Table 9.3.3, the curl in spherical coordinates is
where the final simplification to the zero vector hinges on the equality of the mixed partial derivatives. That is why an assumption on the behavior of the function must be made.