Maximum/Minimum theorem

678 Views Asked by At

I make it pretty short:

How can one proof that if $U\subset \mathbb{R}^n$ compact and $f:U \rightarrow \mathbb{R}$ continuous then: if $f$ acquires 1 local maximum in $U$ then $f$ takes the minimum at the boundary of $U$.

I think this is pretty clear, but I can not strictly proof it :-( Thanks

PS: If I'm missing any assumptions here, with which you could proof it, it would be also helpful.

PPS: Maybe I should put emphasis on the fact that f acquires only ONE extremum in the form of a maximum. Not a second minimum.

Thanks for the down votes btw, with lots of stuff like this isn't true but lacking a counterexample. I'm simply asking for a formal proof of this in my opinion obvious fact. But a counterexample would also suit and help me!

3

There are 3 best solutions below

12
On BEST ANSWER

If $U=[-1,1]$ (which is a compact subset of $\mathbb R$) and $f(x)=x^3-x$, then $f$ has both its maximum and its minimum at points in $U^\circ$, not at the boundary (at $x_M=-\frac{\sqrt 3}3$ and $x_m=\frac{\sqrt 3}3$, respectively).

So your claim isn't true.

For a less trivial example in $\mathbb R^2$ you can take $U=[-1,1]\times[0,1]$ and $f(x,y)=(x^3-x)(y-y^2)$, which you can prove has a maximum at $\left(-\frac{\sqrt3}3,\frac12\right)$ and a minimum at $\left(\frac{\sqrt3}3,\frac12\right)$, both in the interior of $U$. (*)

(*) Actually, you can argue that both global maximum and minimum (whose existence is a consequence of Weierstrass' theorem) do not belong to the boundary of $U$, since it's easy to see that $f(x,y)=0$ if $(x,y)\in \partial U$. But $f$ takes both positive and negative values in $U$ since $y-y^2\ge0$ for $y\in [0,1]$ while $x^3-x$ can take any sign in $[-1,1]$ (which implies that the maximum value is positive and the minimum value is negative, so neither is reached in the boundary).


If your statement meant to be

If $U\subset \mathbb R^n$ is compact and the only extreme of the continuous function $f\colon U\rightarrow \mathbb R$ on $U^\circ$ is a maximum, then $f$ reaches a minimum at $\partial U$.

this is just a consequence of Weierstrass' theorem and the fact that $U=U^\circ\cup\partial U$.

Since $f$ is continuous and $U$ is compact, it has to reach a minimum on $U$, which has to be in $\partial U$ if it is not in $U^\circ$ (the hypothesis of the maximum in the interior is irrelevant in fact).

0
On

Why on earth would this be true?

Let $U = [-5,5]\times [-5,5]\subset \mathbb R^2$ and let $f(x,y) = (x-5)(x+5)x(y-5)(y+5)y$. This has several max and min. (If my instinct is right $f(-\frac {\sqrt {3}}{3},-\frac {\sqrt {3}}{3})=f(\frac {\sqrt {3}}{3},\frac {\sqrt {3}}{3})$ are both max and $f(\frac {\sqrt {3}}{3},-\frac {\sqrt {3}}{3}) =f(-\frac {\sqrt {3}}{3},\frac {\sqrt {3}}{3})$ are both min. At any rate, the border is $f\mapsto 0$ is neither max nor min.

0
On

Your claim is wrong. Take the following graphical counter-example:

enter image description here