We are asked to find the maximum of $$f(x,y,z) = x+2y+3z$$ in the region in $\mathbb R^3$ where $$g(x,y,z) = x^2 +y^2 +z^2\leq w$$ as a function of w.
I've found the critical point (1,2,3) and their value for f. I've then taken the g term and singled out the x value, replacing x in f with the new value for x. I subsequently took the partial derivative of both y and z.
The answer I get is that y=z.
I put this into g and find a critical point, where the value of f is: $$f(w-5y^2, h^{-1/2}, h^{-1/2}) = w-5y^2 + 5h^{-1/2}$$ where $$h=({w-2y^2-3z^2})^{-1/2}$$
How is possible to determine the maximum from that?