<p>As alluded to by Bertrand in his +1 comments this is because FOCs <strong>do not</strong> tell you where maximum or minimum occurs. This is common misconception among some students but it simply does not hold.</p>
<p>FOCs give you location of <em>stationary</em> points. They give you points where <span class="math-container">$df(x,y)/dx = df(x,y)/dy= 0$</span>.</p>
<p>A maximum or minimum will occur at points where <span class="math-container">$df(x,y)/dx = df(x,y)/dy= 0$</span>, but so will saddle points. FOCs cannot distinguish between whether point is maximum, minimum or saddle point, it can just tell you that you found points at which slope is zero.</p>
<p>What even more a function can have multiple local maxima/minima and saddle points. In optimization you will generally want want to find the <em>global</em> maximum not just a local maximum. You can see this visualized at a figure below taken from EMEA by Sydsæter, Hammond &amp; StrØm.</p>
<p><a href="https://i.sstatic.net/2QCNl.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/2QCNl.png" alt="enter image description here" /></a></p>
<p>If you want to know whether the point is maximum or minimum you need to examine second order conditions (SOCs) which tells you whether the function is concave or convex (or some people like to call it concave down) then based on the concavity of the function you can infer if it is a local maximum, minimum or saddle point. For non-constrained (e.g. Lagrangian SOCs are different) multivariable optimization SOCs are given by:</p>
<p>A function will be concave (implying <em>local</em> maximum) if the conditions for <span class="math-container">$C^2$</span> function in <span class="math-container">$\mathbb{R}^2$</span> are satisfied:</p>
<p><span class="math-container">$$f_{11}''(x, y) \leq 0, f_{22}''(x, y) \leq 0, \text{ and } f_{11}''(x, y)f_{22}''(x, y) − 
(f_{12}''(x, y))^2
\geq 0$$</span></p>
<p>A function will be convex (implying <em>local</em> maximum) if the conditions for <span class="math-container">$C^2$</span> function in <span class="math-container">$\mathbb{R}^2$</span> are satisfied:</p>
<p><span class="math-container">$$f_{11}''(x, y) \geq 0, f_{22}''(x, y) \geq 0, \text{ and } f_{11}''(x, y)f_{22}''(x, y) − 
(f_{12}''(x, y))^2
\geq 0$$</span></p>
<p>However, the conditions above <strong>only tell you if you found <em>local</em> minimum or maximum</strong>. In order to find global maximum/minimum, you have to examine all maximums or minimums as well as the boundaries of your function (e.g. maximum could occur at some endpoints for example <span class="math-container">$y=x+10$</span> defined on interval <span class="math-container">$x\in[0,10]$</span> will have maximum at the upper boundary <span class="math-container">$x=10$</span> even if FOC does not find any stationary point at <span class="math-container">$X=10$</span>) and check which of their output value is highest or lowest (although most introductory problems will typically be set in a way there is only one max or min - this is likely why some students confuse FOCs as conditions for max or min rather than just conditions for stationary points).</p>

CC BY-SA 4.0
2021-02-19T12:38:09.473Z
Again -1. Is there a troll who keeps downvoting your answers?
VARulle
CC BY-SA 4.0
2021-02-19T12:41:22.850Z
@1mufflon1 Thank you. It made some points clear.
Elina Gilbert
CC BY-SA 4.0
2021-02-19T13:08:59.483Z
@VARulle it’s KennyLJ who apparently still holds grudge after I was very critical of his made up definition of externality...
1muflon1
CC BY-SA 4.0
2021-02-19T13:09:40.773Z
@ElinaGilbert you are welcome, if you think the answer above answered your question consider accepting it.
1muflon1
CC BY-SA 4.0
2021-02-19T11:05:03.993Z
2021-02-19T11:12:10.973Z
2021-02-19T11:12:10.973Z
1muflon1
<p>I have to maximize the following function -</p>
<p><span class="math-container">$\max_{x \in (0,1)} (((p_1x)^{2r} + (p_2(1-x))^{2r})/2)^{1/r}$</span></p>
<p>where, <span class="math-container">$p_1$</span> and <span class="math-container">$p_2$</span> are drawn from uniform distribution [0,1] and are considered to be given for this maximization problem.</p>
<p>FOC are given as -
<span class="math-container">$\frac x {1-x}$</span> = <span class="math-container">${(p_2/p_1) }^{2r/{2r-1}}$</span></p>
<p>My problem is -</p>
<p>Whenever <span class="math-container">$p_1$</span> &gt; <span class="math-container">$p_2$</span>, FOC argues that value of x should be &lt; 1/2 but this doesn't maximize the function. Rather solution should be x&gt;1/2. Why the FOC solution is not maximizing the objective function. What have I done wrong?</p>

CC BY-SA 4.0
2021-02-19T07:54:19.080Z
The FOC are only helpful to characterize inner solutions, but in many cases there is no inner solution... In all cases the SOC have to be studied in order to characterize the type of solution to the FOC...
Bertrand
CC BY-SA 4.0
2021-02-19T10:15:30.733Z
Thank you @Bertrand. That make sense. But then is FOC condition meaningless here? Why is it giving contradictory equation? When should we rely on FOC then?
Elina Gilbert
CC BY-SA 4.0
2021-02-19T10:32:58.543Z
FOC are \textit{necessary} for an  inner optimum (can be a max or min or saddle) and  SOC (often) allow to characterize the type of optimum. At the boundaries (when x go to 0 or 1) there can be a max (or a sup), a min (or an inf) with no FOC being satisfied.
Bertrand
<optimization><elasticity-of-substitution><perfect-substitutes>
Contradictory FOC and maximizing solution
Elina Gilbert
# Contradictory FOC and maximizing solution

(Asked by: username_0 on 2021-02-19)

I have to maximize the following function -

$\max\_{x \in (0,1)} (((p\_1x)^{2r} + (p\_2(1-x))^{2r})/2)^{1/r}$

where, $p\_1$ and $p\_2$ are drawn from uniform distribution [0,1] and are considered to be given for this maximization problem.

FOC are given as -
$\frac x {1-x}$ = ${(p\_2/p\_1) }^{2r/{2r-1}}$

My problem is -

Whenever $p\_1$ > $p\_2$, FOC argues that value of x should be < 1/2 but this doesn't maximize the function. Rather solution should be x>1/2. Why the FOC solution is not maximizing the objective function. What have I done wrong?

**Tags:** optimization, elasticity-of-substitution, perfect-substitutes

> **Comments:**
> **username_1**: The FOC are only helpful to characterize inner solutions, but in many cases there is no inner solution... In all cases the SOC have to be studied in order to characterize the type of solution to the FOC...  
> **username_0**: Thank you @username_1. That make sense. But then is FOC condition meaningless here? Why is it giving contradictory equation? When should we rely on FOC then?  
> **username_1**: FOC are \textit{necessary} for an  inner optimum (can be a max or min or saddle) and  SOC (often) allow to characterize the type of optimum. At the boundaries (when x go to 0 or 1) there can be a max (or a sup), a min (or an inf) with no FOC being satisfied.  

---

## 1 answers

### Answer by username_2 on 2021-02-19. Score: 5 | Accepted answer

As alluded to by username_1 in his +1 comments this is because FOCs **do not** tell you where maximum or minimum occurs. This is common misconception among some students but it simply does not hold.

FOCs give you location of *stationary* points. They give you points where $df(x,y)/dx = df(x,y)/dy= 0$.

A maximum or minimum will occur at points where $df(x,y)/dx = df(x,y)/dy= 0$, but so will saddle points. FOCs cannot distinguish between whether point is maximum, minimum or saddle point, it can just tell you that you found points at which slope is zero.

What even more a function can have multiple local maxima/minima and saddle points. In optimization you will generally want want to find the *global* maximum not just a local maximum. You can see this visualized at a figure below taken from EMEA by Sydsæter, Hammond & StrØm.

[![enter image description here](https://i.sstatic.net/2QCNl.png)](https://i.sstatic.net/2QCNl.png)

If you want to know whether the point is maximum or minimum you need to examine second order conditions (SOCs) which tells you whether the function is concave or convex (or some people like to call it concave down) then based on the concavity of the function you can infer if it is a local maximum, minimum or saddle point. For non-constrained (e.g. Lagrangian SOCs are different) multivariable optimization SOCs are given by:

A function will be concave (implying *local* maximum) if the conditions for $C^2$ function in $\mathbb{R}^2$ are satisfied:

$$f\_{11}''(x, y) \leq 0, f\_{22}''(x, y) \leq 0, \text{ and } f\_{11}''(x, y)f\_{22}''(x, y) −
(f\_{12}''(x, y))^2
\geq 0$$

A function will be convex (implying *local* maximum) if the conditions for $C^2$ function in $\mathbb{R}^2$ are satisfied:

$$f\_{11}''(x, y) \geq 0, f\_{22}''(x, y) \geq 0, \text{ and } f\_{11}''(x, y)f\_{22}''(x, y) −
(f\_{12}''(x, y))^2
\geq 0$$

However, the conditions above **only tell you if you found *local* minimum or maximum**. In order to find global maximum/minimum, you have to examine all maximums or minimums as well as the boundaries of your function (e.g. maximum could occur at some endpoints for example $y=x+10$ defined on interval $x\in[0,10]$ will have maximum at the upper boundary $x=10$ even if FOC does not find any stationary point at $X=10$) and check which of their output value is highest or lowest (although most introductory problems will typically be set in a way there is only one max or min - this is likely why some students confuse FOCs as conditions for max or min rather than just conditions for stationary points).

> **Comments:**
> **username_3**: Again -1. Is there a troll who keeps downvoting your answers?  
> **username_0**: @1mufflon1 Thank you. It made some points clear.  
> **username_2**: @username_3 it’s KennyLJ who apparently still holds grudge after I was very critical of his made up definition of externality...  
> **username_2**: @ElinaGilbert you are welcome, if you think the answer above answered your question consider accepting it.  

---

