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.
I find the max f = 2/(3^(3/2)), and min f = -2/(3^(3/2)). To see this true let x = rcost, and y = rsint, and consider 0 <= r <= 1. If you look at g(x,y) = yx^2 = r^3(cosx^2*sinx) = r^3(1 - sinx^2)sinx = r^3(sinx - sinx^3). Let h(t) = t - t^3 on [-1, 1] then h'(t) = 1 - 3t^2 = 0 <==> t = +/- 3^(-1/2), and h''(t) = -6t. From this h(t) attains max when t = 3^(-1/2) and attains min when t = -3^(-1/2) and the max h = 2/(3^(3/2)) and min h = -2/(3^(3/2)). So if you let r --> 1 and z --> 1 then max f = max h = 2/(3^(3/2)) and min f = min h = -2/(3^(3/2)).