Find maximum and minimum values of $f(x,y,z)=x^2yz$ on the region $x^2+y^2\leq1,$ $0\leq z\leq1.$
First, I get $\nabla f= (2xyz, x^{2}z, x^{2}y) = (0,0,0) \implies x = y = z = 0$, so the critical point is $(0,0,0)$, and $f(0,0,0)=0$. There is no singular point, so I just need to consider the boundary points. From $x^{2}+y^{2}=1 \implies x^{2}=1-y^{2} \implies f(x,y,z)=(1-y^{2})yz = yz-y^{3}z = g$, then I get $\nabla g = (z-3zy^{2}, y-y^{3}) = (0,0)$ → critical point of $g$ are $(-1,0),(1,0),(0,0)$,then I insert $y = \pm 1, 0$ into $x^{2}=1-y^{2}$ → $x = 0 , \pm 1$ → the boundary point of $f$ are $(±1,0,0),(0,±1,0)$, and all the $4$ points lead $f=0$. So the max and min of $f$ are $0$.
Of course my idea is wrong, but I don't know where I did anything wrong, does anyone could help me, thanks a lot.