I am trying to calculate the gradient of a vector field $\boldsymbol{u}$.
In cartesian coordinates, I would normally do
$$\left(\nabla\boldsymbol{u}\right)_{ij}=\partial_{i}u_{j}=\left(\begin{array}{ccc} \partial_{x}u_{x} & \partial_{x}u_{y} & \partial_{x}u_{z}\\ \partial_{y}u_{x} & \partial_{y}u_{y} & \partial_{y}u_{z}\\ \partial_{z}u_{x} & \partial_{z}u_{y} & \partial_{z}u_{z} \end{array}\right)$$
but I want to express the gradient in spherical coordinates, i.e.
$$\nabla\boldsymbol{u}=\left(\hat{\boldsymbol{r}}\partial_{r}+\frac{\hat{\theta}}{r}\partial_{\theta}\frac{\hat{\phi}}{r\sin\theta}\partial_{\phi}\right)\boldsymbol{u}$$
However, $\boldsymbol{u}$ is defined as $$u_i = M_{ij} f_j$$, in cartesian components. $M=M(x,y,z)$ is a complicated expression, whereas $f$ is constant. So I should convert $u$ to spherical coordinates by transforming both $M$ and $f$ first, then apply the gradient $\nabla$ in spherical coordinates. This is quite laborious and in the end not crucial to my end goal, which is to integrate $\nabla \boldsymbol{u}$ over a spherical surface.
So my question is, could I leave $\boldsymbol{u}$ in cartesian coordinates and apply the gradient in spherical coordinates to it? This would look something like
$$\left(\nabla\boldsymbol{u}\right)_{11}=\partial_{r}u_{x}$$ $$\left(\nabla\boldsymbol{u}\right)_{12}=\partial_{r}u_{y}$$ $$\left(\nabla\boldsymbol{u}\right)_{22}=r^{-1}\partial_{\theta}u_{x}$$ $$\left(\nabla\boldsymbol{u}\right)_{22}=r^{-1}\partial_{\theta}u_{y}$$ $$\text{etc.}...$$
Would this present problems when integrating over a sphere, e.g.
$$\iint_{S}\nabla\boldsymbol{u}\cdot\boldsymbol{dS}\ \ ?$$
How should $\boldsymbol{dS}$ be rewritten in order for this hybrid formulation to make sense?