<p>Using Lgrange multipliers to optimize a function under constraints is a useful <em>technique</em>, although in the end, it provides additional insights and information. Sticking to the case of equality constraints, the problem</p>

<p>$$\max_{(x,y)} u(x,y) = x^{\alpha} y^{1-\alpha},\;\; \alpha \in (0,1)$$
$$\text {s.t.} \;\;w = p_xx + p_yy$$</p>

<p>can of course be transformed in an unconstrained problem by direct substitution:</p>

<p>$$\max_{y} u(x,y) = \left(\frac {w-yp_y}{p_x}\right)^{\alpha} y^{1-\alpha},\;\; \alpha \in (0,1)$$</p>

<p>But in general, direct substitution can produce cumbersome expressions (especially in dynamic problems), where an algebraic mistake will be easy to make. So the Lagrange method has an advantage here. Moreover, the Lagrange multiplier has a meaningful economic interpretation. In this approach, we define a new variable, say $\lambda$, and we form the "Lagrangean function" </p>

<p>$$\Lambda(x,y,\lambda) = x^{\alpha} y^{1-\alpha} + \lambda (w-p_xx-p_yy)$$</p>

<p>First, note that $\Lambda(x,y,\lambda)$ is <em>equivalent</em> to $u(x,y)$, since the added part to the right is identically zero. Now we maximize the Lagrangean with respect to the two variables and we obtain the first order conditions</p>

<p>$$\frac {\partial u}{\partial x} = \lambda p_x$$</p>

<p>$$\frac {\partial u}{\partial y} = \lambda p_y$$</p>

<p>Equating through $\lambda$, this provides quickly the fundamental relation </p>

<p>$$\frac {\partial u/\partial x} {\partial u/\partial y}= \frac  {p_x}{p_y}$$</p>

<p>This optimal relation, together with the budget constraint, provide a two-equation system in two unknowns, and so provide the solution $(x^*, y^*)$ as a function of the exogenous parameters (the utility parameter $\alpha$, the prices $(p_x,p_y)$ and the given wealth $w$).</p>

<p>To determine the value of $\lambda$, multiply each first-order condition throughout by $x$ and $y$ respectively and then sum by sides to get</p>

<p>$$\frac {\partial u}{\partial x}x+\frac {\partial u}{\partial y}y = \lambda (p_xx+p_yy) = \lambda w$$</p>

<p>With utility homogeneous of degree one, as it is the case with Cobb-Douglas functions, we have that</p>

<p>$$\frac {\partial u}{\partial x}x+\frac {\partial u}{\partial y}y = u(x,y)$$</p>

<p>and so at the optimum bundle we have</p>

<p>$$u(x^*,y^*) =\lambda^*w$$</p>

<p>And this is how the Lagrange multiplier acquires an economically meaningful interpretation: its value is the <em>marginal utility of wealth</em>. Now, in the context of <em>ordinal</em> utility, marginal utility is not really meaningful (see also the <a href="https://economics.stackexchange.com/questions/370/when-can-one-safely-talk-about-decreasing-marginal-utility/376#376">discussion here</a>). But the above procedure can be applied for example to a cost-minimization problem, where the Lagrange multiplier reflects the increase in total cost by a marginal increase in quantity produced, and so it is the Marginal Cost.</p>

CC BY-SA 3.0
2015-11-05T03:31:38.380Z
@AlecosPapadopoulos Another way of writing $u(x^*,y^*)$ is the *indirect utility function* $v$, correct? Thus, if I'm not mistaken, this is an application of the Envelope Theorem, no?
EthanAlvaree
CC BY-SA 4.0
2024-11-19T23:16:35.997Z
@AlecosPapadopoulos May I ask you what happens when you apply it to non-homogenous utility functions (such as quadratic)? The interpretation of lambda won't hold anymore?
Athaeneus
CC BY-SA 3.0
2015-01-10T19:58:27.517Z
This was a great explanation. Question: on Wikipedia's page on Lagrangian multipliers, it states *However, not all stationary points yield a solution of the original problem. Thus, the method of Lagrange multipliers yields a necessary condition for optimality in constrained problems.* does this mean the term "maximization" is incorrect? Because I thought necessary didn't imply sufficient but the converse did.
Stan Shunpike
CC BY-SA 3.0
2015-01-10T20:00:57.677Z
@StanShunpike Indeed, they are just necessary. They become sufficient when the objective function and the constraints have certain properties. For example, with linear constraints and quasi-concave objective function, they are also sufficient.
Alecos Papadopoulos
CC BY-SA 3.0
2015-01-10T19:51:44.370Z
2015-11-04T13:01:27.537Z
2017-04-13T12:51:38.253Z
Alecos Papadopoulos
<p>This is for <em>intuition,</em> not for rigor, and assumes we know which way you would want to deviate from the constraint. Here it is easy; you would want to overspend, so we invoke Lagrange to discipline you to spend $w$ rather than more. Think of the problem in the following steps:</p>

<ol>
<li>You wish to go out and consume pizza ($x$) and beer ($y$), and ask your parents to borrow a credit card.</li>
<li>Your parents know you, so with the credit card you get the following warning: if you spend more than $w$, we will let our evil neighbour Mr. Lagrange smack your fingers, delivering a pain worth $\lambda$ utility units per dollar you overspend.</li>
<li>Look at the Lagrangian; it is now your utility net of penalty, as a function of pizza ($x$), beer ($y$) and pain ($\lambda\cdot(xp_x+yp_y-w)$). From your point of view, you just maximize this for given $\lambda$ (which means, in particular, that if $\lambda$ is very small, exceeding your budget grossly will be worth a small number of slaps from Mr. Lagrange).</li>
<li>From your parents' point of view, they want to adjust $\lambda$ to the number that makes you voluntarily choose to spend precisely $w$, leaving Mr. Lagrange at bay. (Choosing $\lambda$ higher would lead to you underspending, you could adjust the interpretation accordingly.)</li>
<li>Of course you will then choose precisely the level where you are indifferent between having and not having the bundle of additional consumption &amp; penalty. Hence the shadow price interpretation: $\lambda$ is (more precisely: first-order approximates) how much you would be willing to pay - <em>in the same units as your objective function!</em> to have your budget increased.</li>
</ol>

<p>As for the suggestion to change sign on the constraint: of course it works mathematically, but I hardly ever use it for instruction purposes; leaving it as it is, $u-\lambda(xp_x+yp_y-w)$ exposes a constraint (which you do not like, it reduces your utility) as equivalent to a <em>tax</em> (which you do not like either, for the same reason). From an economic point of view, you get the idea of the constraint being implemented by a tax, and that is instructive in e.g. modeling Pigouvian taxes internalizing (unwanted negative) externalities.</p>

CC BY-SA 3.0
2015-01-11T09:56:07.710Z
2015-01-11T10:11:47.883Z
2015-01-11T10:11:47.883Z
Nils
<p>As others have noted, the essence of the Lagrange method is to convert a constrained-extremum problem into a form such that the FOC of the free-extremum problem can be applied. In your setup, you transformed the non-constrained problem ($\max u(x,y)$) to:</p>

<p>$$ \Lambda = x^{\alpha} y^{1-\alpha} + \lambda (w-(xp_x+yp_y)) $$</p>

<p>If you assume that the restriction will be met, that is, that $xp_x+yp_y=w$, then the last term will vanish independently of the value of $\lambda$, so that $\Lambda$ will be identical to $u$. The trick is to treat $\lambda$ as an additional choice variable, thus maximizing $\Lambda(x,y,\lambda)$. Since the first order condition for $\lambda$ is </p>

<p>$$ \frac{\partial Z}{\partial \lambda} = w-(xp_x+yp_y) = 0$$
we can be assured of the satisfaction of the constraint and the disappearance of $\lambda$.</p>

<p>As for the <em>interpretation</em> of $\lambda_i$ (the Lagrange multiplier), in broad economic terms it is the <strong>shadow price</strong> of the $i$th constraint. In your setup, where there's only a budget constraint, the shadow price is the opportunity cost of the budget constraint, that is, the marginal utility of budget money (income).</p>

<p>Another way to view it is that $\lambda$ measures the sensitivity of $\Lambda$ to changes in the (budget) constraint. In fact in can be proven that</p>

<p>$$ \frac{d\Lambda^*}{dw}=\lambda^* $$</p>

<p>Notice that for this interpretation of $\lambda^*$ to make sense you must always express the constraint as $w-(xp_x+yp_y)$, <em>not</em> as $(xp_x+yp_y)-w$ (like you wrote on your setup).</p>

CC BY-SA 3.0
2015-01-10T22:09:33.330Z
2015-01-10T22:09:33.330Z
han-tyumi
<p>I'd recommend you to work through this answer paragraph by paragraph, making sure you got each of them in turn, or you will get confused. You may even want to ignore later ones if it's not necessary for your purpose.</p>

<p>The main idea hear is that if the point is conditionall extremum, than it is necessarily a stationary point of the Lagrangian, i.e. such point, that all partial derivatives of the Lagrangian are zero in it. To solve the problem you should identify all stationary points and than find the maximum among them.</p>

<p>However in general this recipe is not entity reliable, as the maximum may not exist. Usually you may verify it's existence with Weierstrass theorem. It requires that fiction is continuous and the set is compact which is the case here. In general it means that you need to check any boundary points of the set in question, points $x= 0$ and points $y = 0$.</p>

<p>In this case your equation is insufficient for solution, as the set you are considering is defined by inequalities rather than equalities. You may point out, that the function is monotonic in $x$ and $y$, so the maximum is on the upper right boundary. Also the utility is 0 if $x = 0$ or $y=0$, while there is feasible points where it is strictly positive, so the maximum can not be attained at either left or lower boundaries. Then this approach is completely justified.</p>

<p>In future you should be aware that problem if such type should be generally solved by applying Kuhn-Tucker Theorem and I recomend you to get acquainted with it after you grasp this material. </p>

CC BY-SA 3.0
2015-01-10T19:38:18.440Z
2015-01-10T19:38:18.440Z
Nikita Toropov
<p>A constrained optimization function maximizes or minimizes an objective subject to one or more constraints. As I understand it, the Lagrangian multiplier approach transforms a constrained optimization problem (I) into an unconstrained optimization problem (II) where the optimal control values to problem II are also the optimal control values to problem I. Additionally, the the objective functions in problems I and II take the same optimal values. The trick is a clever way of putting the constraints into the objective function directly rather than using them separately. </p>

<p>I agree with your presentation of the consumer's maximization problem: 
$\Lambda(x,y,\lambda) = x^{\alpha} y^{1-\alpha} + \lambda ((xp_x+yp_y)-w)$. </p>

<p>Now we take the partial derivatives with respect to x an y, set them equal to zero, and then solve for x* and y*.</p>

<p>$0=\partial\Lambda / \partial x  = \alpha x^{\alpha -1 } y^{1-\alpha} + \lambda p_x = (\alpha / x ) x^{\alpha  } y^{1-\alpha} + \lambda p_x$ </p>

<p>$\Rightarrow -\lambda = (\alpha / (x p_x)) x^{\alpha  } y^{1-\alpha}$ </p>

<p>$0 =\partial\Lambda / \partial y  = (1 - \alpha) x^{\alpha} y^{-\alpha} + \lambda p_y = ((1 - \alpha) / y ) x^{\alpha  } y^{1-\alpha} + \lambda p_y$ </p>

<p>$\Rightarrow -\lambda = ((1- \alpha) / (y p_y)) x^{\alpha  } y^{1-\alpha}$</p>

<p>$\Rightarrow (\alpha / (x p_x)) x^{\alpha  } y^{1-\alpha} = -\lambda = ((1- \alpha) / (y p_y)) x^{\alpha  } y^{1-\alpha}$</p>

<p>$\Rightarrow (\alpha / (x p_x)) = ((1- \alpha) / (y p_y))$</p>

<p>$\Rightarrow ( y p_y ) / (1- \alpha) = (x p_x) / \alpha$ (eqn 1)</p>

<p>Recover the budget constraint equation by taking the partial derivative $\partial\Lambda / \partial \lambda = 0$.</p>

<p>$0 = \partial\Lambda / \partial \lambda = xp_x + yp_y - w \Rightarrow xp_x /  w + yp_y /w = 1$ (eqn 2)</p>

<p>We now have two equations and two unknowns (x,y) and can solve for x* and y*.</p>

<p>$\Rightarrow yp_y / w  = xp_x/w \cdot (1 / \alpha - 1) = xp_x/w / \alpha - xp_x/w$</p>

<p>$\Rightarrow 1 = yp_y / w + xp_x/w = xp_x/w / \alpha$</p>

<p>$\rightarrow \alpha = xp_x/w$ (result 1)</p>

<p>$\Rightarrow \alpha = xp_x/w = 1 - yp_y /w$</p>

<p>$\rightarrow 1-\alpha =yp_y/w$ (result 2) </p>

<p>Results 1 and 2 form the famous constant expenditure shares result for the Cobb-Douglas utility and production functions. Which can also be explicitly solved for x* and y*: $x^* = \alpha w /p_x$ and $y^* = (1-\alpha) w /p_y$ which are the optimal values for both the Lagrangian and the original problems. </p>

CC BY-SA 3.0
2015-11-04T03:09:36.687Z
@BKay How do you get $\frac{y p_y}{w}=\frac{x p_x}{w(\alpha - 1)}$?
EthanAlvaree
CC BY-SA 3.0
2015-01-10T19:33:59.547Z
In terms of your last sentence, why aren't we solving for $\lambda$ too? I recognize, since $\Lambda(x,y,\lambda)$ is order (aka degree) 1 in $\lambda$, taking the partial derivative $\frac{\partial \Lambda}{\partial \lambda}$ removes $\lambda$ since it's derivative is naturally 1 and thus doesn't end up being a variable. Is this intentional?
Stan Shunpike
CC BY-SA 3.0
2015-01-10T19:39:14.973Z
I expanded the answer and hopefully made this a bit clear. Yes, you do make use of $\partial \Lambda / \partial \lambda$, that's how you recover the budget equation and ultimately solve for optimal values of x and y. But you don't actually choose lambda. You can only choose x and y. $\lambda$ ends up more like a price (a shadow price) than a choice variable.
BKay
CC BY-SA 3.0
2015-01-10T19:43:45.510Z
That cleared it up. Thanks for clarifying. I had worked through an example here: http://math.stackexchange.com/questions/674/how-do-lagrange-multipliers-work-to-find-the-lowest-value-of-a-function-subject but somehow actually having numbers confused me. Seeing the variables made more sense.
Stan Shunpike
CC BY-SA 3.0
2015-01-10T19:19:44.630Z
2015-01-27T02:54:30.017Z
2015-01-27T02:54:30.017Z
BKay
<p>I am trying to understand Lagrangian multipliers and using an example problem I found online. </p>

<p><strong>Problem Set Up:</strong></p>

<p>Consider a consumer with utility function $u(x,y) = x^{\alpha} y^{1-\alpha}$, where $\alpha \in (0,1)$. Suppose this consumer has wealth $w$ and the prices $p =(p_x,p_y)$. That's all we were given.</p>

<p><strong>Work I Did:</strong></p>

<p>I then defined a budget constraint equation: $w = xp_x + yp_y$. I also then defined an associated Lagrangian for the consumer's maximization problem: 
$\Lambda(x,y,\lambda) = x^{\alpha} y^{1-\alpha} + \lambda ((xp_x+yp_y)-w)$. </p>

<p><strong>My question:</strong></p>

<p>What does this equation allow me to do? Although I set it up given the formula on Wikipedia's page on Lagrangian multipliers, I really have no idea what the purpose of this equation is. Like I don't understand how the equation as given allows me to determine how to maximize my utility function. </p>

<p>Note: I am familiar with multivariable calculus and Lagrangians ($L = T -V$) in physics, but this method is new to me. </p>

CC BY-SA 3.0
2015-01-10T19:19:45.093Z
You might consider asking this at math.stackexchange.com if you do not get a good answer here!  Good question.
123
<utility>
Help understanding Lagrangian multipliers?
Stan Shunpike
# Help understanding Lagrangian multipliers?

(Asked by: username_0 on 2015-01-10)

I am trying to understand Lagrangian multipliers and using an example problem I found online.

**Problem Set Up:**

Consider a consumer with utility function $u(x,y) = x^{\alpha} y^{1-\alpha}$, where $\alpha \in (0,1)$. Suppose this consumer has wealth $w$ and the prices $p =(p\_x,p\_y)$. That's all we were given.

**Work I Did:**

I then defined a budget constraint equation: $w = xp\_x + yp\_y$. I also then defined an associated Lagrangian for the consumer's maximization problem:
$\Lambda(x,y,\lambda) = x^{\alpha} y^{1-\alpha} + \lambda ((xp\_x+yp\_y)-w)$.

**My question:**

What does this equation allow me to do? Although I set it up given the formula on Wikipedia's page on Lagrangian multipliers, I really have no idea what the purpose of this equation is. Like I don't understand how the equation as given allows me to determine how to maximize my utility function.

Note: I am familiar with multivariable calculus and Lagrangians ($L = T -V$) in physics, but this method is new to me.

**Tags:** utility

> **Comments:**
> **username_1**: You might consider asking this at math.stackexchange.com if you do not get a good answer here!  Good question.  

---

## 5 answers

### Answer by username_8 on 2015-01-10. Score: 8 | Accepted answer

A constrained optimization function maximizes or minimizes an objective subject to one or more constraints. As I understand it, the Lagrangian multiplier approach transforms a constrained optimization problem (I) into an unconstrained optimization problem (II) where the optimal control values to problem II are also the optimal control values to problem I. Additionally, the the objective functions in problems I and II take the same optimal values. The trick is a clever way of putting the constraints into the objective function directly rather than using them separately.

I agree with your presentation of the consumer's maximization problem:
$\Lambda(x,y,\lambda) = x^{\alpha} y^{1-\alpha} + \lambda ((xp\_x+yp\_y)-w)$.

Now we take the partial derivatives with respect to x an y, set them equal to zero, and then solve for x\* and y\*.

$0=\partial\Lambda / \partial x = \alpha x^{\alpha -1 } y^{1-\alpha} + \lambda p\_x = (\alpha / x ) x^{\alpha } y^{1-\alpha} + \lambda p\_x$

$\Rightarrow -\lambda = (\alpha / (x p\_x)) x^{\alpha } y^{1-\alpha}$

$0 =\partial\Lambda / \partial y = (1 - \alpha) x^{\alpha} y^{-\alpha} + \lambda p\_y = ((1 - \alpha) / y ) x^{\alpha } y^{1-\alpha} + \lambda p\_y$

$\Rightarrow -\lambda = ((1- \alpha) / (y p\_y)) x^{\alpha } y^{1-\alpha}$

$\Rightarrow (\alpha / (x p\_x)) x^{\alpha } y^{1-\alpha} = -\lambda = ((1- \alpha) / (y p\_y)) x^{\alpha } y^{1-\alpha}$

$\Rightarrow (\alpha / (x p\_x)) = ((1- \alpha) / (y p\_y))$

$\Rightarrow ( y p\_y ) / (1- \alpha) = (x p\_x) / \alpha$ (eqn 1)

Recover the budget constraint equation by taking the partial derivative $\partial\Lambda / \partial \lambda = 0$.

$0 = \partial\Lambda / \partial \lambda = xp\_x + yp\_y - w \Rightarrow xp\_x / w + yp\_y /w = 1$ (eqn 2)

We now have two equations and two unknowns (x,y) and can solve for x\* and y\*.

$\Rightarrow yp\_y / w = xp\_x/w \cdot (1 / \alpha - 1) = xp\_x/w / \alpha - xp\_x/w$

$\Rightarrow 1 = yp\_y / w + xp\_x/w = xp\_x/w / \alpha$

$\rightarrow \alpha = xp\_x/w$ (result 1)

$\Rightarrow \alpha = xp\_x/w = 1 - yp\_y /w$

$\rightarrow 1-\alpha =yp\_y/w$ (result 2)

Results 1 and 2 form the famous constant expenditure shares result for the Cobb-Douglas utility and production functions. Which can also be explicitly solved for x\* and y\*: $x^\* = \alpha w /p\_x$ and $y^\* = (1-\alpha) w /p\_y$ which are the optimal values for both the Lagrangian and the original problems.

> **Comments:**
> **username_0**: In terms of your last sentence, why aren't we solving for $\lambda$ too? I recognize, since $\Lambda(x,y,\lambda)$ is order (aka degree) 1 in $\lambda$, taking the partial derivative $\frac{\partial \Lambda}{\partial \lambda}$ removes $\lambda$ since it's derivative is naturally 1 and thus doesn't end up being a variable. Is this intentional?  
> **username_8**: I expanded the answer and hopefully made this a bit clear. Yes, you do make use of $\partial \Lambda / \partial \lambda$, that's how you recover the budget equation and ultimately solve for optimal values of x and y. But you don't actually choose lambda. You can only choose x and y. $\lambda$ ends up more like a price (a shadow price) than a choice variable.  
> **username_0**: That cleared it up. Thanks for clarifying. I had worked through an example here: http://math.stackexchange.com/questions/674/how-do-lagrange-multipliers-work-to-find-the-lowest-value-of-a-function-subject but somehow actually having numbers confused me. Seeing the variables made more sense.  
> **username_3**: @username_8 How do you get $\frac{y p_y}{w}=\frac{x p_x}{w(\alpha - 1)}$?  

---

### Answer by username_2 on 2015-01-10. Score: 7

Using Lgrange multipliers to optimize a function under constraints is a useful *technique*, although in the end, it provides additional insights and information. Sticking to the case of equality constraints, the problem

$$\max\_{(x,y)} u(x,y) = x^{\alpha} y^{1-\alpha},\;\; \alpha \in (0,1)$$
$$\text {s.t.} \;\;w = p\_xx + p\_yy$$

can of course be transformed in an unconstrained problem by direct substitution:

$$\max\_{y} u(x,y) = \left(\frac {w-yp\_y}{p\_x}\right)^{\alpha} y^{1-\alpha},\;\; \alpha \in (0,1)$$

But in general, direct substitution can produce cumbersome expressions (especially in dynamic problems), where an algebraic mistake will be easy to make. So the Lagrange method has an advantage here. Moreover, the Lagrange multiplier has a meaningful economic interpretation. In this approach, we define a new variable, say $\lambda$, and we form the "Lagrangean function"

$$\Lambda(x,y,\lambda) = x^{\alpha} y^{1-\alpha} + \lambda (w-p\_xx-p\_yy)$$

First, note that $\Lambda(x,y,\lambda)$ is *equivalent* to $u(x,y)$, since the added part to the right is identically zero. Now we maximize the Lagrangean with respect to the two variables and we obtain the first order conditions

$$\frac {\partial u}{\partial x} = \lambda p\_x$$

$$\frac {\partial u}{\partial y} = \lambda p\_y$$

Equating through $\lambda$, this provides quickly the fundamental relation

$$\frac {\partial u/\partial x} {\partial u/\partial y}= \frac {p\_x}{p\_y}$$

This optimal relation, together with the budget constraint, provide a two-equation system in two unknowns, and so provide the solution $(x^\*, y^\*)$ as a function of the exogenous parameters (the utility parameter $\alpha$, the prices $(p\_x,p\_y)$ and the given wealth $w$).

To determine the value of $\lambda$, multiply each first-order condition throughout by $x$ and $y$ respectively and then sum by sides to get

$$\frac {\partial u}{\partial x}x+\frac {\partial u}{\partial y}y = \lambda (p\_xx+p\_yy) = \lambda w$$

With utility homogeneous of degree one, as it is the case with Cobb-Douglas functions, we have that

$$\frac {\partial u}{\partial x}x+\frac {\partial u}{\partial y}y = u(x,y)$$

and so at the optimum bundle we have

$$u(x^\*,y^\*) =\lambda^\*w$$

And this is how the Lagrange multiplier acquires an economically meaningful interpretation: its value is the *marginal utility of wealth*. Now, in the context of *ordinal* utility, marginal utility is not really meaningful (see also the [discussion here](https://economics.stackexchange.com/questions/370/when-can-one-safely-talk-about-decreasing-marginal-utility/376#376)). But the above procedure can be applied for example to a cost-minimization problem, where the Lagrange multiplier reflects the increase in total cost by a marginal increase in quantity produced, and so it is the Marginal Cost.

> **Comments:**
> **username_0**: This was a great explanation. Question: on Wikipedia's page on Lagrangian multipliers, it states *However, not all stationary points yield a solution of the original problem. Thus, the method of Lagrange multipliers yields a necessary condition for optimality in constrained problems.* does this mean the term "maximization" is incorrect? Because I thought necessary didn't imply sufficient but the converse did.  
> **username_2**: @StanShunpike Indeed, they are just necessary. They become sufficient when the objective function and the constraints have certain properties. For example, with linear constraints and quasi-concave objective function, they are also sufficient.  
> **username_3**: @AlecosPapadopoulos Another way of writing $u(x^*,y^*)$ is the *indirect utility function* $v$, correct? Thus, if I'm not mistaken, this is an application of the Envelope Theorem, no?  
> **username_4**: @AlecosPapadopoulos May I ask you what happens when you apply it to non-homogenous utility functions (such as quadratic)? The interpretation of lambda won't hold anymore?  

---

### Answer by username_5 on 2015-01-11. Score: 6

This is for *intuition,* not for rigor, and assumes we know which way you would want to deviate from the constraint. Here it is easy; you would want to overspend, so we invoke Lagrange to discipline you to spend $w$ rather than more. Think of the problem in the following steps:

1. You wish to go out and consume pizza ($x$) and beer ($y$), and ask your parents to borrow a credit card.
2. Your parents know you, so with the credit card you get the following warning: if you spend more than $w$, we will let our evil neighbour Mr. Lagrange smack your fingers, delivering a pain worth $\lambda$ utility units per dollar you overspend.
3. Look at the Lagrangian; it is now your utility net of penalty, as a function of pizza ($x$), beer ($y$) and pain ($\lambda\cdot(xp\_x+yp\_y-w)$). From your point of view, you just maximize this for given $\lambda$ (which means, in particular, that if $\lambda$ is very small, exceeding your budget grossly will be worth a small number of slaps from Mr. Lagrange).
4. From your parents' point of view, they want to adjust $\lambda$ to the number that makes you voluntarily choose to spend precisely $w$, leaving Mr. Lagrange at bay. (Choosing $\lambda$ higher would lead to you underspending, you could adjust the interpretation accordingly.)
5. Of course you will then choose precisely the level where you are indifferent between having and not having the bundle of additional consumption & penalty. Hence the shadow price interpretation: $\lambda$ is (more precisely: first-order approximates) how much you would be willing to pay - *in the same units as your objective function!* to have your budget increased.

As for the suggestion to change sign on the constraint: of course it works mathematically, but I hardly ever use it for instruction purposes; leaving it as it is, $u-\lambda(xp\_x+yp\_y-w)$ exposes a constraint (which you do not like, it reduces your utility) as equivalent to a *tax* (which you do not like either, for the same reason). From an economic point of view, you get the idea of the constraint being implemented by a tax, and that is instructive in e.g. modeling Pigouvian taxes internalizing (unwanted negative) externalities.


---

### Answer by username_6 on 2015-01-10. Score: 2

As others have noted, the essence of the Lagrange method is to convert a constrained-extremum problem into a form such that the FOC of the free-extremum problem can be applied. In your setup, you transformed the non-constrained problem ($\max u(x,y)$) to:

$$ \Lambda = x^{\alpha} y^{1-\alpha} + \lambda (w-(xp\_x+yp\_y)) $$

If you assume that the restriction will be met, that is, that $xp\_x+yp\_y=w$, then the last term will vanish independently of the value of $\lambda$, so that $\Lambda$ will be identical to $u$. The trick is to treat $\lambda$ as an additional choice variable, thus maximizing $\Lambda(x,y,\lambda)$. Since the first order condition for $\lambda$ is

$$ \frac{\partial Z}{\partial \lambda} = w-(xp\_x+yp\_y) = 0$$
we can be assured of the satisfaction of the constraint and the disappearance of $\lambda$.

As for the *interpretation* of $\lambda\_i$ (the Lagrange multiplier), in broad economic terms it is the **shadow price** of the $i$th constraint. In your setup, where there's only a budget constraint, the shadow price is the opportunity cost of the budget constraint, that is, the marginal utility of budget money (income).

Another way to view it is that $\lambda$ measures the sensitivity of $\Lambda$ to changes in the (budget) constraint. In fact in can be proven that

$$ \frac{d\Lambda^\*}{dw}=\lambda^\* $$

Notice that for this interpretation of $\lambda^\*$ to make sense you must always express the constraint as $w-(xp\_x+yp\_y)$, *not* as $(xp\_x+yp\_y)-w$ (like you wrote on your setup).


---

### Answer by username_7 on 2015-01-10. Score: 2

I'd recommend you to work through this answer paragraph by paragraph, making sure you got each of them in turn, or you will get confused. You may even want to ignore later ones if it's not necessary for your purpose.

The main idea hear is that if the point is conditionall extremum, than it is necessarily a stationary point of the Lagrangian, i.e. such point, that all partial derivatives of the Lagrangian are zero in it. To solve the problem you should identify all stationary points and than find the maximum among them.

However in general this recipe is not entity reliable, as the maximum may not exist. Usually you may verify it's existence with Weierstrass theorem. It requires that fiction is continuous and the set is compact which is the case here. In general it means that you need to check any boundary points of the set in question, points $x= 0$ and points $y = 0$.

In this case your equation is insufficient for solution, as the set you are considering is defined by inequalities rather than equalities. You may point out, that the function is monotonic in $x$ and $y$, so the maximum is on the upper right boundary. Also the utility is 0 if $x = 0$ or $y=0$, while there is feasible points where it is strictly positive, so the maximum can not be attained at either left or lower boundaries. Then this approach is completely justified.

In future you should be aware that problem if such type should be generally solved by applying Kuhn-Tucker Theorem and I recomend you to get acquainted with it after you grasp this material.


---

