Let $f(x)$ be a smooth function. Consider a surface of revolution, \begin{equation} M(u, v) = (f(v) \cos(u), f(v) \sin(u), v). \end{equation} (a) Calculate coefficients of the first and second fundamental forms for the surface;
(b) Calculate principal curvatures κ1, κ2, the Gaussian curvature K and the mean curvature H;
(c) Find the length of the portion of the normal line contained between a point of the surface and the axis of revolution (in the present case, the z-axis).
I have obtained the first fundamental form and tried working out the second fundamental form and obtained the following: \begin{equation} \frac{1}{\sqrt{f^2(v)(1+f'^2(v))}} (l du^2 + 2mdudv+n dv^2) \end{equation} where $l= \frac{(-f(v)\cos(u),-f(v)\sin(u),0)}{\sqrt{f^2(v)(1+f'^2(v))}}$,
$m=\frac{(-f'(v)\sin(u),f'(v)\cos(u),0)}{\sqrt{f^2(v)(1+f'^2(v))}}$,
$n=\frac{f''(v)\cos(u),f''(v)\sin(u),1)}{\sqrt{f^2(v)(1+f'^2(v))}}$
I am not too sure whether my values for $l, m$ and $n$ is correct because from what I know, numerator for all 3 of them should be scalar and not be in vector form. Any help would be appreciated.