11

Okay, so I am attempting to minimize the function

$$f(x,y, z) = x^2 + y^2 + z^2$$

subject to the constraint of

$$4x^2 + 2y^2 +z^2 = 4$$

I attempted to solve using Lagrange multiplier method, but was unable to find a $\lambda$ that made the system consistent.

$$2x = \lambda8x$$ $$2y = \lambda4y$$ $$2z = \lambda2z$$

Wouldn't it be the case that the first equation suggests $\lambda = 1/4$ but the second equation suggests $\lambda = 1/2$? I am unsure of where to go from here although I have spent time trying to figure out.

Intuitively, I know that it must be the case that the minimum occurs at $(1,0,0)$ and is equal to $1$, but I can not show this using mathematical reasoning.

user345
  • 791
  • 1
    Do you want to maximize of minimize the function? Your title says maximize but the question says minimize.. – Kuifje Mar 07 '17 at 17:53
  • Minimize, fixed title thanks – user345 Mar 07 '17 at 18:07
  • While it is good that you try to understand how a particular method that you know can be applied to this problem, I am quite confident that your “intuitive” reasoning is just as mathematically valid if you formulate it carefully. Mathematics is not about avoiding to think! (You should not forget $(-1, 0, 0)$, though.) – Carsten S Mar 08 '17 at 09:36

4 Answers4

9

Hint: Your conclusion that your three equations imply that there is no consistent choice for $\lambda$ only holds if $x$, $y$ and $z$ are non-zero! If any of them are zero, then their corresponding equation tells us nothing about $\lambda$ since it is trivially fulfilled.

You thus know that the critical points are of the form $(x,0,0)$, $(0,y,0)$ and $(0,0,z)$. Up to you to check them out

Shinja
  • 1,385
  • 7
  • 8
5

When you solve the system with Lagrange method, your variables are $x,y,z$ and $\lambda$.

One solution to the system is $$(x,y,z,\lambda)=(1,0,0,\frac{1}{4}),$$ which matches your intuitive solution.


Alternatively, since $z^2=4-4x^2-2y^2$ cannot be negative (thank you @user35734!), it is equivalent to minimize $$f(x,y,z(x,y))=4-3x^2-y^2$$ subject to: $$ 4x^2+2y^2 \le 4 $$

This is an elliptic domain, and it is easy to see that the minimum will be reached on its border, therefore we can replace variables $x$ and $y$ by $\cos t$ and ${\sqrt{2}} \sin t$, respectively. The problem then boils down to minimize $$ f(x(t),y(t))=4-3\cos^2t - 2\sin^2 t $$ Standard calculus techniques yield $$ \min f = 1 $$

Kuifje
  • 9,802
3

To complement the other answers, we are looking for the points on a given ellipsoid that are closest to the origin. Here is the plot a sphere of radius $1$ touching the given ellipsoid at $(\pm 1, 0, 0)$.

enter image description here

2

I may be wrong... I tried to intuit this minimum problem.

The level surfaces of $f$ are spheres:

enter image description here

The larger the value of $f$, the larger the sphere is.

The next figure depicts the constraint which is an ellipsoid:

enter image description here

We get the minimum value of $f$ if we blow up (or shrink) its level sphere so that it is tangent to the ellipsoid from inside.

If $z=0$ then the constraint ellipsoid intersects the $xy$ axis in an ellipse whose equation is

$$x^2+\frac{y^2}2=1.$$

This ellipse intersects the $y$ axis at $\sqrt 2$ and it intersects the $x$ axis at $1$.

If we blow up (or shrink) the sphere so that it touches the ellipse then the level is $1$.

That is, the minimum is taken if $x^2+y^2+z^2=1$ and the minimum is $1$.

Let's see the intersection of the ellipse with the $xz$ plane. This is an ellipse again and

$$x^2+\frac{z^2}4=1.$$

The sphere belonging to the level $1$ fits well again.

This is what I saw:

enter image description here

zoli
  • 20,817
  • Yes, but it is clearly a global maximizer, OP wants a minimizer. – Kuifje Mar 07 '17 at 17:48
  • 1
    Yes, I can see now. But the title sais maximize... – zoli Mar 07 '17 at 17:51
  • I think you are correct. But there is something that I don't understand. Previously you wrote that the problem boils down to minimizing $f=4-3x^2-y^2$. But this function is unbounded (below). How can $(1,0)$ be a minimizer here? – Kuifje Mar 07 '17 at 18:42
  • @Kuifje: I don't know! That was done without intuition. I can see what's going on now. – zoli Mar 07 '17 at 18:48
  • This is weird. Are we missing something when we say that the problem is equivalent to minimizing $f=4-3x^2-y^2$, with $(x,y) \in \mathbb{R}^2$? This is driving me nuts. – Kuifje Mar 07 '17 at 18:53
  • I've already been driven nuts... :{ – zoli Mar 07 '17 at 18:54
  • http://math.stackexchange.com/questions/2176479/equivalence-between-two-optimization-problems?noredirect=1#comment4476922_2176479 – Kuifje Mar 07 '17 at 20:09
  • 1
    $z^2$ cannot be negative, so you simultaneously need the bound that $4x^2 + 2y^2 \le 4$. – user35734 Mar 07 '17 at 20:22