I got this question on my homework in Calculus 3 class. This exercise is about Lagrange multiplications and I can't get around it. The closed unit ball is compacted and $f$ is $C^1$ hence by Weierstrass theorem $f$ gets a minimum and a maximum over the ball.
Consider the constraint $g(x,y,z)=x^2+y^2+z^2-K$ where $K\in[0,1]$. We get that $\nabla g=(2x,2y,2z)$ is linearly independent since there is only one constraint. Thus by the Lagrange multiplier theorem, we get that $\nabla f = \lambda \nabla g$. From this point forth it's just nasty algebra which leads to nowhere. Any help will be appreciated.
P.S. Sorry about the writting, I'm new around here.
The equation $\nabla f = \lambda \nabla g$ comes to: $$((1 + y)(1 + z), (1 + x)(1 + z), (1 + x)(1 + y)) = \lambda(2x, 2y, 2z),$$ i.e. \begin{cases} (1 + y)(1 + z) = 2 \lambda x &&&(1) \\ (1 + x)(1 + z) = 2 \lambda y &&&(2)\\ (1 + x)(1 + y) = 2 \lambda z &&&(3) \end{cases} Take, say, $(2) - (1)$. You get, $$(1 + x)(1 + z) - (1 + y)(1 + z) = 2\lambda y - 2\lambda x,$$ or equivalently, $$(x - y)(1 + z) = -2\lambda (x - y).$$ From here, there are two possibilities: $x = y$ (and both sides are $0$), or we divide both sides by $x - y$ to get $1 + z = -2\lambda$.
We can do similar analysis, subtracting $(2)$ and $(3)$, or $(1)$ and $(3)$. We get similar choices: $y = z$ or $1 +x = -2\lambda$, and $x = z$ or $1 +y = -2\lambda$.
Let's suppose that $z \neq -1 - 2\lambda$. If this is the case, then $x = y$. Note that, if $y = z$, say, then $y \neq -1 - 2\lambda$, and so we would have $x = z$, i.e. $x = y = z$. The same conclusion can be similarly reached if we assume $x = z$ instead. Either which way, $z \neq -1 - 2\lambda \implies x = y = z$.
Contrapositively, if we assume $x, y, z$ are not all the same, this implies $z = -1 - 2\lambda$. Similar arguments show that $y$ and $x$ would also be $-1 - 2\lambda$. This leads to a contradiction; in any case, we may conclude that $x = y = z$.
Now that we know $x, y, z$ are the same, let's change all of them to $x$ in $(1),(2),(3)$. We get: $$(1 + x)^2 = 2\lambda x \iff x^2 + 2(1 - \lambda)x + 1 = 0.$$ We also have the constraint that $g(x, y, z) = 0$, i.e. $$x^2 + y^2 + z^2 = 1.$$ Given $x = y = z$, we get $$x = \pm\frac{1}{\sqrt{3}}.$$ Substituting it into the equation of $x$ and $\lambda$, $$\frac{1}{3} \pm \frac{2(1 - \lambda)}{\sqrt{3}} + 1 = 0.$$ Simplifying, $$\frac{2(1 - \lambda)}{\sqrt{3}} = \mp \frac{4}{3},$$ and so $$\lambda = 1 \pm \frac{2\sqrt{3}}{3}.$$