I'm reading a little pdf book as an introduction to tensor analysis ("Quick introduction to tensor analysis", by R. A. Sharipov). I've reached the last section where it is explained how it is possible to differentiate a tensor field in curvilinear coordinates. The author derive the formula for the covariant derivative for a general tensor:
$$ \nabla_p X^{i_1, \cdots, i_r}_{j1, \cdots, j_s} = {{\partial X^{i_1, \cdots, i_r}_{j1, \cdots, j_s}} \over {\partial y^p}} + \sum_\alpha^r \sum_{m_\alpha} \Gamma^{i_\alpha}_{pm_\alpha}X^{i_1, \cdots, m_\alpha, \cdots, i_r}_{j1, \cdots, j_s} - \sum_\alpha^r \sum_{n_\alpha} \Gamma^{n_\alpha}_{pj_\alpha}X^{i_1, \cdots, i_r}_{j1, \cdots, n_\alpha, \cdots j_s} $$
I then used the formula (which is explained and derived inside the article) for the Christoffel symbol:
$$ \Gamma^k_{ij} = {{\partial y^k} \over {\partial x^q}} {{\partial^2 x^q} \over {\partial y^i \partial y^j}} $$
to calculate the Christoffel symbol for cylindrical coordinates. The author leaves as exercise to the reader to derive the expression of the gradient of a function $f$ in cylindrical coordinates starting from the covariant derivative. I've tryed to do what I was asked for, this is my attemp:
$$ \nabla f = (\nabla_\mu f) \hat{e}^\mu $$
which I've expanded into:
$$ \nabla f = \nabla_r f \hat{r} + \nabla_\varphi f \hat{\varphi} + \nabla_h f \hat{h} $$
where $r = \sqrt{(x^2 + y^2)}$, $\varphi = tan^{-1} {y \over x}$, $h = z$. Then I used the linearity of the derivation operation and used $f^r = f\hat{r}$, $f^\varphi = f\hat{\varphi}$, $f^h = f\hat{h}$. Hence the previous expansion can be calculated as:
$$ \nabla f = (\partial_r f^r + \Gamma^r_{rr} f^r + \Gamma^r_{r\varphi} f^\varphi + \Gamma^r_{rh} f^h) + (\partial_\varphi f^\varphi + \Gamma^\varphi_{\varphi r} f^r + \Gamma^\varphi_{\varphi \varphi} f^\varphi + \Gamma^\varphi_{\varphi h} f^h) + (\partial_h f^h + \Gamma^h_{h r} f^r + \Gamma^h_{h \varphi} f^\varphi + \Gamma^h_{h h} f^h)$$
where $\Gamma^r_{rr} = \Gamma^r_{r \varphi} = \Gamma^r_{rh} = \Gamma^\varphi_{\varphi r} = \Gamma^\varphi_{\varphi h} = \Gamma^h_{h r} = \Gamma^h_{h \varphi} = \Gamma^h_{hh} = 0$ and $\Gamma^\varphi_{\varphi \varphi} = {1 \over r}$
Henceforth:
$$ \nabla f = \partial_r f^r + \left (\partial_\varphi f^\varphi + {1 \over r} f^\varphi \right ) + \partial_h f^h $$
But from here I don't know how should I go forth, since the correct expression for gradient in cylindrical coordinates is:
$$ \nabla f = \partial_r f \hat{r} + {1 \over r} \partial_\varphi f \hat{\varphi} + \partial_h f \hat{h} $$
(which I've taken from wikipedia) Any advice on how I shall go on to derive the correct gradient formula?
P.S. Exuse my poor English, I'm still practising it. Anyway thanks in advance for your answer