Let \(g(x,y,z) = x^2 + y^2 + z^2\text{.}\) Then \(\nabla f(x,y,z) = (2x,4y,6z)\) and \(\nabla g(x,y,z) = (2x,2y,2z)\text{.}\) A point \((x,y,z)\) is a constrained critical point of \(f\) on the sphere \(S = \{ (x,y,z): x^2 + y^2 + z^2 = 1 \}\) only when there exists \(\lambda \in \R\) so that the two equations
\begin{equation*}
\nabla f(x,y,z) = \lambda \nabla g(x,y,z) \quad\text{and}\quad x^2 + y^2 + z^2 = 1
\end{equation*}
both hold, which expands to the four equations
\begin{gather*}
2x = \lambda 2x\\
4y = \lambda 2y\\
6z = \lambda 2z\\
x^2 + y^2 + z^2 = 1\text{.}
\end{gather*}
Since \(x^2 + y^2 + z^2 = 1\text{,}\) either \(x \neq 0\) (and dividing the first equation by \(x\) we obtain \(\lambda = 1\)), \(y \neq 0\) (and dividing the second equation we obtain \(\lambda = 2\)), or \(z \neq 0\) (and dividing the third equation by \(z\) gives \(\lambda = 3\)). When \(\lambda = 1\text{,}\) the first equation automatically holds, and the second and third equation can only hold when \(y = z = 0\text{.}\) Thus the fourth equation becomes \(x^2 = 1\text{,}\) so \(x = \pm 1\text{.}\) Similarly, when \(\lambda = 2\) we have \(x = z = 0\) and \(y = \pm 1\text{,}\) and when \(\lambda = 3\) we have \(x = y = 0 \) and \(z = \pm 1\text{.}\) So the function \(f\) has six constrained critical points on \(S\text{,}\) at the points \((\pm 1,0 ,0)\text{,}\) \((0,\pm 1, 0)\text{,}\) and \((0,0,\pm 1)\text{.}\) We have
\begin{equation*}
f(\pm 1,0,0) = 1 \quad f(0,\pm 1, 0) = 2 \quad\text{and}\quad f(0,0,\pm 1) = 3\text{.}
\end{equation*}
So the absolute minima of \(f\) occur at \((\pm 1, 0, 0)\text{,}\) and the absolute maxima of \(f\) occur at \((0,0,\pm 1)\text{.}\)